mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
more color
This commit is contained in:
parent
a149efb7e9
commit
7ab759a777
17 changed files with 158 additions and 15 deletions
|
@ -0,0 +1,3 @@
|
|||
source_md5="34ec780a689ee26dcc3dbb0284b5d62e"
|
||||
dest_md5="296cd9dd4663fd6ef7497891143e8b8a"
|
||||
|
BIN
.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex
Normal file
BIN
.import/fullscreen.png-55cf7f791aa76b3efef5dd425b98ad37.stex
Normal file
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
source_md5="34ec780a689ee26dcc3dbb0284b5d62e"
|
||||
dest_md5="296cd9dd4663fd6ef7497891143e8b8a"
|
||||
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
source_md5="f219ab0ece5753df84b46237b5bc08ce"
|
||||
dest_md5="83bad671557a538600a565f0eb69772b"
|
||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 167 B |
35
Aseprite/fullscreen.png.import
Normal file
35
Aseprite/fullscreen.png.import
Normal 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
|
BIN
Aseprite/fullscreen_hover.png
Normal file
BIN
Aseprite/fullscreen_hover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 167 B |
35
Aseprite/fullscreen_hover.png.import
Normal file
35
Aseprite/fullscreen_hover.png.import
Normal 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
|
35
Aseprite/palette_pastelapple-1x.png.import
Normal file
35
Aseprite/palette_pastelapple-1x.png.import
Normal 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
|
|
@ -1,4 +1,4 @@
|
|||
extends Button
|
||||
extends TextureButton
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,14 +4,16 @@ var position = Vector2()
|
|||
var age = 0
|
||||
|
||||
export var colors = [
|
||||
Color("#00ffffff"),
|
||||
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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue