pandemonium_paint_experimental/game/Project.tscn

54 lines
22 KiB
Plaintext
Raw Normal View History

2022-11-17 23:58:42 +01:00
[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]
2022-11-17 23:58:42 +01:00
[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
2022-11-18 12:28:14 +01:00
[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
}
2022-11-17 23:58:42 +01:00
[sub_resource type="ImageTexture" id=4]
flags = 4
flags = 4
2022-11-18 12:28:14 +01:00
image = SubResource( 5 )
size = Vector2( 32, 32 )
[node name="PaintProject" type="PaintProject"]
size = Vector2i( 128, 128 )
2022-11-18 14:25:49 +01:00
current_color = Color( 0.964706, 0.992157, 0.121569, 1 )
2022-11-17 23:58:42 +01:00
color_presets = PoolColorArray( 0.67914, 0.117493, 0.0852439, 1, 0.129412, 0.113725, 0.384314, 1, 0.0666667, 0.796078, 0.196078, 1, 0.0666667, 0.796078, 0.196078, 1, 0.964706, 0.992157, 0.121569, 1, 0.00784314, 0.835294, 0.564706, 1, 0.0666667, 0.796078, 0.196078, 1, 0.658824, 0.313726, 0.207843, 1 )
script = ExtResource( 2 )
[node name="PaintCanvasBackground" type="PaintCanvasBackground" parent="."]
visible = false
2022-11-17 23:58:42 +01:00
material = SubResource( 2 )
margin_right = 128.0
margin_bottom = 128.0
2022-11-17 23:58:42 +01:00
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 )
2022-11-18 11:26:20 +01:00
brush_prefab = 1
brush_size = 3
script = ExtResource( 1 )