From 7ab759a7778296206f645407d2c2834778de599c Mon Sep 17 00:00:00 2001 From: zoe Date: Sat, 4 Dec 2021 17:45:59 +0100 Subject: [PATCH] more color --- ...n.png-55cf7f791aa76b3efef5dd425b98ad37.md5 | 3 ++ ....png-55cf7f791aa76b3efef5dd425b98ad37.stex | Bin 0 -> 138 bytes ...r.png-234d15a60e0d8e1f8f034279e5b566eb.md5 | 3 ++ ....png-234d15a60e0d8e1f8f034279e5b566eb.stex | Bin 0 -> 138 bytes ...x.png-de2dc856f3711004303dc175c132df80.md5 | 3 ++ ....png-de2dc856f3711004303dc175c132df80.stex | Bin 0 -> 184 bytes Aseprite/fullscreen.png | Bin 88 -> 167 bytes Aseprite/fullscreen.png.import | 35 ++++++++++++++++++ Aseprite/fullscreen_hover.png | Bin 0 -> 167 bytes Aseprite/fullscreen_hover.png.import | 35 ++++++++++++++++++ Aseprite/palette_pastelapple-1x.png.import | 35 ++++++++++++++++++ World/FullscreenButton.gd | 2 +- World/Main.tscn | 13 ++++--- World/Pixel.gd | 10 +++-- World/Plant.gd | 9 ++--- World/Plant.tscn | 1 + project.godot | 24 ++++++++++++ 17 files changed, 158 insertions(+), 15 deletions(-) create mode 100644 .import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.md5 create mode 100644 .import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex create mode 100644 .import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.md5 create mode 100644 .import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.stex create mode 100644 .import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.md5 create mode 100644 .import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.stex create mode 100644 Aseprite/fullscreen.png.import create mode 100644 Aseprite/fullscreen_hover.png create mode 100644 Aseprite/fullscreen_hover.png.import create mode 100644 Aseprite/palette_pastelapple-1x.png.import diff --git a/.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.md5 b/.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.md5 new file mode 100644 index 0000000..f8ec446 --- /dev/null +++ b/.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.md5 @@ -0,0 +1,3 @@ +source_md5="34ec780a689ee26dcc3dbb0284b5d62e" +dest_md5="296cd9dd4663fd6ef7497891143e8b8a" + diff --git a/.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex b/.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex new file mode 100644 index 0000000000000000000000000000000000000000..90da3dd031cfd5fcd61dba5de5402cd498a74a7c GIT binary patch literal 138 zcmZ>F2@VlpU|;}Y2vA^S1Tyk~INa4KAjs3rEeXmF3$XAB1+w+|4=@X;D~S1gd#*1r z)j^>%?O7o!lcrzlHdYqbfBj+s2klu{H|9F;Z(7>0x^aEO$6w1gnRUGQ&*H$dkil;0 cI}_d4cO#xE&a91kwry4Uk14yD4O^HP0OLa}$p8QV literal 0 HcmV?d00001 diff --git a/.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.md5 b/.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.md5 new file mode 100644 index 0000000..f8ec446 --- /dev/null +++ b/.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.md5 @@ -0,0 +1,3 @@ +source_md5="34ec780a689ee26dcc3dbb0284b5d62e" +dest_md5="296cd9dd4663fd6ef7497891143e8b8a" + diff --git a/.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.stex b/.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.stex new file mode 100644 index 0000000000000000000000000000000000000000..90da3dd031cfd5fcd61dba5de5402cd498a74a7c GIT binary patch literal 138 zcmZ>F2@VlpU|;}Y2vA^S1Tyk~INa4KAjs3rEeXmF3$XAB1+w+|4=@X;D~S1gd#*1r z)j^>%?O7o!lcrzlHdYqbfBj+s2klu{H|9F;Z(7>0x^aEO$6w1gnRUGQ&*H$dkil;0 cI}_d4cO#xE&a91kwry4Uk14yD4O^HP0OLa}$p8QV literal 0 HcmV?d00001 diff --git a/.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.md5 b/.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.md5 new file mode 100644 index 0000000..d7bce63 --- /dev/null +++ b/.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.md5 @@ -0,0 +1,3 @@ +source_md5="f219ab0ece5753df84b46237b5bc08ce" +dest_md5="83bad671557a538600a565f0eb69772b" + diff --git a/.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.stex b/.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.stex new file mode 100644 index 0000000000000000000000000000000000000000..70ebba41b2ee45ae0baa2c9b7de844fa8f980b64 GIT binary patch literal 184 zcmZ>F2@VlsU|?VbViq7~U{GKOvF8ABxT{k@kf)p51SmT!z`~~)$krDH66+6WOj2<@ z-NSZ`W&M%M74|_6>$@*6RAFdfS$)Cgr`|Hdc1E7Um0rrxg(7?^egAeRW;`qkQ@?!X z&++XsAI=_Kv_CKZ^s^H!|1=^M(vQV>*3azn6F7I-^1!wIs-_<`QUx!j=(4+WifqeW b($@D-Qu&vBaY-Ue*4C66>z;pq!_NQ!2Rua$ literal 0 HcmV?d00001 diff --git a/Aseprite/fullscreen.png b/Aseprite/fullscreen.png index 5e4988e6b2bfa35a4512b02b86013e071bb13b02..aa8c5f2513d0654379a96f5993dc966fd21de4a0 100644 GIT binary patch delta 124 zcmV-?0E7QnrvZ>Lc40|GK~y-6V^rf-{Lg>}ZhgJah%Uy!z`%e_Eenh><54nP&`G!k zn|>5E8FF(GrtW*&f?+ZtuHB!|4gK6L69)qWivR;-y>CSy0}yz+`njxgN@xNA2agL# diff --git a/Aseprite/fullscreen.png.import b/Aseprite/fullscreen.png.import new file mode 100644 index 0000000..301faae --- /dev/null +++ b/Aseprite/fullscreen.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Aseprite/fullscreen.png" +dest_files=[ "res://.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/Aseprite/fullscreen_hover.png b/Aseprite/fullscreen_hover.png new file mode 100644 index 0000000000000000000000000000000000000000..aa8c5f2513d0654379a96f5993dc966fd21de4a0 GIT binary patch literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|5T>rOJ`OaBx!}2jZFZfAsbo>H;Iensx0@1;6gRxj zJzZ~_cl5u{k}MZ?5orT1HdcvWoSlNx4qq@5zILbMO=v_~(h?JEW`@v>T5H*T7|ei{ OF?hQAxvX= 4): + if !(age >= colors.size() - 1): age += 1 color = colors[age] active = true diff --git a/World/Plant.gd b/World/Plant.gd index 1986721..4b679dc 100644 --- a/World/Plant.gd +++ b/World/Plant.gd @@ -6,10 +6,8 @@ var active = [] var rng func _process(delta: float) -> void: - step() - step() - step() - step() + # step() + pass func step(): call_deferred("grow") @@ -52,7 +50,8 @@ func grow(): func new_pixel(original_pixel): var var_x = rng.randi_range(-1, 1) var var_y - if (randi() % 3) == 0: + #grow down + if (randi() % 2) == 0: var_y = rng.randi_range(-1, 1) # grow regularly else: var_y = rng.randi_range(-1, 0) diff --git a/World/Plant.tscn b/World/Plant.tscn index 99fe46c..314be6b 100644 --- a/World/Plant.tscn +++ b/World/Plant.tscn @@ -6,6 +6,7 @@ script = ExtResource( 2 ) [node name="Timer" type="Timer" parent="."] +wait_time = 0.25 autostart = true [connection signal="timeout" from="Timer" to="." method="step"] diff --git a/project.godot b/project.godot index 7eea425..f144aa9 100644 --- a/project.godot +++ b/project.godot @@ -23,6 +23,30 @@ window/size/test_height=720 window/stretch/mode="2d" window/stretch/aspect="keep" +[importer_defaults] + +texture={ +"compress/bptc_ldr": 0, +"compress/hdr_mode": 0, +"compress/lossy_quality": 0.7, +"compress/mode": 0, +"compress/normal_map": 0, +"detect_3d": false, +"flags/anisotropic": false, +"flags/filter": true, +"flags/mipmaps": false, +"flags/repeat": 0, +"flags/srgb": 2, +"process/HDR_as_SRGB": false, +"process/fix_alpha_border": true, +"process/invert_color": false, +"process/normal_map_invert_y": false, +"process/premult_alpha": false, +"size_limit": 0, +"stream": false, +"svg/scale": 1.0 +} + [physics] common/enable_pause_aware_picking=true