added background (pt 1)

This commit is contained in:
tess 2021-12-06 20:32:17 +01:00
parent d4a00c1e12
commit 19d25de11a
8 changed files with 47 additions and 4 deletions

View file

@ -0,0 +1,3 @@
source_md5="93cd3f4701b9f48c508461a413c98f8c"
dest_md5="d070c546e2f7ef582f305eca815b284e"

Binary file not shown.

BIN
Aseprite/Background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

View file

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

@ -96,7 +96,7 @@ playing = true
script = ExtResource( 2 )
[node name="Timer" type="Timer" parent="."]
wait_time = 60.0
wait_time = 120.0
autostart = true
[node name="Tween" type="Tween" parent="."]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=23 format=2]
[gd_scene load_steps=24 format=2]
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
@ -15,6 +15,7 @@
[ext_resource path="res://Tools/WateringCan.gd" type="Script" id=13]
[ext_resource path="res://Aseprite/wateringcanactive.png" type="Texture" id=14]
[ext_resource path="res://World/Pot.gd" type="Script" id=15]
[ext_resource path="res://Aseprite/Background.png" type="Texture" id=16]
[sub_resource type="Theme" id=7]
@ -173,8 +174,12 @@ amount = 15
lifetime = 0.5
process_material = SubResource( 13 )
[node name="Background" type="Sprite" parent="."]
texture = ExtResource( 16 )
centered = false
[node name="Pot" type="Sprite" parent="."]
position = Vector2( 64, 136 )
position = Vector2( 64, 135 )
texture = ExtResource( 9 )
script = ExtResource( 15 )

View file

@ -86,7 +86,7 @@ func spawn_pixels():
func plant_seed():
var plant_seed = pixels_x[size.x / 2][size.y - 10]
var plant_seed = pixels_x[size.x / 2][size.y - 12]
plant_seed.active = true
active.append(plant_seed)