more color

This commit is contained in:
zoe 2021-12-04 17:45:59 +01:00
parent a149efb7e9
commit 7ab759a777
17 changed files with 158 additions and 15 deletions

View file

@ -0,0 +1,3 @@
source_md5="34ec780a689ee26dcc3dbb0284b5d62e"
dest_md5="296cd9dd4663fd6ef7497891143e8b8a"

View file

@ -0,0 +1,3 @@
source_md5="34ec780a689ee26dcc3dbb0284b5d62e"
dest_md5="296cd9dd4663fd6ef7497891143e8b8a"

View file

@ -0,0 +1,3 @@
source_md5="f219ab0ece5753df84b46237b5bc08ce"
dest_md5="83bad671557a538600a565f0eb69772b"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 B

After

Width:  |  Height:  |  Size: 167 B

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Aseprite/fullscreen_hover.png"
dest_files=[ "res://.import/fullscreen_hover.png-234d15a60e0d8e1f8f034279e5b566eb.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

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Aseprite/palette_pastelapple-1x.png"
dest_files=[ "res://.import/palette_pastelapple-1x.png-de2dc856f3711004303dc175c132df80.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=true
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=true
svg/scale=1.0

View file

@ -1,4 +1,4 @@
extends Button
extends TextureButton

View file

@ -1,18 +1,21 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
[ext_resource path="res://Aseprite/fullscreen.png" type="Texture" id=3]
[ext_resource path="res://Aseprite/fullscreen_hover.png" type="Texture" id=4]
[node name="Main" type="Node2D"]
[node name="Plant" parent="." instance=ExtResource( 1 )]
[node name="FullscreenButton" type="Button" parent="."]
margin_left = 171.0
margin_top = 122.0
[node name="FullscreenButton" type="TextureButton" parent="."]
margin_left = 238.0
margin_top = 126.0
margin_right = 254.0
margin_bottom = 142.0
text = "fuelscren :)"
texture_normal = ExtResource( 3 )
texture_hover = ExtResource( 4 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false

View file

@ -4,14 +4,16 @@ var position = Vector2()
var age = 0
export var colors = [
Color("#00ffffff"),
Color("#91e369"),
Color("#00ffffff"), #seethrough
Color("#beed84"), #green
Color("#91e369"),
Color("#56c157"),
Color("#46a65c"),
Color("#358859")]
Color("#358859")
]
func age_up():
if !(age >= 4):
if !(age >= colors.size() - 1):
age += 1
color = colors[age]
active = true

View file

@ -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)

View file

@ -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"]

View file

@ -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