From 7fa37897ca06e81a1dd89d489f3a9627281944c4 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 14:20:40 +0200 Subject: add character sprites and animations --- Assets/Octogirl/Idle/idle_0.png | Bin 0 -> 608 bytes Assets/Octogirl/Idle/idle_0.png.import | 34 ++ Assets/Octogirl/Idle/idle_1.png | Bin 0 -> 640 bytes Assets/Octogirl/Idle/idle_1.png.import | 34 ++ Assets/Octogirl/Idle/idle_2.png | Bin 0 -> 628 bytes Assets/Octogirl/Idle/idle_2.png.import | 34 ++ Assets/Octogirl/Jump/jump_engage_0.png | Bin 0 -> 554 bytes Assets/Octogirl/Jump/jump_engage_0.png.import | 34 ++ Assets/Octogirl/Jump/jump_engage_0.png~ | Bin 0 -> 512 bytes Assets/Octogirl/Jump/jump_engage_1.png | Bin 0 -> 639 bytes Assets/Octogirl/Jump/jump_engage_1.png.import | 34 ++ Assets/Octogirl/Jump/jump_engage_1.png~ | Bin 0 -> 625 bytes Assets/Octogirl/Jump/jump_engage_2.png | Bin 0 -> 657 bytes Assets/Octogirl/Jump/jump_engage_2.png.import | 34 ++ Assets/Octogirl/Jump/jump_engage_2.png~ | Bin 0 -> 630 bytes Assets/Octogirl/Jump/jump_engage_3.png | Bin 0 -> 637 bytes Assets/Octogirl/Jump/jump_engage_3.png.import | 34 ++ Assets/Octogirl/Jump/jump_engage_3.png~ | Bin 0 -> 600 bytes Assets/Octogirl/Jump/jump_land.png | Bin 0 -> 554 bytes Assets/Octogirl/Jump/jump_land.png.import | 34 ++ Assets/Octogirl/Jump/jump_land.png~ | Bin 0 -> 512 bytes Assets/Octogirl/Jump/jump_loop_0.png | Bin 0 -> 625 bytes Assets/Octogirl/Jump/jump_loop_0.png.import | 34 ++ Assets/Octogirl/Jump/jump_loop_0.png~ | Bin 0 -> 594 bytes Assets/Octogirl/Jump/jump_loop_1.png | Bin 0 -> 626 bytes Assets/Octogirl/Jump/jump_loop_1.png.import | 34 ++ Assets/Octogirl/Jump/jump_loop_1.png~ | Bin 0 -> 593 bytes Assets/Octogirl/Jump/jump_loop_2.png | Bin 0 -> 625 bytes Assets/Octogirl/Jump/jump_loop_2.png.import | 34 ++ Assets/Octogirl/Jump/jump_loop_2.png~ | Bin 0 -> 627 bytes Assets/Octogirl/Run/run_0.png | Bin 0 -> 588 bytes Assets/Octogirl/Run/run_0.png.import | 34 ++ Assets/Octogirl/Run/run_1.png | Bin 0 -> 534 bytes Assets/Octogirl/Run/run_1.png.import | 34 ++ Assets/Octogirl/Run/run_2.png | Bin 0 -> 554 bytes Assets/Octogirl/Run/run_2.png.import | 34 ++ Assets/Octogirl/Run/run_end.png | Bin 0 -> 654 bytes Assets/Octogirl/Run/run_end.png.import | 34 ++ Assets/Octogirl/Run/run_start.png | Bin 0 -> 660 bytes Assets/Octogirl/Run/run_start.png.import | 34 ++ Assets/Octogirl/Walk_cycle/walk_0.png | Bin 0 -> 579 bytes Assets/Octogirl/Walk_cycle/walk_0.png.import | 34 ++ Assets/Octogirl/Walk_cycle/walk_0.png~ | Bin 0 -> 587 bytes Assets/Octogirl/Walk_cycle/walk_1.png | Bin 0 -> 527 bytes Assets/Octogirl/Walk_cycle/walk_1.png.import | 34 ++ Assets/Octogirl/Walk_cycle/walk_2.png | Bin 0 -> 543 bytes Assets/Octogirl/Walk_cycle/walk_2.png.import | 34 ++ Assets/Octogirl/octopus.png | Bin 0 -> 329 bytes Assets/Octogirl/octopus.png.import | 34 ++ OverworldPath.gd | 1 - Player.gd | 38 ++- Player.tscn | 443 +++++++++++++++++++++++++- Stage.tscn | 23 +- project.godot | 6 +- 54 files changed, 1174 insertions(+), 17 deletions(-) create mode 100644 Assets/Octogirl/Idle/idle_0.png create mode 100644 Assets/Octogirl/Idle/idle_0.png.import create mode 100644 Assets/Octogirl/Idle/idle_1.png create mode 100644 Assets/Octogirl/Idle/idle_1.png.import create mode 100644 Assets/Octogirl/Idle/idle_2.png create mode 100644 Assets/Octogirl/Idle/idle_2.png.import create mode 100644 Assets/Octogirl/Jump/jump_engage_0.png create mode 100644 Assets/Octogirl/Jump/jump_engage_0.png.import create mode 100644 Assets/Octogirl/Jump/jump_engage_0.png~ create mode 100644 Assets/Octogirl/Jump/jump_engage_1.png create mode 100644 Assets/Octogirl/Jump/jump_engage_1.png.import create mode 100644 Assets/Octogirl/Jump/jump_engage_1.png~ create mode 100644 Assets/Octogirl/Jump/jump_engage_2.png create mode 100644 Assets/Octogirl/Jump/jump_engage_2.png.import create mode 100644 Assets/Octogirl/Jump/jump_engage_2.png~ create mode 100644 Assets/Octogirl/Jump/jump_engage_3.png create mode 100644 Assets/Octogirl/Jump/jump_engage_3.png.import create mode 100644 Assets/Octogirl/Jump/jump_engage_3.png~ create mode 100644 Assets/Octogirl/Jump/jump_land.png create mode 100644 Assets/Octogirl/Jump/jump_land.png.import create mode 100644 Assets/Octogirl/Jump/jump_land.png~ create mode 100644 Assets/Octogirl/Jump/jump_loop_0.png create mode 100644 Assets/Octogirl/Jump/jump_loop_0.png.import create mode 100644 Assets/Octogirl/Jump/jump_loop_0.png~ create mode 100644 Assets/Octogirl/Jump/jump_loop_1.png create mode 100644 Assets/Octogirl/Jump/jump_loop_1.png.import create mode 100644 Assets/Octogirl/Jump/jump_loop_1.png~ create mode 100644 Assets/Octogirl/Jump/jump_loop_2.png create mode 100644 Assets/Octogirl/Jump/jump_loop_2.png.import create mode 100644 Assets/Octogirl/Jump/jump_loop_2.png~ create mode 100644 Assets/Octogirl/Run/run_0.png create mode 100644 Assets/Octogirl/Run/run_0.png.import create mode 100644 Assets/Octogirl/Run/run_1.png create mode 100644 Assets/Octogirl/Run/run_1.png.import create mode 100644 Assets/Octogirl/Run/run_2.png create mode 100644 Assets/Octogirl/Run/run_2.png.import create mode 100644 Assets/Octogirl/Run/run_end.png create mode 100644 Assets/Octogirl/Run/run_end.png.import create mode 100644 Assets/Octogirl/Run/run_start.png create mode 100644 Assets/Octogirl/Run/run_start.png.import create mode 100644 Assets/Octogirl/Walk_cycle/walk_0.png create mode 100644 Assets/Octogirl/Walk_cycle/walk_0.png.import create mode 100644 Assets/Octogirl/Walk_cycle/walk_0.png~ create mode 100644 Assets/Octogirl/Walk_cycle/walk_1.png create mode 100644 Assets/Octogirl/Walk_cycle/walk_1.png.import create mode 100644 Assets/Octogirl/Walk_cycle/walk_2.png create mode 100644 Assets/Octogirl/Walk_cycle/walk_2.png.import create mode 100644 Assets/Octogirl/octopus.png create mode 100644 Assets/Octogirl/octopus.png.import diff --git a/Assets/Octogirl/Idle/idle_0.png b/Assets/Octogirl/Idle/idle_0.png new file mode 100644 index 0000000..6bbe19f Binary files /dev/null and b/Assets/Octogirl/Idle/idle_0.png differ diff --git a/Assets/Octogirl/Idle/idle_0.png.import b/Assets/Octogirl/Idle/idle_0.png.import new file mode 100644 index 0000000..a03cedb --- /dev/null +++ b/Assets/Octogirl/Idle/idle_0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://6o87t6leamud" +path="res://.godot/imported/idle_0.png-746324d1cfd63aaa27b8e0430b082f9d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Idle/idle_0.png" +dest_files=["res://.godot/imported/idle_0.png-746324d1cfd63aaa27b8e0430b082f9d.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/Octogirl/Idle/idle_1.png b/Assets/Octogirl/Idle/idle_1.png new file mode 100644 index 0000000..d07ce9e Binary files /dev/null and b/Assets/Octogirl/Idle/idle_1.png differ diff --git a/Assets/Octogirl/Idle/idle_1.png.import b/Assets/Octogirl/Idle/idle_1.png.import new file mode 100644 index 0000000..d220a08 --- /dev/null +++ b/Assets/Octogirl/Idle/idle_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://tpdtfbithiso" +path="res://.godot/imported/idle_1.png-c808c7bd57a6610f45f6a9fe119a25bc.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Idle/idle_1.png" +dest_files=["res://.godot/imported/idle_1.png-c808c7bd57a6610f45f6a9fe119a25bc.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/Octogirl/Idle/idle_2.png b/Assets/Octogirl/Idle/idle_2.png new file mode 100644 index 0000000..baff5fb Binary files /dev/null and b/Assets/Octogirl/Idle/idle_2.png differ diff --git a/Assets/Octogirl/Idle/idle_2.png.import b/Assets/Octogirl/Idle/idle_2.png.import new file mode 100644 index 0000000..17bd081 --- /dev/null +++ b/Assets/Octogirl/Idle/idle_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dar2fcwmiuyp4" +path="res://.godot/imported/idle_2.png-3b80f075c4b2f5adbf2fa0980b6c722a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Idle/idle_2.png" +dest_files=["res://.godot/imported/idle_2.png-3b80f075c4b2f5adbf2fa0980b6c722a.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/Octogirl/Jump/jump_engage_0.png b/Assets/Octogirl/Jump/jump_engage_0.png new file mode 100644 index 0000000..2c66a0c Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_0.png differ diff --git a/Assets/Octogirl/Jump/jump_engage_0.png.import b/Assets/Octogirl/Jump/jump_engage_0.png.import new file mode 100644 index 0000000..af1679a --- /dev/null +++ b/Assets/Octogirl/Jump/jump_engage_0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cfo16ck3o2hwh" +path="res://.godot/imported/jump_engage_0.png-abe226afe4dd55e5292813b6c5b8f064.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_engage_0.png" +dest_files=["res://.godot/imported/jump_engage_0.png-abe226afe4dd55e5292813b6c5b8f064.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/Octogirl/Jump/jump_engage_0.png~ b/Assets/Octogirl/Jump/jump_engage_0.png~ new file mode 100644 index 0000000..6629920 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_0.png~ differ diff --git a/Assets/Octogirl/Jump/jump_engage_1.png b/Assets/Octogirl/Jump/jump_engage_1.png new file mode 100644 index 0000000..8e3b909 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_1.png differ diff --git a/Assets/Octogirl/Jump/jump_engage_1.png.import b/Assets/Octogirl/Jump/jump_engage_1.png.import new file mode 100644 index 0000000..3aca51a --- /dev/null +++ b/Assets/Octogirl/Jump/jump_engage_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dyucjkq7n1ol8" +path="res://.godot/imported/jump_engage_1.png-d0dcbfdb04239e8127ee2cb0e864f13a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_engage_1.png" +dest_files=["res://.godot/imported/jump_engage_1.png-d0dcbfdb04239e8127ee2cb0e864f13a.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/Octogirl/Jump/jump_engage_1.png~ b/Assets/Octogirl/Jump/jump_engage_1.png~ new file mode 100644 index 0000000..40a655e Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_1.png~ differ diff --git a/Assets/Octogirl/Jump/jump_engage_2.png b/Assets/Octogirl/Jump/jump_engage_2.png new file mode 100644 index 0000000..038eaf0 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_2.png differ diff --git a/Assets/Octogirl/Jump/jump_engage_2.png.import b/Assets/Octogirl/Jump/jump_engage_2.png.import new file mode 100644 index 0000000..ec804ee --- /dev/null +++ b/Assets/Octogirl/Jump/jump_engage_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://be0ndda06oyd0" +path="res://.godot/imported/jump_engage_2.png-be22164030d628b4d2e620f805109922.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_engage_2.png" +dest_files=["res://.godot/imported/jump_engage_2.png-be22164030d628b4d2e620f805109922.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/Octogirl/Jump/jump_engage_2.png~ b/Assets/Octogirl/Jump/jump_engage_2.png~ new file mode 100644 index 0000000..fb2009c Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_2.png~ differ diff --git a/Assets/Octogirl/Jump/jump_engage_3.png b/Assets/Octogirl/Jump/jump_engage_3.png new file mode 100644 index 0000000..5883c16 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_3.png differ diff --git a/Assets/Octogirl/Jump/jump_engage_3.png.import b/Assets/Octogirl/Jump/jump_engage_3.png.import new file mode 100644 index 0000000..8da6fd9 --- /dev/null +++ b/Assets/Octogirl/Jump/jump_engage_3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2prnnny6dmb6" +path="res://.godot/imported/jump_engage_3.png-08433be8fe728d7aca2a0671f8a536a5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_engage_3.png" +dest_files=["res://.godot/imported/jump_engage_3.png-08433be8fe728d7aca2a0671f8a536a5.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/Octogirl/Jump/jump_engage_3.png~ b/Assets/Octogirl/Jump/jump_engage_3.png~ new file mode 100644 index 0000000..6170a56 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_engage_3.png~ differ diff --git a/Assets/Octogirl/Jump/jump_land.png b/Assets/Octogirl/Jump/jump_land.png new file mode 100644 index 0000000..2c66a0c Binary files /dev/null and b/Assets/Octogirl/Jump/jump_land.png differ diff --git a/Assets/Octogirl/Jump/jump_land.png.import b/Assets/Octogirl/Jump/jump_land.png.import new file mode 100644 index 0000000..ecf4849 --- /dev/null +++ b/Assets/Octogirl/Jump/jump_land.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c3w6hvwm5qfme" +path="res://.godot/imported/jump_land.png-4cc6b006a6a7ff908186021425baf288.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_land.png" +dest_files=["res://.godot/imported/jump_land.png-4cc6b006a6a7ff908186021425baf288.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/Octogirl/Jump/jump_land.png~ b/Assets/Octogirl/Jump/jump_land.png~ new file mode 100644 index 0000000..6629920 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_land.png~ differ diff --git a/Assets/Octogirl/Jump/jump_loop_0.png b/Assets/Octogirl/Jump/jump_loop_0.png new file mode 100644 index 0000000..6ad61d3 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_0.png differ diff --git a/Assets/Octogirl/Jump/jump_loop_0.png.import b/Assets/Octogirl/Jump/jump_loop_0.png.import new file mode 100644 index 0000000..13327f4 --- /dev/null +++ b/Assets/Octogirl/Jump/jump_loop_0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bmgu15ce5xnuy" +path="res://.godot/imported/jump_loop_0.png-f8805081bbbea40891d42ac204ebaa4a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_loop_0.png" +dest_files=["res://.godot/imported/jump_loop_0.png-f8805081bbbea40891d42ac204ebaa4a.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/Octogirl/Jump/jump_loop_0.png~ b/Assets/Octogirl/Jump/jump_loop_0.png~ new file mode 100644 index 0000000..5212bf4 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_0.png~ differ diff --git a/Assets/Octogirl/Jump/jump_loop_1.png b/Assets/Octogirl/Jump/jump_loop_1.png new file mode 100644 index 0000000..ba9dbc0 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_1.png differ diff --git a/Assets/Octogirl/Jump/jump_loop_1.png.import b/Assets/Octogirl/Jump/jump_loop_1.png.import new file mode 100644 index 0000000..04c2749 --- /dev/null +++ b/Assets/Octogirl/Jump/jump_loop_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ccj4ukln3bmmi" +path="res://.godot/imported/jump_loop_1.png-34a96466a19089b650144ce13c462199.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_loop_1.png" +dest_files=["res://.godot/imported/jump_loop_1.png-34a96466a19089b650144ce13c462199.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/Octogirl/Jump/jump_loop_1.png~ b/Assets/Octogirl/Jump/jump_loop_1.png~ new file mode 100644 index 0000000..e6505f8 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_1.png~ differ diff --git a/Assets/Octogirl/Jump/jump_loop_2.png b/Assets/Octogirl/Jump/jump_loop_2.png new file mode 100644 index 0000000..5ca9943 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_2.png differ diff --git a/Assets/Octogirl/Jump/jump_loop_2.png.import b/Assets/Octogirl/Jump/jump_loop_2.png.import new file mode 100644 index 0000000..8737067 --- /dev/null +++ b/Assets/Octogirl/Jump/jump_loop_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://pa8opkpov7bx" +path="res://.godot/imported/jump_loop_2.png-2975d42aae2bad9a944ecd027ac633be.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Jump/jump_loop_2.png" +dest_files=["res://.godot/imported/jump_loop_2.png-2975d42aae2bad9a944ecd027ac633be.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/Octogirl/Jump/jump_loop_2.png~ b/Assets/Octogirl/Jump/jump_loop_2.png~ new file mode 100644 index 0000000..84a9689 Binary files /dev/null and b/Assets/Octogirl/Jump/jump_loop_2.png~ differ diff --git a/Assets/Octogirl/Run/run_0.png b/Assets/Octogirl/Run/run_0.png new file mode 100644 index 0000000..808d4a8 Binary files /dev/null and b/Assets/Octogirl/Run/run_0.png differ diff --git a/Assets/Octogirl/Run/run_0.png.import b/Assets/Octogirl/Run/run_0.png.import new file mode 100644 index 0000000..2c5688b --- /dev/null +++ b/Assets/Octogirl/Run/run_0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://i1d5vun1d7u8" +path="res://.godot/imported/run_0.png-032ab6456a0c4934957199d8b957b7d6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Run/run_0.png" +dest_files=["res://.godot/imported/run_0.png-032ab6456a0c4934957199d8b957b7d6.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/Octogirl/Run/run_1.png b/Assets/Octogirl/Run/run_1.png new file mode 100644 index 0000000..603022f Binary files /dev/null and b/Assets/Octogirl/Run/run_1.png differ diff --git a/Assets/Octogirl/Run/run_1.png.import b/Assets/Octogirl/Run/run_1.png.import new file mode 100644 index 0000000..f6175aa --- /dev/null +++ b/Assets/Octogirl/Run/run_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://jfmox2dwn0pt" +path="res://.godot/imported/run_1.png-f3b6988eef7a47ecd429bf5a61ee3910.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Run/run_1.png" +dest_files=["res://.godot/imported/run_1.png-f3b6988eef7a47ecd429bf5a61ee3910.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/Octogirl/Run/run_2.png b/Assets/Octogirl/Run/run_2.png new file mode 100644 index 0000000..2c2659b Binary files /dev/null and b/Assets/Octogirl/Run/run_2.png differ diff --git a/Assets/Octogirl/Run/run_2.png.import b/Assets/Octogirl/Run/run_2.png.import new file mode 100644 index 0000000..e352199 --- /dev/null +++ b/Assets/Octogirl/Run/run_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bk0l10lg6bpef" +path="res://.godot/imported/run_2.png-890ffd54a632c9711c6ed3e1784b73f5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Run/run_2.png" +dest_files=["res://.godot/imported/run_2.png-890ffd54a632c9711c6ed3e1784b73f5.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/Octogirl/Run/run_end.png b/Assets/Octogirl/Run/run_end.png new file mode 100644 index 0000000..3105f01 Binary files /dev/null and b/Assets/Octogirl/Run/run_end.png differ diff --git a/Assets/Octogirl/Run/run_end.png.import b/Assets/Octogirl/Run/run_end.png.import new file mode 100644 index 0000000..dab858a --- /dev/null +++ b/Assets/Octogirl/Run/run_end.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2df3283q8nfe" +path="res://.godot/imported/run_end.png-c73cd7a2d181eb3277dcdda133857f0e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Run/run_end.png" +dest_files=["res://.godot/imported/run_end.png-c73cd7a2d181eb3277dcdda133857f0e.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/Octogirl/Run/run_start.png b/Assets/Octogirl/Run/run_start.png new file mode 100644 index 0000000..35121f5 Binary files /dev/null and b/Assets/Octogirl/Run/run_start.png differ diff --git a/Assets/Octogirl/Run/run_start.png.import b/Assets/Octogirl/Run/run_start.png.import new file mode 100644 index 0000000..0cd4398 --- /dev/null +++ b/Assets/Octogirl/Run/run_start.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://etp24q17qokh" +path="res://.godot/imported/run_start.png-66e7b06afc0f6ab6ed8f004c171cec76.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Run/run_start.png" +dest_files=["res://.godot/imported/run_start.png-66e7b06afc0f6ab6ed8f004c171cec76.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/Octogirl/Walk_cycle/walk_0.png b/Assets/Octogirl/Walk_cycle/walk_0.png new file mode 100644 index 0000000..989da38 Binary files /dev/null and b/Assets/Octogirl/Walk_cycle/walk_0.png differ diff --git a/Assets/Octogirl/Walk_cycle/walk_0.png.import b/Assets/Octogirl/Walk_cycle/walk_0.png.import new file mode 100644 index 0000000..03f5588 --- /dev/null +++ b/Assets/Octogirl/Walk_cycle/walk_0.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cpofflflk2scq" +path="res://.godot/imported/walk_0.png-90f7da6bb97f1ea04911a0ea4862f1a7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Walk_cycle/walk_0.png" +dest_files=["res://.godot/imported/walk_0.png-90f7da6bb97f1ea04911a0ea4862f1a7.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/Octogirl/Walk_cycle/walk_0.png~ b/Assets/Octogirl/Walk_cycle/walk_0.png~ new file mode 100644 index 0000000..672d4b5 Binary files /dev/null and b/Assets/Octogirl/Walk_cycle/walk_0.png~ differ diff --git a/Assets/Octogirl/Walk_cycle/walk_1.png b/Assets/Octogirl/Walk_cycle/walk_1.png new file mode 100644 index 0000000..692b86f Binary files /dev/null and b/Assets/Octogirl/Walk_cycle/walk_1.png differ diff --git a/Assets/Octogirl/Walk_cycle/walk_1.png.import b/Assets/Octogirl/Walk_cycle/walk_1.png.import new file mode 100644 index 0000000..e515d9b --- /dev/null +++ b/Assets/Octogirl/Walk_cycle/walk_1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cmfl7x01nccru" +path="res://.godot/imported/walk_1.png-9fe25806fd02ab32f0e309071feb4d9c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Walk_cycle/walk_1.png" +dest_files=["res://.godot/imported/walk_1.png-9fe25806fd02ab32f0e309071feb4d9c.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/Octogirl/Walk_cycle/walk_2.png b/Assets/Octogirl/Walk_cycle/walk_2.png new file mode 100644 index 0000000..fd3199c Binary files /dev/null and b/Assets/Octogirl/Walk_cycle/walk_2.png differ diff --git a/Assets/Octogirl/Walk_cycle/walk_2.png.import b/Assets/Octogirl/Walk_cycle/walk_2.png.import new file mode 100644 index 0000000..f160539 --- /dev/null +++ b/Assets/Octogirl/Walk_cycle/walk_2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cmwxwc8iwc0ko" +path="res://.godot/imported/walk_2.png-47509f4ba44d5932ffa9532cc3d782d1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/Walk_cycle/walk_2.png" +dest_files=["res://.godot/imported/walk_2.png-47509f4ba44d5932ffa9532cc3d782d1.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/Octogirl/octopus.png b/Assets/Octogirl/octopus.png new file mode 100644 index 0000000..df327d0 Binary files /dev/null and b/Assets/Octogirl/octopus.png differ diff --git a/Assets/Octogirl/octopus.png.import b/Assets/Octogirl/octopus.png.import new file mode 100644 index 0000000..69c22f0 --- /dev/null +++ b/Assets/Octogirl/octopus.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://du87bqukwyrxg" +path="res://.godot/imported/octopus.png-f102ec724d597f483b1b12615666699a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Octogirl/octopus.png" +dest_files=["res://.godot/imported/octopus.png-f102ec724d597f483b1b12615666699a.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/OverworldPath.gd b/OverworldPath.gd index 6ae7b8c..d63c7f9 100644 --- a/OverworldPath.gd +++ b/OverworldPath.gd @@ -11,7 +11,6 @@ extends Path2D ] @export_node_path("OverworldPath") var _previous_path: NodePath - var next_path: OverworldPath var previous_path: OverworldPath diff --git a/Player.gd b/Player.gd index 9528586..6e2bfd9 100644 --- a/Player.gd +++ b/Player.gd @@ -1,13 +1,17 @@ extends CharacterBody2D -const SPEED = 300.0 +const SPEED = 60 -const JUMP_VELOCITY = -400.0 +const JUMP_VELOCITY = -400 # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") +var is_jumping = false +var was_jumping = false +var last_velocity = Vector2(0,0) + func _physics_process(delta): # Get the input direction and handle the movement/deceleration. @@ -15,9 +19,22 @@ func _physics_process(delta): var direction = Input.get_axis("ui_left", "ui_right") if direction: velocity.x = direction * SPEED + if is_on_floor(): + $AnimationTree.active = true + $AnimationTree.get("parameters/playback").travel("Walk") + if velocity.x > 0: + $AnimatedSprite2D.flip_h = false + else: + $AnimatedSprite2D.flip_h = true else: velocity.x = move_toward(velocity.x, 0, SPEED) + if velocity == Vector2(0,0): + $AnimationTree.active = false + if $AnimatedSprite2D.animation == "jump_land" or $AnimatedSprite2D.animation == "walk_end": + await $AnimatedSprite2D.animation_finished + $AnimatedSprite2D.play("idle") + # Add the gravity. if not is_on_floor(): velocity.y += gravity * delta @@ -25,12 +42,29 @@ func _physics_process(delta): # Handle jump. if Input.is_action_just_pressed("jump") and is_on_floor(): velocity.y = JUMP_VELOCITY + $AnimationTree.active = true + $AnimationTree.get("parameters/playback").travel("Jump") + is_jumping = true if Input.is_action_just_released("jump"): + $AnimatedSprite2D.play("jump_fall") + $AnimationTree.active = false if velocity.y < 0: velocity.y = 0 + if not is_on_floor() and velocity.y > 0: + $AnimatedSprite2D.play("jump_fall") + $AnimationTree.active = false + if is_jumping and is_on_floor(): + was_jumping = true + is_jumping = false + #print(last_velocity.y > 0 and velocity.y == 0) + if was_jumping or (last_velocity.y > 0 and velocity.y <= 0): # TODO: state machine + was_jumping = false + $AnimatedSprite2D.play("jump_land") + # Wall jump if is_on_wall() and not is_on_floor() and direction and Input.is_action_just_pressed("jump"): velocity.y = JUMP_VELOCITY velocity.x += abs((SPEED*2) / (JUMP_VELOCITY/gravity)) * -direction move_and_slide() + last_velocity = velocity diff --git a/Player.tscn b/Player.tscn index fc9efcc..28e0acd 100644 --- a/Player.tscn +++ b/Player.tscn @@ -1,24 +1,457 @@ -[gd_scene load_steps=4 format=3 uid="uid://58k8ukwgcv4u"] +[gd_scene load_steps=41 format=3 uid="uid://58k8ukwgcv4u"] [ext_resource type="Script" path="res://Player.gd" id="1_0qjo6"] -[ext_resource type="Texture2D" uid="uid://c82tsvwwnmfhe" path="res://icon.svg" id="2_sojjd"] +[ext_resource type="Texture2D" uid="uid://6o87t6leamud" path="res://Assets/Octogirl/Idle/idle_0.png" id="2_u8x6c"] +[ext_resource type="Texture2D" uid="uid://dar2fcwmiuyp4" path="res://Assets/Octogirl/Idle/idle_2.png" id="3_5tdai"] +[ext_resource type="Texture2D" uid="uid://tpdtfbithiso" path="res://Assets/Octogirl/Idle/idle_1.png" id="4_64y27"] +[ext_resource type="Texture2D" uid="uid://cmfl7x01nccru" path="res://Assets/Octogirl/Walk_cycle/walk_1.png" id="5_fiuiq"] +[ext_resource type="Texture2D" uid="uid://cfo16ck3o2hwh" path="res://Assets/Octogirl/Jump/jump_engage_0.png" id="5_i0t8y"] +[ext_resource type="Texture2D" uid="uid://dyucjkq7n1ol8" path="res://Assets/Octogirl/Jump/jump_engage_1.png" id="6_770fp"] +[ext_resource type="Texture2D" uid="uid://cmwxwc8iwc0ko" path="res://Assets/Octogirl/Walk_cycle/walk_2.png" id="6_kv3gc"] +[ext_resource type="Texture2D" uid="uid://be0ndda06oyd0" path="res://Assets/Octogirl/Jump/jump_engage_2.png" id="7_hfp00"] +[ext_resource type="Texture2D" uid="uid://cpofflflk2scq" path="res://Assets/Octogirl/Walk_cycle/walk_0.png" id="7_k3q24"] +[ext_resource type="Texture2D" uid="uid://b2prnnny6dmb6" path="res://Assets/Octogirl/Jump/jump_engage_3.png" id="8_d5wrb"] +[ext_resource type="Texture2D" uid="uid://pa8opkpov7bx" path="res://Assets/Octogirl/Jump/jump_loop_2.png" id="9_brxns"] +[ext_resource type="Texture2D" uid="uid://c3w6hvwm5qfme" path="res://Assets/Octogirl/Jump/jump_land.png" id="10_7p675"] +[ext_resource type="Texture2D" uid="uid://bmgu15ce5xnuy" path="res://Assets/Octogirl/Jump/jump_loop_0.png" id="11_26hji"] +[ext_resource type="Texture2D" uid="uid://ccj4ukln3bmmi" path="res://Assets/Octogirl/Jump/jump_loop_1.png" id="12_x1fvi"] +[ext_resource type="Texture2D" uid="uid://d2df3283q8nfe" path="res://Assets/Octogirl/Run/run_end.png" id="16_y67hq"] +[ext_resource type="Texture2D" uid="uid://etp24q17qokh" path="res://Assets/Octogirl/Run/run_start.png" id="17_y18om"] [sub_resource type="SpriteFrames" id="SpriteFrames_0mhwv"] animations = [{ "frames": [{ "duration": 1.0, -"texture": ExtResource("2_sojjd") +"texture": ExtResource("2_u8x6c") +}, { +"duration": 1.0, +"texture": ExtResource("3_5tdai") +}, { +"duration": 1.0, +"texture": ExtResource("4_64y27") +}, { +"duration": 1.0, +"texture": ExtResource("3_5tdai") +}], +"loop": true, +"name": &"idle", +"speed": 6.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("5_i0t8y") +}, { +"duration": 1.0, +"texture": ExtResource("6_770fp") +}, { +"duration": 1.0, +"texture": ExtResource("7_hfp00") +}, { +"duration": 1.0, +"texture": ExtResource("8_d5wrb") +}], +"loop": true, +"name": &"jump_engage", +"speed": 8.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("9_brxns") +}], +"loop": true, +"name": &"jump_fall", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("10_7p675") +}], +"loop": false, +"name": &"jump_land", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("11_26hji") +}, { +"duration": 1.0, +"texture": ExtResource("12_x1fvi") }], "loop": true, -"name": &"default", +"name": &"jump_loop", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("5_fiuiq") +}, { +"duration": 1.0, +"texture": ExtResource("6_kv3gc") +}, { +"duration": 1.0, +"texture": ExtResource("5_fiuiq") +}, { +"duration": 1.0, +"texture": ExtResource("7_k3q24") +}], +"loop": true, +"name": &"walk", +"speed": 6.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("16_y67hq") +}], +"loop": false, +"name": &"walk_end", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("17_y18om") +}], +"loop": false, +"name": &"walk_start", "speed": 5.0 }] +[sub_resource type="Animation" id="Animation_0mxda"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"jump_engage"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_wldhs"] +resource_name = "idle" +length = 0.4 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"idle"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 0.2), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [0, 1] +} + +[sub_resource type="Animation" id="Animation_yudfv"] +resource_name = "jump_engage" +length = 0.4 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"jump_engage"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3] +} + +[sub_resource type="Animation" id="Animation_ib325"] +resource_name = "jump_fall" +length = 0.2 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"jump_fall"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_4pnp0"] +resource_name = "jump_land" +length = 0.2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"jump_land"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_q08bo"] +resource_name = "jump_loop" +length = 0.4 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0.1), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"jump_loop"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 0.2), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [0, 1] +} + +[sub_resource type="Animation" id="Animation_fjvv2"] +resource_name = "walk" +length = 0.8 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"walk"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 0.2, 0.4, 0.6), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3] +} + +[sub_resource type="Animation" id="Animation_niwxu"] +resource_name = "walk_end" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"walk_end"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_3caa3"] +resource_name = "walk_start" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:animation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [&"walk_start"] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AnimatedSprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_n4uc7"] +_data = { +"RESET": SubResource("Animation_0mxda"), +"idle": SubResource("Animation_wldhs"), +"jump_engage": SubResource("Animation_yudfv"), +"jump_fall": SubResource("Animation_ib325"), +"jump_land": SubResource("Animation_4pnp0"), +"jump_loop": SubResource("Animation_q08bo"), +"walk": SubResource("Animation_fjvv2"), +"walk_end": SubResource("Animation_niwxu"), +"walk_start": SubResource("Animation_3caa3") +} + +[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_bymns"] +animation = &"jump_engage" + +[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_2tp73"] +animation = &"jump_loop" + +[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2yedg"] +advance_mode = 2 + +[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kevsy"] +switch_mode = 2 +advance_mode = 2 + +[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_lahj1"] +states/jump_engage/node = SubResource("AnimationNodeAnimation_bymns") +states/jump_engage/position = Vector2(337, 90) +states/jump_loop/node = SubResource("AnimationNodeAnimation_2tp73") +states/jump_loop/position = Vector2(478, 175) +transitions = ["Start", "jump_engage", SubResource("AnimationNodeStateMachineTransition_2yedg"), "jump_engage", "jump_loop", SubResource("AnimationNodeStateMachineTransition_kevsy")] + +[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dad2y"] +animation = &"walk" + +[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_764aa"] +animation = &"walk_start" + +[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hja71"] +switch_mode = 2 +advance_mode = 2 + +[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_d2qkj"] +advance_mode = 2 + +[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_bgsu8"] +states/walk/node = SubResource("AnimationNodeAnimation_dad2y") +states/walk/position = Vector2(534, 65) +states/walk_start/node = SubResource("AnimationNodeAnimation_764aa") +states/walk_start/position = Vector2(355, 108) +transitions = ["walk_start", "walk", SubResource("AnimationNodeStateMachineTransition_hja71"), "Start", "walk_start", SubResource("AnimationNodeStateMachineTransition_d2qkj")] + +[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_trqcx"] +animation = &"idle" + +[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_rlnqs"] +states/Jump/node = SubResource("AnimationNodeStateMachine_lahj1") +states/Jump/position = Vector2(639, 100) +states/Walk/node = SubResource("AnimationNodeStateMachine_bgsu8") +states/Walk/position = Vector2(482, 100) +states/idle/node = SubResource("AnimationNodeAnimation_trqcx") +states/idle/position = Vector2(337, 100) +graph_offset = Vector2(0, 15.3405) + [node name="Player" type="CharacterBody2D"] script = ExtResource("1_0qjo6") [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(0, -64, 48, -64, 64, -48, 64, 48, 48, 64, -48, 64, -64, 48, -64, 0, -64, -48, -48, -64) +polygon = PackedVector2Array(8, -8, 8, -8, 8, 0, 8, 8, 8, 16, -8, 16, -8, 8, -8, 0, -8, -8, -8, -16) [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +texture_filter = 1 sprite_frames = SubResource("SpriteFrames_0mhwv") +animation = &"jump_engage" + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_n4uc7") +} + +[node name="AnimationTree" type="AnimationTree" parent="."] +active = false +tree_root = SubResource("AnimationNodeStateMachine_rlnqs") +anim_player = NodePath("../AnimationPlayer") diff --git a/Stage.tscn b/Stage.tscn index c6542f3..69d290f 100644 --- a/Stage.tscn +++ b/Stage.tscn @@ -5,11 +5,22 @@ [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_tet6l"] texture = ExtResource("1_lktna") -0:0/size_in_atlas = Vector2i(8, 8) -0:0/0 = 0 -0:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) -0:0/0/physics_layer_0/angular_velocity = 0.0 -0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-48, -64, 48, -64, 64, -48, 64, 48, 48, 64, -48, 64, -64, 48, -64, -48) +3:3/0 = 0 +3:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) +3:3/0/physics_layer_0/angular_velocity = 0.0 +3:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:3/0 = 0 +4:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) +4:3/0/physics_layer_0/angular_velocity = 0.0 +4:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:4/0 = 0 +4:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) +4:4/0/physics_layer_0/angular_velocity = 0.0 +4:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:4/0 = 0 +3:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) +3:4/0/physics_layer_0/angular_velocity = 0.0 +3:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) [sub_resource type="TileSet" id="TileSet_8pkss"] physics_layer_0/collision_layer = 1 @@ -21,7 +32,7 @@ sources/1 = SubResource("TileSetAtlasSource_tet6l") tile_set = SubResource("TileSet_8pkss") format = 2 layer_0/name = "Ground" -layer_0/tile_data = PackedInt32Array(589824, 1, 0, 655352, 1, 0, 589832, 1, 0, 327691, 1, 0, 131088, 1, 0, -131050, 1, 0, 393203, 1, 0, 131054, 1, 0, -655338, 1, 0, -1179626, 1, 0, -1703914, 1, 0, -2228202, 1, 0, -65562, 1, 0, -327714, 1, 0, -524329, 1, 0, -720944, 1, 0) +layer_0/tile_data = PackedInt32Array(131071, 196609, 3, 196607, 196609, 4, 65536, 262145, 3, 131072, 262145, 4, 131069, 196609, 3, 196605, 196609, 4, 131070, 262145, 3, 196606, 262145, 4, 131067, 196609, 3, 196603, 196609, 4, 131068, 262145, 3, 196604, 262145, 4, 65537, 196609, 3, 131073, 196609, 4, 65538, 262145, 3, 131074, 262145, 4, 65529, 196609, 3, 131065, 196609, 4, 65530, 262145, 3, 131066, 262145, 4, -65545, 196609, 3, -9, 196609, 4, -65544, 262145, 3, -8, 262145, 4, -131083, 196609, 3, -65547, 196609, 4, -131082, 262145, 3, -65546, 262145, 4, -196621, 196609, 3, -131085, 196609, 4, -196620, 262145, 3, -131084, 262145, 4, -262159, 196609, 3, -196623, 196609, 4, -262158, 262145, 3, -196622, 262145, 4, 3, 196609, 3, 65539, 196609, 4, 4, 262145, 3, 65540, 262145, 4, -131067, 196609, 3, -65531, 196609, 4, -131066, 262145, 3, -65530, 262145, 4, -262137, 196609, 3, -196601, 196609, 4, -262136, 262145, 3, -196600, 262145, 4, -393209, 196609, 3, -327673, 196609, 4, -393208, 262145, 3, -327672, 262145, 4, -524281, 196609, 3, -458745, 196609, 4, -524280, 262145, 3, -458744, 262145, 4, -655353, 196609, 3, -589817, 196609, 4, -655352, 262145, 3, -589816, 262145, 4, -786425, 196609, 3, -720889, 196609, 4, -786424, 262145, 3, -720888, 262145, 4, -917497, 196609, 3, -851961, 196609, 4, -917496, 262145, 3, -851960, 262145, 4, -1048569, 196609, 3, -983033, 196609, 4, -1048568, 262145, 3, -983032, 262145, 4, -1179641, 196609, 3, -1114105, 196609, 4, -1179640, 262145, 3, -1114104, 262145, 4) [node name="Player" parent="." instance=ExtResource("2_wy2jy")] diff --git a/project.godot b/project.godot index ce5a865..ee86ec2 100644 --- a/project.godot +++ b/project.godot @@ -10,15 +10,15 @@ config_version=5 [application] -config/name="Squid Girl" +config/name="Octo Girl" run/main_scene="res://Stage.tscn" config/features=PackedStringArray("4.2", "Forward Plus") config/icon="res://icon.svg" [display] -window/size/viewport_width=640 -window/size/viewport_height=480 +window/size/viewport_width=480 +window/size/viewport_height=320 window/stretch/mode="viewport" [input] -- cgit v1.2.3