diff --git a/Game.tscn b/Game.tscn index 8c20757..b6741e8 100644 --- a/Game.tscn +++ b/Game.tscn @@ -15,7 +15,7 @@ planter = NodePath("../../Planter") [node name="Camera2D" type="Camera2D" parent="."] -position = Vector2(1679, 1556) +position = Vector2(1477, 1071) script = ExtResource("3_7olyu") [node name="Planter" parent="." node_paths=PackedStringArray("camera") instance=ExtResource("3_qx0o7")] diff --git a/assets/plants/abre1glow.png b/assets/plants/abre1glow.png new file mode 100644 index 0000000..6580506 Binary files /dev/null and b/assets/plants/abre1glow.png differ diff --git a/assets/plants/abre1glow.png.import b/assets/plants/abre1glow.png.import new file mode 100644 index 0000000..9ec02e7 --- /dev/null +++ b/assets/plants/abre1glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://gwvcqox0gy8n" +path="res://.godot/imported/abre1glow.png-60ca045f8574a25149a40ac87cf01e81.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/abre1glow.png" +dest_files=["res://.godot/imported/abre1glow.png-60ca045f8574a25149a40ac87cf01e81.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/abre2glow.png b/assets/plants/abre2glow.png new file mode 100644 index 0000000..7355762 Binary files /dev/null and b/assets/plants/abre2glow.png differ diff --git a/assets/plants/abre2glow.png.import b/assets/plants/abre2glow.png.import new file mode 100644 index 0000000..90aafc6 --- /dev/null +++ b/assets/plants/abre2glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dkoxbhwoot7lc" +path="res://.godot/imported/abre2glow.png-aa5fc6c380f065bf7146edd4fb44b9da.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/abre2glow.png" +dest_files=["res://.godot/imported/abre2glow.png-aa5fc6c380f065bf7146edd4fb44b9da.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre3.png b/assets/plants/arbre3.png new file mode 100644 index 0000000..242939f Binary files /dev/null and b/assets/plants/arbre3.png differ diff --git a/assets/plants/arbre3.png.import b/assets/plants/arbre3.png.import new file mode 100644 index 0000000..d1cd1b1 --- /dev/null +++ b/assets/plants/arbre3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bu462tqc23ygm" +path="res://.godot/imported/arbre3.png-666a94d6ed6acc5f5e7db69055d9aff2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre3.png" +dest_files=["res://.godot/imported/arbre3.png-666a94d6ed6acc5f5e7db69055d9aff2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre3_bebe.png b/assets/plants/arbre3_bebe.png new file mode 100644 index 0000000..07610c6 Binary files /dev/null and b/assets/plants/arbre3_bebe.png differ diff --git a/assets/plants/arbre3_bebe.png.import b/assets/plants/arbre3_bebe.png.import new file mode 100644 index 0000000..a391d60 --- /dev/null +++ b/assets/plants/arbre3_bebe.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://crgjmsk6ailnb" +path="res://.godot/imported/arbre3_bebe.png-15d5a6406f8d1581f8587092310259d7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre3_bebe.png" +dest_files=["res://.godot/imported/arbre3_bebe.png-15d5a6406f8d1581f8587092310259d7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre3_bebe_glow.png b/assets/plants/arbre3_bebe_glow.png new file mode 100644 index 0000000..fa4fa1c Binary files /dev/null and b/assets/plants/arbre3_bebe_glow.png differ diff --git a/assets/plants/arbre3_bebe_glow.png.import b/assets/plants/arbre3_bebe_glow.png.import new file mode 100644 index 0000000..888d947 --- /dev/null +++ b/assets/plants/arbre3_bebe_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://e3d3wchaado3" +path="res://.godot/imported/arbre3_bebe_glow.png-7303936deacdec43e479d4f4dbf43186.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre3_bebe_glow.png" +dest_files=["res://.godot/imported/arbre3_bebe_glow.png-7303936deacdec43e479d4f4dbf43186.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre3_glow.png b/assets/plants/arbre3_glow.png new file mode 100644 index 0000000..4e601b0 Binary files /dev/null and b/assets/plants/arbre3_glow.png differ diff --git a/assets/plants/arbre3_glow.png.import b/assets/plants/arbre3_glow.png.import new file mode 100644 index 0000000..7f99217 --- /dev/null +++ b/assets/plants/arbre3_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2da8t4efoaqq" +path="res://.godot/imported/arbre3_glow.png-b452c2788b4c5bd0f7226d7317741a36.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre3_glow.png" +dest_files=["res://.godot/imported/arbre3_glow.png-b452c2788b4c5bd0f7226d7317741a36.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre4.png b/assets/plants/arbre4.png new file mode 100644 index 0000000..75cb6ab Binary files /dev/null and b/assets/plants/arbre4.png differ diff --git a/assets/plants/arbre4.png.import b/assets/plants/arbre4.png.import new file mode 100644 index 0000000..a52ec79 --- /dev/null +++ b/assets/plants/arbre4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cbj6fmw8pxnsb" +path="res://.godot/imported/arbre4.png-70393aee213a5e5c27e1b23f0010024f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre4.png" +dest_files=["res://.godot/imported/arbre4.png-70393aee213a5e5c27e1b23f0010024f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre4_bebe.png b/assets/plants/arbre4_bebe.png new file mode 100644 index 0000000..f471bfa Binary files /dev/null and b/assets/plants/arbre4_bebe.png differ diff --git a/assets/plants/arbre4_bebe.png.import b/assets/plants/arbre4_bebe.png.import new file mode 100644 index 0000000..17fd8d6 --- /dev/null +++ b/assets/plants/arbre4_bebe.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bxw81k0af64wo" +path="res://.godot/imported/arbre4_bebe.png-62b1f680df28921d4c6e2ec22b941f22.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre4_bebe.png" +dest_files=["res://.godot/imported/arbre4_bebe.png-62b1f680df28921d4c6e2ec22b941f22.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre4_bebe_glow.png b/assets/plants/arbre4_bebe_glow.png new file mode 100644 index 0000000..c51f692 Binary files /dev/null and b/assets/plants/arbre4_bebe_glow.png differ diff --git a/assets/plants/arbre4_bebe_glow.png.import b/assets/plants/arbre4_bebe_glow.png.import new file mode 100644 index 0000000..11163d2 --- /dev/null +++ b/assets/plants/arbre4_bebe_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dvon76hnof5ny" +path="res://.godot/imported/arbre4_bebe_glow.png-54f732f16707852f46b7adf253acf118.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre4_bebe_glow.png" +dest_files=["res://.godot/imported/arbre4_bebe_glow.png-54f732f16707852f46b7adf253acf118.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre4_glow.png b/assets/plants/arbre4_glow.png new file mode 100644 index 0000000..d410111 Binary files /dev/null and b/assets/plants/arbre4_glow.png differ diff --git a/assets/plants/arbre4_glow.png.import b/assets/plants/arbre4_glow.png.import new file mode 100644 index 0000000..e77b5f7 --- /dev/null +++ b/assets/plants/arbre4_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://6sbvx064f20y" +path="res://.godot/imported/arbre4_glow.png-f712192cf4a1a44d93272dc25df46a89.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre4_glow.png" +dest_files=["res://.godot/imported/arbre4_glow.png-f712192cf4a1a44d93272dc25df46a89.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre5.png b/assets/plants/arbre5.png new file mode 100644 index 0000000..2c04cdc Binary files /dev/null and b/assets/plants/arbre5.png differ diff --git a/assets/plants/arbre5.png.import b/assets/plants/arbre5.png.import new file mode 100644 index 0000000..6b6c10f --- /dev/null +++ b/assets/plants/arbre5.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://rc3mom584tm8" +path="res://.godot/imported/arbre5.png-834c30f52d52cdb2f4e4c837bd13e412.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre5.png" +dest_files=["res://.godot/imported/arbre5.png-834c30f52d52cdb2f4e4c837bd13e412.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre5_glow.png b/assets/plants/arbre5_glow.png new file mode 100644 index 0000000..5ccf312 Binary files /dev/null and b/assets/plants/arbre5_glow.png differ diff --git a/assets/plants/arbre5_glow.png.import b/assets/plants/arbre5_glow.png.import new file mode 100644 index 0000000..04c49b5 --- /dev/null +++ b/assets/plants/arbre5_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bb2bd3h1uwhxp" +path="res://.godot/imported/arbre5_glow.png-fe088591909d98af8d58330b032eb0bf.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre5_glow.png" +dest_files=["res://.godot/imported/arbre5_glow.png-fe088591909d98af8d58330b032eb0bf.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/arbre_phase1.png b/assets/plants/arbre_phase1.png new file mode 100644 index 0000000..7d160e6 Binary files /dev/null and b/assets/plants/arbre_phase1.png differ diff --git a/assets/plants/arbre_phase1.png.import b/assets/plants/arbre_phase1.png.import new file mode 100644 index 0000000..56c76a1 --- /dev/null +++ b/assets/plants/arbre_phase1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c5felbfti153f" +path="res://.godot/imported/arbre_phase1.png-7b67e16dbd48fa0a526bbaea28361fe6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/arbre_phase1.png" +dest_files=["res://.godot/imported/arbre_phase1.png-7b67e16dbd48fa0a526bbaea28361fe6.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution1.1glow.png b/assets/plants/evolution1.1glow.png new file mode 100644 index 0000000..5e30d65 Binary files /dev/null and b/assets/plants/evolution1.1glow.png differ diff --git a/assets/plants/evolution1.1glow.png.import b/assets/plants/evolution1.1glow.png.import new file mode 100644 index 0000000..8880e80 --- /dev/null +++ b/assets/plants/evolution1.1glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://drxb6gfgib6b2" +path="res://.godot/imported/evolution1.1glow.png-f0d7dc526538a584eeb1585f3fa0a19c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution1.1glow.png" +dest_files=["res://.godot/imported/evolution1.1glow.png-f0d7dc526538a584eeb1585f3fa0a19c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution1.3_glow.png b/assets/plants/evolution1.3_glow.png new file mode 100644 index 0000000..a2c7a62 Binary files /dev/null and b/assets/plants/evolution1.3_glow.png differ diff --git a/assets/plants/evolution1.3_glow.png.import b/assets/plants/evolution1.3_glow.png.import new file mode 100644 index 0000000..f00d6e2 --- /dev/null +++ b/assets/plants/evolution1.3_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dx8rc0ac1luab" +path="res://.godot/imported/evolution1.3_glow.png-e085479add4665018c4a69fa9c9bdfc5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution1.3_glow.png" +dest_files=["res://.godot/imported/evolution1.3_glow.png-e085479add4665018c4a69fa9c9bdfc5.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution1.4glow.png b/assets/plants/evolution1.4glow.png new file mode 100644 index 0000000..570fbdd Binary files /dev/null and b/assets/plants/evolution1.4glow.png differ diff --git a/assets/plants/evolution1.4glow.png.import b/assets/plants/evolution1.4glow.png.import new file mode 100644 index 0000000..df2e72c --- /dev/null +++ b/assets/plants/evolution1.4glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://deckgdj2y50a0" +path="res://.godot/imported/evolution1.4glow.png-ba6d9f00f7e620288f5ce50b8b3ef61d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution1.4glow.png" +dest_files=["res://.godot/imported/evolution1.4glow.png-ba6d9f00f7e620288f5ce50b8b3ef61d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution2.1glow.png b/assets/plants/evolution2.1glow.png new file mode 100644 index 0000000..cff274d Binary files /dev/null and b/assets/plants/evolution2.1glow.png differ diff --git a/assets/plants/evolution2.1glow.png.import b/assets/plants/evolution2.1glow.png.import new file mode 100644 index 0000000..f30c756 --- /dev/null +++ b/assets/plants/evolution2.1glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dj145jeb441ms" +path="res://.godot/imported/evolution2.1glow.png-91a713251021e467ff8616a481abb0af.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution2.1glow.png" +dest_files=["res://.godot/imported/evolution2.1glow.png-91a713251021e467ff8616a481abb0af.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution2.2glow.png b/assets/plants/evolution2.2glow.png new file mode 100644 index 0000000..574a04c Binary files /dev/null and b/assets/plants/evolution2.2glow.png differ diff --git a/assets/plants/evolution2.2glow.png.import b/assets/plants/evolution2.2glow.png.import new file mode 100644 index 0000000..5750cec --- /dev/null +++ b/assets/plants/evolution2.2glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b6yakjoc56ykx" +path="res://.godot/imported/evolution2.2glow.png-b02f72f018ffb7197166e8f543dd6d4e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution2.2glow.png" +dest_files=["res://.godot/imported/evolution2.2glow.png-b02f72f018ffb7197166e8f543dd6d4e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution2.3glow.png b/assets/plants/evolution2.3glow.png new file mode 100644 index 0000000..8606924 Binary files /dev/null and b/assets/plants/evolution2.3glow.png differ diff --git a/assets/plants/evolution2.3glow.png.import b/assets/plants/evolution2.3glow.png.import new file mode 100644 index 0000000..1d06552 --- /dev/null +++ b/assets/plants/evolution2.3glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bkq3n2q6m01e3" +path="res://.godot/imported/evolution2.3glow.png-eef5457a463f31e34cf412586b649cbd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution2.3glow.png" +dest_files=["res://.godot/imported/evolution2.3glow.png-eef5457a463f31e34cf412586b649cbd.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution2.4_glow.png b/assets/plants/evolution2.4_glow.png new file mode 100644 index 0000000..191d5c0 Binary files /dev/null and b/assets/plants/evolution2.4_glow.png differ diff --git a/assets/plants/evolution2.4_glow.png.import b/assets/plants/evolution2.4_glow.png.import new file mode 100644 index 0000000..a05364a --- /dev/null +++ b/assets/plants/evolution2.4_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://db46hrnjgcunf" +path="res://.godot/imported/evolution2.4_glow.png-f9cb05db09741bcf291d27014603cf45.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution2.4_glow.png" +dest_files=["res://.godot/imported/evolution2.4_glow.png-f9cb05db09741bcf291d27014603cf45.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution2glow.png b/assets/plants/evolution2glow.png new file mode 100644 index 0000000..31cfd65 Binary files /dev/null and b/assets/plants/evolution2glow.png differ diff --git a/assets/plants/evolution2glow.png.import b/assets/plants/evolution2glow.png.import new file mode 100644 index 0000000..1c1260c --- /dev/null +++ b/assets/plants/evolution2glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ud3xq44sv0ye" +path="res://.godot/imported/evolution2glow.png-2109528226e6bd609a61a5a371bb68d9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution2glow.png" +dest_files=["res://.godot/imported/evolution2glow.png-2109528226e6bd609a61a5a371bb68d9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution3.1glow.png b/assets/plants/evolution3.1glow.png new file mode 100644 index 0000000..ff58318 Binary files /dev/null and b/assets/plants/evolution3.1glow.png differ diff --git a/assets/plants/evolution3.1glow.png.import b/assets/plants/evolution3.1glow.png.import new file mode 100644 index 0000000..be79b00 --- /dev/null +++ b/assets/plants/evolution3.1glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://depyywow3yxex" +path="res://.godot/imported/evolution3.1glow.png-91ccc6c4e3bb8fcd4d889787ed100382.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution3.1glow.png" +dest_files=["res://.godot/imported/evolution3.1glow.png-91ccc6c4e3bb8fcd4d889787ed100382.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution3.2glow.png b/assets/plants/evolution3.2glow.png new file mode 100644 index 0000000..a50f522 Binary files /dev/null and b/assets/plants/evolution3.2glow.png differ diff --git a/assets/plants/evolution3.2glow.png.import b/assets/plants/evolution3.2glow.png.import new file mode 100644 index 0000000..fd26797 --- /dev/null +++ b/assets/plants/evolution3.2glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bb4t30vv1erc3" +path="res://.godot/imported/evolution3.2glow.png-0ac8735fda4728f54df43f5984352c42.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution3.2glow.png" +dest_files=["res://.godot/imported/evolution3.2glow.png-0ac8735fda4728f54df43f5984352c42.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution3.3glow.png b/assets/plants/evolution3.3glow.png new file mode 100644 index 0000000..8ad6513 Binary files /dev/null and b/assets/plants/evolution3.3glow.png differ diff --git a/assets/plants/evolution3.3glow.png.import b/assets/plants/evolution3.3glow.png.import new file mode 100644 index 0000000..76ea3e4 --- /dev/null +++ b/assets/plants/evolution3.3glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://yjn26ei0e2du" +path="res://.godot/imported/evolution3.3glow.png-e6a9665734979d5c11670084af15979b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution3.3glow.png" +dest_files=["res://.godot/imported/evolution3.3glow.png-e6a9665734979d5c11670084af15979b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/evolution3glow.png b/assets/plants/evolution3glow.png new file mode 100644 index 0000000..7317353 Binary files /dev/null and b/assets/plants/evolution3glow.png differ diff --git a/assets/plants/evolution3glow.png.import b/assets/plants/evolution3glow.png.import new file mode 100644 index 0000000..fd30d47 --- /dev/null +++ b/assets/plants/evolution3glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d1ax04je3roq1" +path="res://.godot/imported/evolution3glow.png-8b4bc6923d07e140a6f6077fd4622222.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/evolution3glow.png" +dest_files=["res://.godot/imported/evolution3glow.png-8b4bc6923d07e140a6f6077fd4622222.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/herbe6_glow.png b/assets/plants/herbe6_glow.png new file mode 100644 index 0000000..9fad5d1 Binary files /dev/null and b/assets/plants/herbe6_glow.png differ diff --git a/assets/plants/herbe6_glow.png.import b/assets/plants/herbe6_glow.png.import new file mode 100644 index 0000000..edf3924 --- /dev/null +++ b/assets/plants/herbe6_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2jec7uow8ska" +path="res://.godot/imported/herbe6_glow.png-241b800afd2992974d322cc2fd81339f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/herbe6_glow.png" +dest_files=["res://.godot/imported/herbe6_glow.png-241b800afd2992974d322cc2fd81339f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/herbe7_glow.png b/assets/plants/herbe7_glow.png new file mode 100644 index 0000000..b42e7ab Binary files /dev/null and b/assets/plants/herbe7_glow.png differ diff --git a/assets/plants/herbe7_glow.png.import b/assets/plants/herbe7_glow.png.import new file mode 100644 index 0000000..470552b --- /dev/null +++ b/assets/plants/herbe7_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://rnkj528y5ar8" +path="res://.godot/imported/herbe7_glow.png-e639bcd74b6920f757e88927ec67a9ef.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/herbe7_glow.png" +dest_files=["res://.godot/imported/herbe7_glow.png-e639bcd74b6920f757e88927ec67a9ef.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/plants/herbe8_glow.png b/assets/plants/herbe8_glow.png new file mode 100644 index 0000000..947e1cd Binary files /dev/null and b/assets/plants/herbe8_glow.png differ diff --git a/assets/plants/herbe8_glow.png.import b/assets/plants/herbe8_glow.png.import new file mode 100644 index 0000000..e5b630e --- /dev/null +++ b/assets/plants/herbe8_glow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dbngicd3wc6p3" +path="res://.godot/imported/herbe8_glow.png-2c52a55aa1b568fcabb9bfa52e2c8630.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/plants/herbe8_glow.png" +dest_files=["res://.godot/imported/herbe8_glow.png-2c52a55aa1b568fcabb9bfa52e2c8630.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/objects/Animal.tscn b/objects/Animal.tscn index 321e42b..f1aa943 100644 --- a/objects/Animal.tscn +++ b/objects/Animal.tscn @@ -10,7 +10,7 @@ radius = 599.083 script = ExtResource("1_bjim0") [node name="Sprite2D" type="Sprite2D" parent="."] -scale = Vector2(0.3, 0.3) +scale = Vector2(0.7, 0.7) texture = ExtResource("2_n8edq") offset = Vector2(170, -550) diff --git a/objects/Planter.tscn b/objects/Planter.tscn index be90260..c400624 100644 --- a/objects/Planter.tscn +++ b/objects/Planter.tscn @@ -25,7 +25,7 @@ wait_time = 0.2 one_shot = true [node name="Robot" parent="." instance=ExtResource("6_of7ri")] -position = Vector2(1964, 1669) +position = Vector2(1439, 1360) [node name="RobotSeed" type="Sprite2D" parent="Robot"] position = Vector2(0, 63) diff --git a/objects/plant.tscn b/objects/plant.tscn index c0d1dc4..88abbfd 100644 --- a/objects/plant.tscn +++ b/objects/plant.tscn @@ -1,13 +1,17 @@ -[gd_scene load_steps=8 format=3 uid="uid://x4kv2y5f52cm"] +[gd_scene load_steps=6 format=3 uid="uid://x4kv2y5f52cm"] [ext_resource type="Script" path="res://scripts/plant.gd" id="1_drvq1"] -[ext_resource type="Texture2D" uid="uid://br1olfut3p0tx" path="res://assets/plants/evolution1.1.png" id="2_gm8i8"] +[ext_resource type="Texture2D" uid="uid://b3kjaw1hajc6s" path="res://assets/grille_seeds.png" id="1_n5onq"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_5did5"] +atlas = ExtResource("1_n5onq") +region = Rect2(810, 540, 270, 270) [sub_resource type="SpriteFrames" id="SpriteFrames_667un"] animations = [{ "frames": [{ "duration": 1.0, -"texture": ExtResource("2_gm8i8") +"texture": SubResource("AtlasTexture_5did5") }], "loop": true, "name": &"SEED", @@ -17,43 +21,6 @@ animations = [{ [sub_resource type="CircleShape2D" id="CircleShape2D_jksuk"] radius = 36.0 -[sub_resource type="Animation" id="Animation_3rkca"] -resource_name = "Growing" -length = 0.3 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("AnimatedSprite2D:scale") -tracks/0/interp = 2 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 0.133333, 0.3), -"transitions": PackedFloat32Array(1, 1, 1), -"update": 0, -"values": [Vector2(0.1, 0.05), Vector2(0.122, 0.3), Vector2(0.2, 0.2)] -} - -[sub_resource type="Animation" id="Animation_j53j8"] -length = 0.001 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("AnimatedSprite2D:scale") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Vector2(0.2, 0.2)] -} - -[sub_resource type="AnimationLibrary" id="AnimationLibrary_cop0v"] -_data = { -"Growing": SubResource("Animation_3rkca"), -"RESET": SubResource("Animation_j53j8") -} - [node name="Plant" type="Node2D"] script = ExtResource("1_drvq1") @@ -78,11 +45,6 @@ offset = Vector2(0, -250) [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] shape = SubResource("CircleShape2D_jksuk") -[node name="AnimationPlayer" type="AnimationPlayer" parent="."] -libraries = { -"": SubResource("AnimationLibrary_cop0v") -} - [connection signal="timeout" from="Growing" to="." method="_on_growing_timeout"] [connection signal="timeout" from="NeedChecker" to="." method="_on_need_checker_timeout"] [connection signal="timeout" from="SaplingCountDown" to="." method="_on_sapling_count_down_timeout"] diff --git a/objects/plant_types/Bonaluria.tres b/objects/plant_types/Bonaluria.tres new file mode 100644 index 0000000..fec3c84 --- /dev/null +++ b/objects/plant_types/Bonaluria.tres @@ -0,0 +1,57 @@ +[gd_resource type="Resource" script_class="PlantType" load_steps=8 format=3 uid="uid://cfbdjq14ouwra"] + +[ext_resource type="Script" path="res://scripts/plant_type.gd" id="1_208yf"] +[ext_resource type="Texture2D" uid="uid://b3kjaw1hajc6s" path="res://assets/grille_seeds.png" id="2_wwtfx"] +[ext_resource type="Texture2D" uid="uid://di74g50h3oruf" path="res://assets/plants/plantes mortes/arbre_mort.png" id="3_8jirk"] +[ext_resource type="Texture2D" uid="uid://dwm660gppiset" path="res://assets/plants/abre2.png" id="4_ore5j"] +[ext_resource type="Texture2D" uid="uid://c5felbfti153f" path="res://assets/plants/arbre_phase1.png" id="5_aukq7"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_wgugp"] +atlas = ExtResource("2_wwtfx") +region = Rect2(0, 540, 270, 270) + +[sub_resource type="SpriteFrames" id="SpriteFrames_teefd"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("3_8jirk") +}], +"loop": true, +"name": &"DEAD", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("4_ore5j") +}], +"loop": true, +"name": &"GROWN", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("5_aukq7") +}], +"loop": true, +"name": &"SAPLING", +"speed": 5.0 +}] + +[resource] +script = ExtResource("1_208yf") +type = "Bonaluria" +seed_sprite = SubResource("AtlasTexture_wgugp") +sprite_frames = SubResource("SpriteFrames_teefd") +growing_time = 60.0 +offspring_per_lifetime = 0 +dying_time = 240.0 +dead_time = 120.0 +water_need = [-1, 10] +fertility_need = [2, 10] +presence_need = [2, 20] +water_prod = 6 +fertility_prod = 2 +presence_prod = 4 +dead_water_prod = 3 +dead_fertility_prod = 2 +distance_prod = 600 diff --git a/objects/plant_types/Ekoth.tres b/objects/plant_types/Ekoth.tres index 78cbbd4..2bf5069 100644 --- a/objects/plant_types/Ekoth.tres +++ b/objects/plant_types/Ekoth.tres @@ -42,16 +42,16 @@ script = ExtResource("1_duqty") type = "Ekoth" seed_sprite = SubResource("AtlasTexture_u2flf") sprite_frames = SubResource("SpriteFrames_570ha") -growing_time = 20.0 +growing_time = 2.0 offspring_per_lifetime = 1 dying_time = 120.0 dead_time = 60.0 -water_need = [-3, 10] -fertility_need = [-3, 10] +water_need = [-5, 8] +fertility_need = [-1, 9] presence_need = [2, 19] -water_prod = 3 +water_prod = 4 fertility_prod = 0 presence_prod = 2 dead_water_prod = 2 dead_fertility_prod = 0 -distance_prod = 200 +distance_prod = 300 diff --git a/objects/plant_types/Elandorr.tres b/objects/plant_types/Elandorr.tres index f6923a9..d32479b 100644 --- a/objects/plant_types/Elandorr.tres +++ b/objects/plant_types/Elandorr.tres @@ -42,7 +42,7 @@ script = ExtResource("1_74myt") type = "Elandorr" seed_sprite = SubResource("AtlasTexture_852mh") sprite_frames = SubResource("SpriteFrames_av8xm") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 0 presence_prod = 1 dead_water_prod = 0 dead_fertility_prod = 1 -distance_prod = 150 +distance_prod = 200 diff --git a/objects/plant_types/Konnidat.tres b/objects/plant_types/Konnidat.tres index 7637959..637a293 100644 --- a/objects/plant_types/Konnidat.tres +++ b/objects/plant_types/Konnidat.tres @@ -42,7 +42,7 @@ script = ExtResource("1_1xwqx") type = "Konnidat" seed_sprite = SubResource("AtlasTexture_6mli1") sprite_frames = SubResource("SpriteFrames_g2ui0") -growing_time = 20.0 +growing_time = 2.0 offspring_per_lifetime = 1 dying_time = 120.0 dead_time = 60.0 @@ -54,4 +54,4 @@ fertility_prod = 2 presence_prod = 2 dead_water_prod = 1 dead_fertility_prod = 1 -distance_prod = 200 +distance_prod = 300 diff --git a/objects/plant_types/Lithoniel.tres b/objects/plant_types/Lithoniel.tres new file mode 100644 index 0000000..2b753db --- /dev/null +++ b/objects/plant_types/Lithoniel.tres @@ -0,0 +1,57 @@ +[gd_resource type="Resource" script_class="PlantType" load_steps=8 format=3 uid="uid://cbvlod5m6s5pk"] + +[ext_resource type="Script" path="res://scripts/plant_type.gd" id="1_sfd4l"] +[ext_resource type="Texture2D" uid="uid://b3kjaw1hajc6s" path="res://assets/grille_seeds.png" id="2_5nqbe"] +[ext_resource type="Texture2D" uid="uid://di74g50h3oruf" path="res://assets/plants/plantes mortes/arbre_mort.png" id="3_k1kks"] +[ext_resource type="Texture2D" uid="uid://bu462tqc23ygm" path="res://assets/plants/arbre3.png" id="4_rhg44"] +[ext_resource type="Texture2D" uid="uid://crgjmsk6ailnb" path="res://assets/plants/arbre3_bebe.png" id="5_43s5v"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_rihnu"] +atlas = ExtResource("2_5nqbe") +region = Rect2(810, 540, 270, 270) + +[sub_resource type="SpriteFrames" id="SpriteFrames_8hq66"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("3_k1kks") +}], +"loop": true, +"name": &"DEAD", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("4_rhg44") +}], +"loop": true, +"name": &"GROWN", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("5_43s5v") +}], +"loop": true, +"name": &"SAPLING", +"speed": 5.0 +}] + +[resource] +script = ExtResource("1_sfd4l") +type = "Lithoniel" +seed_sprite = SubResource("AtlasTexture_rihnu") +sprite_frames = SubResource("SpriteFrames_8hq66") +growing_time = 60.0 +offspring_per_lifetime = 0 +dying_time = 240.0 +dead_time = 120.0 +water_need = [2, 10] +fertility_need = [-1, 10] +presence_need = [2, 20] +water_prod = 2 +fertility_prod = 6 +presence_prod = 4 +dead_water_prod = 2 +dead_fertility_prod = 4 +distance_prod = 600 diff --git a/objects/plant_types/Mirut.tres b/objects/plant_types/Mirut.tres index 94c3874..5bef12e 100644 --- a/objects/plant_types/Mirut.tres +++ b/objects/plant_types/Mirut.tres @@ -42,7 +42,7 @@ script = ExtResource("1_32rwi") type = "Mirut" seed_sprite = SubResource("AtlasTexture_2qduo") sprite_frames = SubResource("SpriteFrames_qnxif") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 2 presence_prod = 2 dead_water_prod = 0 dead_fertility_prod = 1 -distance_prod = 300 +distance_prod = 400 diff --git a/objects/plant_types/Naertho.tres b/objects/plant_types/Naertho.tres index f098d3d..902350a 100644 --- a/objects/plant_types/Naertho.tres +++ b/objects/plant_types/Naertho.tres @@ -42,7 +42,7 @@ script = ExtResource("1_cmyhw") type = "Naertho" seed_sprite = SubResource("AtlasTexture_b4v1x") sprite_frames = SubResource("SpriteFrames_rva4e") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 0 presence_prod = 2 dead_water_prod = 1 dead_fertility_prod = 1 -distance_prod = 300 +distance_prod = 400 diff --git a/objects/plant_types/Nakag.tres b/objects/plant_types/Nakag.tres index 890b567..e2bbd39 100644 --- a/objects/plant_types/Nakag.tres +++ b/objects/plant_types/Nakag.tres @@ -42,7 +42,7 @@ script = ExtResource("1_incgu") type = "Nakag" seed_sprite = SubResource("AtlasTexture_6rb5i") sprite_frames = SubResource("SpriteFrames_jxwln") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 0 presence_prod = 1 dead_water_prod = 0 dead_fertility_prod = 1 -distance_prod = 150 +distance_prod = 200 diff --git a/objects/plant_types/Navarre.tres b/objects/plant_types/Navarre.tres index df8c4be..467956a 100644 --- a/objects/plant_types/Navarre.tres +++ b/objects/plant_types/Navarre.tres @@ -42,16 +42,16 @@ script = ExtResource("1_4c8pg") type = "Navarre" seed_sprite = SubResource("AtlasTexture_4k2ke") sprite_frames = SubResource("SpriteFrames_fj7da") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 -water_need = [-3, 10] -fertility_need = [-3, 10] +water_need = [-1, 9] +fertility_need = [-5, 8] presence_need = [2, 19] water_prod = 0 -fertility_prod = 3 +fertility_prod = 4 presence_prod = 2 dead_water_prod = 0 dead_fertility_prod = 2 -distance_prod = 200 +distance_prod = 300 diff --git a/objects/plant_types/Oggamon.tres b/objects/plant_types/Oggamon.tres index 742c183..1301132 100644 --- a/objects/plant_types/Oggamon.tres +++ b/objects/plant_types/Oggamon.tres @@ -42,7 +42,7 @@ script = ExtResource("1_mr0h0") type = "Oggamon" seed_sprite = SubResource("AtlasTexture_7ctak") sprite_frames = SubResource("SpriteFrames_hd824") -growing_time = 20.0 +growing_time = 2.0 offspring_per_lifetime = 1 dying_time = 120.0 dead_time = 60.0 @@ -54,4 +54,4 @@ fertility_prod = 0 presence_prod = 2 dead_water_prod = 1 dead_fertility_prod = 1 -distance_prod = 300 +distance_prod = 400 diff --git a/objects/plant_types/Oogut.tres b/objects/plant_types/Oogut.tres index ba88d0a..719abd5 100644 --- a/objects/plant_types/Oogut.tres +++ b/objects/plant_types/Oogut.tres @@ -42,7 +42,7 @@ script = ExtResource("1_4cghd") type = "Oogut" seed_sprite = SubResource("AtlasTexture_1kvg0") sprite_frames = SubResource("SpriteFrames_xu0md") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 1 presence_prod = 1 dead_water_prod = 0 dead_fertility_prod = 1 -distance_prod = 150 +distance_prod = 200 diff --git a/objects/plant_types/Ungrake.tres b/objects/plant_types/Ungrake.tres index 7503d39..d7f7a15 100644 --- a/objects/plant_types/Ungrake.tres +++ b/objects/plant_types/Ungrake.tres @@ -42,7 +42,7 @@ script = ExtResource("1_d77oo") type = "Ungrake" seed_sprite = SubResource("AtlasTexture_efpgb") sprite_frames = SubResource("SpriteFrames_lsdll") -growing_time = 20.0 +growing_time = 2.0 offspring_per_lifetime = 1 dying_time = 120.0 dead_time = 60.0 @@ -54,4 +54,4 @@ fertility_prod = 1 presence_prod = 1 dead_water_prod = 0 dead_fertility_prod = 1 -distance_prod = 150 +distance_prod = 200 diff --git a/objects/plant_types/Wyrran.tres b/objects/plant_types/Wyrran.tres index 36d53bd..ed30226 100644 --- a/objects/plant_types/Wyrran.tres +++ b/objects/plant_types/Wyrran.tres @@ -42,7 +42,7 @@ script = ExtResource("1_xvhlf") type = "Wyrran" seed_sprite = SubResource("AtlasTexture_ssp8o") sprite_frames = SubResource("SpriteFrames_bvpo8") -growing_time = 10.0 +growing_time = 1.0 offspring_per_lifetime = 3 dying_time = 60.0 dead_time = 30.0 @@ -54,4 +54,4 @@ fertility_prod = 2 presence_prod = 2 dead_water_prod = 0 dead_fertility_prod = 2 -distance_prod = 300 +distance_prod = 400 diff --git a/scenes/Gui.tscn b/scenes/Gui.tscn index c4f0a33..aa213b8 100644 --- a/scenes/Gui.tscn +++ b/scenes/Gui.tscn @@ -1,20 +1,9 @@ -[gd_scene load_steps=11 format=3 uid="uid://dha8pa1les53a"] +[gd_scene load_steps=5 format=3 uid="uid://dha8pa1les53a"] [ext_resource type="Script" path="res://scripts/gui.gd" id="1_6gq27"] [ext_resource type="PackedScene" uid="uid://bm8nlb7kmaa6k" path="res://objects/gui/Seed_queue.tscn" id="1_lh8u1"] [ext_resource type="PackedScene" uid="uid://iaf4md4cbwqh" path="res://objects/gui/Seed_card.tscn" id="2_bt3vo"] [ext_resource type="PackedScene" uid="uid://0so4tpnkk8t2" path="res://objects/gui/Scanner_modes.tscn" id="3_bsm7r"] -[ext_resource type="Script" path="res://scripts/tuto.gd" id="5_5h6w8"] -[ext_resource type="Texture2D" uid="uid://dqogq148ksscp" path="res://assets/sprites/robot/walk/frame_01.png" id="5_kwcrh"] -[ext_resource type="Theme" uid="uid://dnebunkx13tbr" path="res://assets/gui/Text.tres" id="6_tw1fh"] -[ext_resource type="AudioStream" uid="uid://n7seb2bqfped" path="res://assets/sounds/Dialogue.mp3" id="8_8y3ei"] - -[sub_resource type="LabelSettings" id="LabelSettings_kryjr"] -font_size = 20 - -[sub_resource type="LabelSettings" id="LabelSettings_y5jk3"] -font_size = 22 -font_color = Color(0.882353, 0.6, 0.145098, 1) [node name="Gui" type="Control"] layout_mode = 3 @@ -49,69 +38,4 @@ mouse_filter = 1 [node name="ScannerModes" parent="MarginContainer" instance=ExtResource("3_bsm7r")] layout_mode = 2 -[node name="Tuto" type="Control" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -script = ExtResource("5_5h6w8") - -[node name="ColorRect" type="ColorRect" parent="Tuto"] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -color = Color(0.08, 0.0432, 0.0793867, 0.803922) - -[node name="MarginContainer" type="MarginContainer" parent="Tuto"] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -theme_override_constants/margin_left = 20 -theme_override_constants/margin_top = 20 -theme_override_constants/margin_right = 20 -theme_override_constants/margin_bottom = 20 - -[node name="TextureRect" type="TextureRect" parent="Tuto/MarginContainer"] -custom_minimum_size = Vector2(300, 300) -layout_mode = 2 -size_flags_horizontal = 0 -size_flags_vertical = 8 -texture = ExtResource("5_kwcrh") -expand_mode = 1 -stretch_mode = 5 - -[node name="Text" type="Label" parent="Tuto/MarginContainer"] -custom_minimum_size = Vector2(600, 256.175) -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 8 -theme = ExtResource("6_tw1fh") -text = "Hi there ! -Welcome to GJ 238 B, an awesome exoplanet that somehow, dsddsdsd sdsdd sdsd s sdssd sdsdsdsdd dsdddsd" -label_settings = SubResource("LabelSettings_kryjr") -horizontal_alignment = 1 -vertical_alignment = 1 -autowrap_mode = 2 - -[node name="Label2" type="Label" parent="Tuto/MarginContainer"] -layout_mode = 2 -size_flags_horizontal = 8 -size_flags_vertical = 8 -theme = ExtResource("6_tw1fh") -text = "Click to continue" -label_settings = SubResource("LabelSettings_y5jk3") -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="RobotSpeak" type="AudioStreamPlayer" parent="Tuto"] -stream = ExtResource("8_8y3ei") - [connection signal="scanner_selected" from="MarginContainer/ScannerModes" to="." method="_on_scanner_modes_scanner_selected"] diff --git a/scenes/Map.tscn b/scenes/Map.tscn index 2cfe156..30808bf 100644 --- a/scenes/Map.tscn +++ b/scenes/Map.tscn @@ -2,10 +2,10 @@ [ext_resource type="Script" path="res://scripts/map.gd" id="1_3np0o"] [ext_resource type="PackedScene" uid="uid://6ferubyu2uy1" path="res://scenes/Scanners.tscn" id="1_6mlj0"] -[ext_resource type="PackedScene" path="res://objects/Animal.tscn" id="4_pkphc"] +[ext_resource type="PackedScene" uid="uid://cj457q2fx5mim" path="res://objects/Animal.tscn" id="4_pkphc"] [ext_resource type="Texture2D" uid="uid://c84bc7d0f8gtn" path="res://assets/texture/sky.png" id="4_uy8vn"] +[ext_resource type="Texture2D" uid="uid://bkwi6yurko7gm" path="res://assets/texture/sol_gamejam_fleurs.png" id="5_6sl35"] [ext_resource type="Shader" path="res://scripts/shaders/TextureSplit.gdshader" id="5_iqvbx"] -[ext_resource type="Texture2D" uid="uid://ci1oiftbr13ci" path="res://assets/texture/sol_gamejam_marais.png" id="5_p5o52"] [ext_resource type="Texture2D" uid="uid://6h5ieh6ba7re" path="res://assets/texture/sol_gamejam_mort.png" id="6_wj5l3"] [ext_resource type="Texture2D" uid="uid://c85s1vwryvngb" path="res://assets/texture/sol_gamejam_normal.png" id="7_iuq0o"] [ext_resource type="Texture2D" uid="uid://de81tdearo84u" path="res://assets/texture/sol_gamejam_fleurs_transp.png" id="8_6vuay"] @@ -17,11 +17,11 @@ shader_parameter/data_texture_size = null shader_parameter/texture_low_threshold = 0.3 shader_parameter/texture_high_threshold = 0.7 shader_parameter/dimension = null -shader_parameter/texture_size = Vector2(768, 432) +shader_parameter/texture_size = Vector2(384, 216) shader_parameter/smooth_change_range = 0.15 shader_parameter/texture_low = ExtResource("6_wj5l3") shader_parameter/texture_medium = ExtResource("7_iuq0o") -shader_parameter/texture_high = ExtResource("5_p5o52") +shader_parameter/texture_high = ExtResource("5_6sl35") [sub_resource type="CompressedTexture2D" id="CompressedTexture2D_rhtup"] @@ -38,7 +38,7 @@ shader_parameter/data_texture_size = Vector2(1000, 1000) shader_parameter/texture_low_threshold = 0.01 shader_parameter/texture_high_threshold = 0.711 shader_parameter/dimension = 1 -shader_parameter/texture_size = Vector2(768, 432) +shader_parameter/texture_size = Vector2(384, 216) shader_parameter/smooth_change_range = 0.0 shader_parameter/texture_low = ExtResource("9_wuhlx") shader_parameter/texture_medium = SubResource("GradientTexture1D_hwe6p") @@ -68,24 +68,21 @@ texture_repeat = 2 material = SubResource("ShaderMaterial_4rqj7") color = Color(1, 1, 1, 0) texture_scale = Vector2(5, 5) +polygon = PackedVector2Array(27, 788, 54, 1452, 1715, 1163, 1439, -501, -416, -340) [node name="Animals" type="Node2D" parent="."] y_sort_enabled = true [node name="Animal" parent="Animals" instance=ExtResource("4_pkphc")] -position = Vector2(2394, 775) -plant_need = "Chardon" +position = Vector2(1905, 566) [node name="Animal2" parent="Animals" instance=ExtResource("4_pkphc")] -position = Vector2(871, 2429) -plant_need = "Chardon" +position = Vector2(382, 2220) [node name="Animal3" parent="Animals" instance=ExtResource("4_pkphc")] -position = Vector2(2336, 2457) -plant_need = "Buisson" +position = Vector2(1847, 2248) [node name="Animal4" parent="Animals" instance=ExtResource("4_pkphc")] -position = Vector2(1025, 757) -plant_need = "Chene" +position = Vector2(536, 548) [connection signal="liberated" from="Animals/Animal" to="." method="_on_animal_liberated"] diff --git a/scripts/animal.gd b/scripts/animal.gd index 45f3ed4..61b7188 100644 --- a/scripts/animal.gd +++ b/scripts/animal.gd @@ -2,17 +2,30 @@ extends Node2D signal liberated -@export var plant_need: String -var libarated := false +@export var n_plant_needed: int + +var is_liberated := false +var current_plants := 0 func _on_area_2d_area_entered(area: Area2D) -> void: var plant = area.get_parent() if plant is Plant and not liberated: - if plant_need == plant.parameter.type: - plant.grown.connect(tracked_plant_grew) + plant.grown.connect(tracked_plant_grew) + plant.died.connect() func tracked_plant_grew(): if liberated: return + current_plants += 1 + if current_plants == n_plant_needed: + liberate() + +func tracked_plant_died(): + if liberated: + return + current_plants -= 1 + +func liberate(): + is_liberated = true print("Liberated !!") liberated.emit() diff --git a/scripts/terrain.gd b/scripts/terrain.gd index 0d74151..2418a4f 100644 --- a/scripts/terrain.gd +++ b/scripts/terrain.gd @@ -28,7 +28,7 @@ func map_to_pixel( ) func is_on_map(pos: Vector2) -> bool: - return pos.x >= 0 and pos.x <= TERRAIN_SIZE.x * MAP_RATIO and pos.y >= 0 and pos.y <= TERRAIN_SIZE.y * MAP_RATIO + return pos.x >= 0 and pos.x < TERRAIN_SIZE.x * MAP_RATIO and pos.y >= 0 and pos.y < TERRAIN_SIZE.y * MAP_RATIO func color_value_to_level( color_value : float @@ -84,6 +84,8 @@ func modify_pixel( stat: Stats, modification: int, ): + if not is_on_map(pixel_pos): + return var actual_levels = color_to_levels(image.get_pixelv(pixel_pos)) var modification_levels = modification_to_levels(stat, modification) var calculated_levels = actual_levels + modification_levels @@ -93,6 +95,8 @@ func set_pixel( pixel_pos: Vector2i, level: Vector3i, ): + if not is_on_map(pixel_pos): + return image.set_pixelv(pixel_pos, levels_to_color(level)) func modify_zone( @@ -142,6 +146,8 @@ func get_stat( pos: Vector2, stat : Stats ) -> int: + if not is_on_map(pos): + return 0 var pixel_pos = map_to_pixel(pos) var levels = color_to_levels(image.get_pixelv(pixel_pos)) match stat: