pandemonium_paint_experimental/game/Project.tscn

51 lines
22 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=8 format=2]
[ext_resource path="res://PaintCanvas.gd" type="Script" id=1]
[ext_resource path="res://PaintProject.gd" type="Script" id=2]
[ext_resource path="res://PaintVisualGrid.gd" type="Script" id=3]
[sub_resource type="Shader" id=1]
code = "shader_type canvas_item;uniform float pixel_size : hint_range(0.01, 1.0);void fragment() { vec4 color = texture(TEXTURE, UV); float light = 0.8; float dark = 0.4; float val = dark; if ( int(UV.y * 8.0 * pixel_size) % 2 == 1 ) { if ( int(UV.x * 8.0 * pixel_size) % 2 == 1 ) { val = dark; } else { val = light; } } else { if ( int(UV.x * 8.0 * pixel_size) % 2 == 1 ) { val = light; } else { val = dark; } } color.rgb = vec3(val, val, val); COLOR = color;}"
[sub_resource type="ShaderMaterial" id=2]
shader = SubResource( 1 )
shader_param/pixel_size = 1.0
[sub_resource type="Image" id=5]
data = {
"data": PoolByteArray( 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 202, 215, 246, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 151, 255, 154, 153, 15
"format": "RGBA8",
"height": 32,
"mipmaps": false,
"width": 32
}
[sub_resource type="ImageTexture" id=4]
flags = 4
flags = 4
image = SubResource( 5 )
size = Vector2( 32, 32 )
[node name="PaintProject" type="PaintProject"]
size = Vector2i( 128, 128 )
current_color = Color( 0.740442, 0.642524, 0.188976, 1 )
script = ExtResource( 2 )
[node name="PaintCanvasBackground" type="PaintCanvasBackground" parent="."]
visible = false
material = SubResource( 2 )
margin_right = 128.0
margin_bottom = 128.0
texture = SubResource( 4 )
stretch_mode = 1
[node name="PaintVisualGrid" type="PaintVisualGrid" parent="."]
visible = false
margin_right = 128.0
margin_bottom = 128.0
script = ExtResource( 3 )
[node name="PaintCanvas" type="PaintCanvas" parent="."]
size = Vector2i( 128, 128 )
script = ExtResource( 1 )