commit ea36511c71316b245c61b2383c13f424dec538bc Author: dan Date: Sat Mar 22 20:21:52 2025 -0400 it works diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d0af071 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "godotTools.editorPath.godot4": "c:\\Users\\dan\\Desktop\\Godot\\4.4\\Godot_v4.4-stable_mono_win64.exe" +} \ No newline at end of file diff --git a/assets/brackeys_platformer_assets/LICENSE & CREDITS.txt b/assets/brackeys_platformer_assets/LICENSE & CREDITS.txt new file mode 100644 index 0000000..e4de28b --- /dev/null +++ b/assets/brackeys_platformer_assets/LICENSE & CREDITS.txt @@ -0,0 +1,26 @@ +All assets in the pack have been repackaged and many have been modified by Brackeys. + + +LICENSE for all assets: + +Creative Commons Zero (CC0) + + +CREDIT: + +SPRITES by analogStudios_: +knight (https://analogstudios.itch.io/camelot) +slime (https://analogstudios.itch.io/dungeonsprites) +platforms and coin (https://analogstudios.itch.io/four-seasons-platformer-sprites) + +SPRITES by RottingPixels: +world_tileset and fruit (https://rottingpixels.itch.io/four-seasons-platformer-tileset-16x16free) + + +WORLD TILESET originally + +SOUNDS by Brackeys, Asbjørn Thirslund + +MUSIC by Brackeys, Sofia Thirslund + +FONTS by Jayvee Enaguas - HarvettFox96 - (https://www.dafont.com/pixel-operator.font?l[]=10&l[]=1) \ No newline at end of file diff --git a/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf b/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf new file mode 100644 index 0000000..10225eb Binary files /dev/null and b/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf differ diff --git a/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf.import b/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf.import new file mode 100644 index 0000000..1193d11 --- /dev/null +++ b/assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf.import @@ -0,0 +1,35 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://bnroldd715ms" +path="res://.godot/imported/PixelOperator8-Bold.ttf-e69bdd6f613ad84e79b90e6c36af6c14.fontdata" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf" +dest_files=["res://.godot/imported/PixelOperator8-Bold.ttf-e69bdd6f613ad84e79b90e6c36af6c14.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf b/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf new file mode 100644 index 0000000..f9146ac Binary files /dev/null and b/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf differ diff --git a/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf.import b/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf.import new file mode 100644 index 0000000..cac6863 --- /dev/null +++ b/assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf.import @@ -0,0 +1,35 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://bxvk0pw18y75o" +path="res://.godot/imported/PixelOperator8.ttf-4822237c63882e7e8566794820310fb8.fontdata" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf" +dest_files=["res://.godot/imported/PixelOperator8.ttf-4822237c63882e7e8566794820310fb8.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/brackeys_platformer_assets/music/time_for_adventure.mp3 b/assets/brackeys_platformer_assets/music/time_for_adventure.mp3 new file mode 100644 index 0000000..2ba9940 Binary files /dev/null and b/assets/brackeys_platformer_assets/music/time_for_adventure.mp3 differ diff --git a/assets/brackeys_platformer_assets/music/time_for_adventure.mp3.import b/assets/brackeys_platformer_assets/music/time_for_adventure.mp3.import new file mode 100644 index 0000000..c10d42c --- /dev/null +++ b/assets/brackeys_platformer_assets/music/time_for_adventure.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cqgvfu5x0f21s" +path="res://.godot/imported/time_for_adventure.mp3-c663159e14663aa9758d7c2fc798543b.mp3str" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/music/time_for_adventure.mp3" +dest_files=["res://.godot/imported/time_for_adventure.mp3-c663159e14663aa9758d7c2fc798543b.mp3str"] + +[params] + +loop=true +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/assets/brackeys_platformer_assets/sounds/coin.wav b/assets/brackeys_platformer_assets/sounds/coin.wav new file mode 100644 index 0000000..0509182 Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/coin.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/coin.wav.import b/assets/brackeys_platformer_assets/sounds/coin.wav.import new file mode 100644 index 0000000..50f6363 --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/coin.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://p8u882irnnt1" +path="res://.godot/imported/coin.wav-48f03bcd294ef00ac0220b690593f007.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/coin.wav" +dest_files=["res://.godot/imported/coin.wav-48f03bcd294ef00ac0220b690593f007.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sounds/explosion.wav b/assets/brackeys_platformer_assets/sounds/explosion.wav new file mode 100644 index 0000000..8a67b16 Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/explosion.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/explosion.wav.import b/assets/brackeys_platformer_assets/sounds/explosion.wav.import new file mode 100644 index 0000000..d3153b0 --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/explosion.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dcwy5thvar0n8" +path="res://.godot/imported/explosion.wav-1e42b28b7ddc47d2bb72cdaa50bf012f.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/explosion.wav" +dest_files=["res://.godot/imported/explosion.wav-1e42b28b7ddc47d2bb72cdaa50bf012f.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sounds/hurt.wav b/assets/brackeys_platformer_assets/sounds/hurt.wav new file mode 100644 index 0000000..b46ecd7 Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/hurt.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/hurt.wav.import b/assets/brackeys_platformer_assets/sounds/hurt.wav.import new file mode 100644 index 0000000..34b9d36 --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/hurt.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dyfenf7hp3xpu" +path="res://.godot/imported/hurt.wav-ea2da61b1840c0aeb63fbdfecd78d156.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/hurt.wav" +dest_files=["res://.godot/imported/hurt.wav-ea2da61b1840c0aeb63fbdfecd78d156.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sounds/jump.wav b/assets/brackeys_platformer_assets/sounds/jump.wav new file mode 100644 index 0000000..611bddf Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/jump.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/jump.wav.import b/assets/brackeys_platformer_assets/sounds/jump.wav.import new file mode 100644 index 0000000..04f4b1a --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/jump.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dh65x1qlpvap" +path="res://.godot/imported/jump.wav-e87a0938352cd2a585c7d64389fab534.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/jump.wav" +dest_files=["res://.godot/imported/jump.wav-e87a0938352cd2a585c7d64389fab534.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sounds/power_up.wav b/assets/brackeys_platformer_assets/sounds/power_up.wav new file mode 100644 index 0000000..d807e3f Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/power_up.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/power_up.wav.import b/assets/brackeys_platformer_assets/sounds/power_up.wav.import new file mode 100644 index 0000000..72930e5 --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/power_up.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cxwre73mqgtqw" +path="res://.godot/imported/power_up.wav-660f0a389662c1ab2d5d3543e23162ad.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/power_up.wav" +dest_files=["res://.godot/imported/power_up.wav-660f0a389662c1ab2d5d3543e23162ad.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sounds/tap.wav b/assets/brackeys_platformer_assets/sounds/tap.wav new file mode 100644 index 0000000..e9dc6ab Binary files /dev/null and b/assets/brackeys_platformer_assets/sounds/tap.wav differ diff --git a/assets/brackeys_platformer_assets/sounds/tap.wav.import b/assets/brackeys_platformer_assets/sounds/tap.wav.import new file mode 100644 index 0000000..29c19e6 --- /dev/null +++ b/assets/brackeys_platformer_assets/sounds/tap.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ty6cef7t2wq8" +path="res://.godot/imported/tap.wav-334aa5557feb2bb501873a0cc1279b72.sample" + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sounds/tap.wav" +dest_files=["res://.godot/imported/tap.wav-334aa5557feb2bb501873a0cc1279b72.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/assets/brackeys_platformer_assets/sprites/coin.png b/assets/brackeys_platformer_assets/sprites/coin.png new file mode 100644 index 0000000..01ae33d Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/coin.png differ diff --git a/assets/brackeys_platformer_assets/sprites/coin.png.import b/assets/brackeys_platformer_assets/sprites/coin.png.import new file mode 100644 index 0000000..c1458f9 --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/coin.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bumwkwuxq07qe" +path="res://.godot/imported/coin.png-44fc65ab7ac9365293e147f39c452906.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/coin.png" +dest_files=["res://.godot/imported/coin.png-44fc65ab7ac9365293e147f39c452906.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/brackeys_platformer_assets/sprites/fruit.png b/assets/brackeys_platformer_assets/sprites/fruit.png new file mode 100644 index 0000000..b9cc7d6 Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/fruit.png differ diff --git a/assets/brackeys_platformer_assets/sprites/fruit.png.import b/assets/brackeys_platformer_assets/sprites/fruit.png.import new file mode 100644 index 0000000..1d6208b --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/fruit.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://04ov3bk8mgq1" +path="res://.godot/imported/fruit.png-279224447d23d6bee09668f5e6afe83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/fruit.png" +dest_files=["res://.godot/imported/fruit.png-279224447d23d6bee09668f5e6afe83b.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/brackeys_platformer_assets/sprites/knight.png b/assets/brackeys_platformer_assets/sprites/knight.png new file mode 100644 index 0000000..5b0eb4f Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/knight.png differ diff --git a/assets/brackeys_platformer_assets/sprites/knight.png.import b/assets/brackeys_platformer_assets/sprites/knight.png.import new file mode 100644 index 0000000..67e4e42 --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/knight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bda78yggl3vfm" +path="res://.godot/imported/knight.png-e6c90432381c63e9c40851d423d1a8f9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/knight.png" +dest_files=["res://.godot/imported/knight.png-e6c90432381c63e9c40851d423d1a8f9.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/brackeys_platformer_assets/sprites/platforms.png b/assets/brackeys_platformer_assets/sprites/platforms.png new file mode 100644 index 0000000..9be41db Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/platforms.png differ diff --git a/assets/brackeys_platformer_assets/sprites/platforms.png.import b/assets/brackeys_platformer_assets/sprites/platforms.png.import new file mode 100644 index 0000000..c1ef3c4 --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/platforms.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2cq8egoxepdj" +path="res://.godot/imported/platforms.png-9af175688695b06091faa0c978531708.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/platforms.png" +dest_files=["res://.godot/imported/platforms.png-9af175688695b06091faa0c978531708.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/brackeys_platformer_assets/sprites/slime_green.png b/assets/brackeys_platformer_assets/sprites/slime_green.png new file mode 100644 index 0000000..a21cb6f Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/slime_green.png differ diff --git a/assets/brackeys_platformer_assets/sprites/slime_green.png.import b/assets/brackeys_platformer_assets/sprites/slime_green.png.import new file mode 100644 index 0000000..641e9d3 --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/slime_green.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bbfytacurofqi" +path="res://.godot/imported/slime_green.png-7537a22022111bb8764aa544858b4d35.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/slime_green.png" +dest_files=["res://.godot/imported/slime_green.png-7537a22022111bb8764aa544858b4d35.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/brackeys_platformer_assets/sprites/slime_purple.png b/assets/brackeys_platformer_assets/sprites/slime_purple.png new file mode 100644 index 0000000..76f564e Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/slime_purple.png differ diff --git a/assets/brackeys_platformer_assets/sprites/slime_purple.png.import b/assets/brackeys_platformer_assets/sprites/slime_purple.png.import new file mode 100644 index 0000000..e702aac --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/slime_purple.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cn2dmotcs1gsn" +path="res://.godot/imported/slime_purple.png-eba899fd7a6bf06f36da4e8018847f7c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/slime_purple.png" +dest_files=["res://.godot/imported/slime_purple.png-eba899fd7a6bf06f36da4e8018847f7c.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/brackeys_platformer_assets/sprites/world_tileset.png b/assets/brackeys_platformer_assets/sprites/world_tileset.png new file mode 100644 index 0000000..36bbf07 Binary files /dev/null and b/assets/brackeys_platformer_assets/sprites/world_tileset.png differ diff --git a/assets/brackeys_platformer_assets/sprites/world_tileset.png.import b/assets/brackeys_platformer_assets/sprites/world_tileset.png.import new file mode 100644 index 0000000..9c4187f --- /dev/null +++ b/assets/brackeys_platformer_assets/sprites/world_tileset.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cgyegxeda1mdf" +path="res://.godot/imported/world_tileset.png-e79a61bbddfb4c4d3adb9fd28f1e547f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/brackeys_platformer_assets/sprites/world_tileset.png" +dest_files=["res://.godot/imported/world_tileset.png-e79a61bbddfb4c4d3adb9fd28f1e547f.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/default_bus_layout.tres b/default_bus_layout.tres new file mode 100644 index 0000000..4dae066 --- /dev/null +++ b/default_bus_layout.tres @@ -0,0 +1,15 @@ +[gd_resource type="AudioBusLayout" format=3 uid="uid://bnd6yu8n8j7k5"] + +[resource] +bus/1/name = &"Music" +bus/1/solo = false +bus/1/mute = false +bus/1/bypass_fx = false +bus/1/volume_db = -4.34877 +bus/1/send = &"Master" +bus/2/name = &"Sfx" +bus/2/solo = false +bus/2/mute = false +bus/2/bypass_fx = false +bus/2/volume_db = -2.11474 +bus/2/send = &"Master" diff --git a/globals/GameManager.tscn b/globals/GameManager.tscn new file mode 100644 index 0000000..9f9638e --- /dev/null +++ b/globals/GameManager.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://dw81sskevybfe"] + +[ext_resource type="Script" uid="uid://bevcjiuvoyb6u" path="res://globals/game_manager.gd" id="1_f5sja"] + +[node name="GameManager" type="Node"] +script = ExtResource("1_f5sja") diff --git a/globals/GameManager.tscn2479597169.tmp b/globals/GameManager.tscn2479597169.tmp new file mode 100644 index 0000000..9f9638e --- /dev/null +++ b/globals/GameManager.tscn2479597169.tmp @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://dw81sskevybfe"] + +[ext_resource type="Script" uid="uid://bevcjiuvoyb6u" path="res://globals/game_manager.gd" id="1_f5sja"] + +[node name="GameManager" type="Node"] +script = ExtResource("1_f5sja") diff --git a/globals/game_manager.gd b/globals/game_manager.gd new file mode 100644 index 0000000..d99597e --- /dev/null +++ b/globals/game_manager.gd @@ -0,0 +1,14 @@ +extends Node + +var score: int = 0 +var sl = null + +func set_label(label:Label): + score = 0 + sl = label + +func add_point(): + score+=1 + sl.text ="You got " + str(score) + " coins" + print(score) + diff --git a/globals/game_manager.gd.uid b/globals/game_manager.gd.uid new file mode 100644 index 0000000..af8882c --- /dev/null +++ b/globals/game_manager.gd.uid @@ -0,0 +1 @@ +uid://bevcjiuvoyb6u diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..03058e1 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://vfsuyvjdi1cw" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..0c7d7b7 --- /dev/null +++ b/project.godot @@ -0,0 +1,52 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="FrigginLearnIt" +run/main_scene="uid://bsl5dgs3aimx1" +config/features=PackedStringArray("4.4", "GL Compatibility") +config/icon="res://icon.svg" + +[autoload] + +GameManager="*res://globals/GameManager.tscn" +Music="*res://scenes/music.tscn" + +[dotnet] + +project/assembly_name="FrigginLearnIt" + +[input] + +jump={ +"deadzone": 0.2, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +move_right={ +"deadzone": 0.2, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +move_left={ +"deadzone": 0.2, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} + +[rendering] + +textures/canvas_textures/default_texture_filter=0 +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" diff --git a/scenes/coin.tscn b/scenes/coin.tscn new file mode 100644 index 0000000..439d9ed --- /dev/null +++ b/scenes/coin.tscn @@ -0,0 +1,223 @@ +[gd_scene load_steps=21 format=3 uid="uid://rbfbwxr7wsro"] + +[ext_resource type="Script" uid="uid://dafe64tmpvrbe" path="res://scripts/coin.gd" id="1_i64fm"] +[ext_resource type="Texture2D" uid="uid://bumwkwuxq07qe" path="res://assets/brackeys_platformer_assets/sprites/coin.png" id="1_rwqht"] +[ext_resource type="AudioStream" uid="uid://p8u882irnnt1" path="res://assets/brackeys_platformer_assets/sounds/coin.wav" id="3_11l1o"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_i64fm"] +atlas = ExtResource("1_rwqht") +region = Rect2(0, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_11l1o"] +atlas = ExtResource("1_rwqht") +region = Rect2(16, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d14el"] +atlas = ExtResource("1_rwqht") +region = Rect2(32, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1ikuy"] +atlas = ExtResource("1_rwqht") +region = Rect2(48, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wnlwo"] +atlas = ExtResource("1_rwqht") +region = Rect2(64, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jig8b"] +atlas = ExtResource("1_rwqht") +region = Rect2(80, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xmuha"] +atlas = ExtResource("1_rwqht") +region = Rect2(96, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kfxoj"] +atlas = ExtResource("1_rwqht") +region = Rect2(112, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jsmju"] +atlas = ExtResource("1_rwqht") +region = Rect2(128, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s0mny"] +atlas = ExtResource("1_rwqht") +region = Rect2(144, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7cc30"] +atlas = ExtResource("1_rwqht") +region = Rect2(160, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rojmm"] +atlas = ExtResource("1_rwqht") +region = Rect2(176, 0, 16, 16) + +[sub_resource type="SpriteFrames" id="SpriteFrames_kahox"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_i64fm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_11l1o") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_d14el") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1ikuy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wnlwo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jig8b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xmuha") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kfxoj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jsmju") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s0mny") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7cc30") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rojmm") +}], +"loop": true, +"name": &"default", +"speed": 11.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_kahox"] +radius = 5.09902 + +[sub_resource type="Animation" id="Animation_11l1o"] +resource_name = "pickup_sound" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("CollisionShape2D:disabled") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("PickupSound:playing") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/3/type = "method" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath(".") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0.866667), +"transitions": PackedFloat32Array(1), +"values": [{ +"args": [], +"method": &"queue_free" +}] +} + +[sub_resource type="Animation" id="Animation_d14el"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("AnimatedSprite2D:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("CollisionShape2D:disabled") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("PickupSound:playing") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_1ikuy"] +_data = { +&"RESET": SubResource("Animation_d14el"), +&"pickup_sound": SubResource("Animation_11l1o") +} + +[node name="Coin" type="Node2D"] + +[node name="Area2D" type="Area2D" parent="."] +collision_mask = 2 +script = ExtResource("1_i64fm") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Area2D"] +sprite_frames = SubResource("SpriteFrames_kahox") +autoplay = "default" +frame_progress = 0.772651 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +shape = SubResource("CircleShape2D_kahox") + +[node name="PickupSound" type="AudioStreamPlayer2D" parent="Area2D"] +stream = ExtResource("3_11l1o") +bus = &"Sfx" + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Area2D"] +libraries = { +&"": SubResource("AnimationLibrary_1ikuy") +} + +[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"] diff --git a/scenes/game.gd b/scenes/game.gd new file mode 100644 index 0000000..9341ce8 --- /dev/null +++ b/scenes/game.gd @@ -0,0 +1,8 @@ +extends Node2D + +func _ready() -> void: + print("game _ready") + GameManager.set_label($labels/ScoreLabel) + +func _init() -> void: + pass diff --git a/scenes/game.gd.uid b/scenes/game.gd.uid new file mode 100644 index 0000000..fbfbc37 --- /dev/null +++ b/scenes/game.gd.uid @@ -0,0 +1 @@ +uid://gyfm5wk3yp3c diff --git a/scenes/game.tscn b/scenes/game.tscn new file mode 100644 index 0000000..742df7b --- /dev/null +++ b/scenes/game.tscn @@ -0,0 +1,368 @@ +[gd_scene load_steps=19 format=3 uid="uid://bsl5dgs3aimx1"] + +[ext_resource type="Script" uid="uid://gyfm5wk3yp3c" path="res://scenes/game.gd" id="1_0tnpc"] +[ext_resource type="PackedScene" uid="uid://b72smvvbacy6g" path="res://scenes/player.tscn" id="1_uwrxv"] +[ext_resource type="FontFile" uid="uid://bnroldd715ms" path="res://assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf" id="2_0tnpc"] +[ext_resource type="Texture2D" uid="uid://cgyegxeda1mdf" path="res://assets/brackeys_platformer_assets/sprites/world_tileset.png" id="2_yqjtg"] +[ext_resource type="PackedScene" uid="uid://ct26ixf6dfdec" path="res://scenes/platform.tscn" id="3_lnu2h"] +[ext_resource type="PackedScene" uid="uid://rbfbwxr7wsro" path="res://scenes/coin.tscn" id="4_lbhrr"] +[ext_resource type="PackedScene" uid="uid://ddnw180bowxn2" path="res://scenes/killzone.tscn" id="5_iywne"] +[ext_resource type="PackedScene" uid="uid://cj35suv0ggfps" path="res://scenes/slime.tscn" id="6_p57ef"] +[ext_resource type="FontFile" uid="uid://bxvk0pw18y75o" path="res://assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf" id="7_u5sy4"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_lnu2h"] +texture = ExtResource("2_yqjtg") +0:0/0 = 0 +0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:0/0 = 0 +1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:0/0 = 0 +2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:0/0 = 0 +3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:0/0 = 0 +4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:0/0 = 0 +5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:0/0 = 0 +6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:0/0 = 0 +7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:0/0 = 0 +8:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:0/0 = 0 +9:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:0/0 = 0 +10:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:0/0 = 0 +11:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:1/0 = 0 +0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:1/0 = 0 +1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:1/0 = 0 +2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:1/0 = 0 +3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:1/0 = 0 +4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:1/0 = 0 +5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:1/0 = 0 +6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:1/0 = 0 +7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:1/0 = 0 +8:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:1/0 = 0 +9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:1/0 = 0 +10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:1/0 = 0 +11:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:2/0 = 0 +0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:2/0 = 0 +1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:2/0 = 0 +2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:2/0 = 0 +3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:2/0 = 0 +4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:2/0 = 0 +5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:2/0 = 0 +6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:2/0 = 0 +7:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:2/0 = 0 +8:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:2/0 = 0 +9:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:2/0 = 0 +10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:2/0 = 0 +11:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:3/0 = 0 +1:3/0 = 0 +2:3/0 = 0 +2:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:3/0 = 0 +6:3/0 = 0 +7:3/0 = 0 +8:3/0 = 0 +9:3/0 = 0 +0:4/0 = 0 +5:4/0 = 0 +6:4/0 = 0 +7:4/0 = 0 +8:4/0 = 0 +9:4/0 = 0 +0:5/0 = 0 +1:5/0 = 0 +5:5/0 = 0 +6:5/0 = 0 +7:5/0 = 0 +8:5/0 = 0 +1:6/0 = 0 +5:6/0 = 0 +6:6/0 = 0 +7:6/0 = 0 +8:6/0 = 0 +0:7/0 = 0 +1:7/0 = 0 +3:7/0 = 0 +5:7/0 = 0 +6:7/0 = 0 +7:7/0 = 0 +8:7/0 = 0 +0:8/0 = 0 +1:8/0 = 0 +2:8/0 = 0 +3:8/0 = 0 +4:8/0 = 0 +5:8/0 = 0 +6:8/0 = 0 +7:8/0 = 0 +8:8/0 = 0 +0:9/0 = 0 +1:9/0 = 0 +2:9/0 = 0 +3:9/0 = 0 +4:9/0 = 0 +5:9/0 = 0 +6:9/0 = 0 +7:9/0 = 0 +0:10/0 = 0 +1:10/0 = 0 +2:10/0 = 0 +3:10/0 = 0 +4:10/0 = 0 +6:10/0 = 0 +0:11/0 = 0 +1:11/0 = 0 +2:11/0 = 0 +3:11/0 = 0 +4:11/0 = 0 +5:11/0 = 0 +0:12/0 = 0 +1:12/0 = 0 +2:12/0 = 0 +3:12/0 = 0 +4:12/0 = 0 +0:13/0 = 0 +1:13/0 = 0 +2:13/0 = 0 +3:13/0 = 0 +4:13/0 = 0 +5:13/0 = 0 +0:14/0 = 0 +1:14/0 = 0 +2:14/0 = 0 +3:14/0 = 0 +4:14/0 = 0 +0:15/0 = 0 +1:15/0 = 0 +2:15/0 = 0 +3:15/0 = 0 +1:4/0 = 0 +2:4/size_in_atlas = Vector2i(3, 3) +2:4/0 = 0 + +[sub_resource type="TileSet" id="TileSet_lbhrr"] +physics_layer_0/collision_layer = 1 +sources/0 = SubResource("TileSetAtlasSource_lnu2h") + +[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_p57ef"] + +[sub_resource type="Animation" id="Animation_p57ef"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-30, 27)] +} + +[sub_resource type="Animation" id="Animation_iywne"] +resource_name = "new_animation" +length = 1.5 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.5), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(-30, 27), Vector2(-33, -27)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_u5sy4"] +_data = { +&"RESET": SubResource("Animation_p57ef"), +&"new_animation": SubResource("Animation_iywne") +} + +[sub_resource type="Animation" id="Animation_lbhrr"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(177, 37)] +} + +[sub_resource type="Animation" id="Animation_lnu2h"] +resource_name = "new_animation" +length = 1.5 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.46667), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(177, 37), Vector2(255, 37)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_iywne"] +_data = { +&"RESET": SubResource("Animation_lbhrr"), +&"new_animation": SubResource("Animation_lnu2h") +} + +[node name="Game" type="Node2D"] +script = ExtResource("1_0tnpc") + +[node name="TileMap" type="TileMap" parent="."] +tile_set = SubResource("TileSet_lbhrr") +format = 2 +layer_0/name = "background" +layer_0/tile_data = PackedInt32Array(327671, 0, 14, 327672, 0, 14, 327673, 0, 14, 327674, 0, 14, 327675, 0, 14, 327676, 0, 14, 327677, 0, 14, 327678, 0, 14, 327679, 0, 14, 262144, 0, 14, 262145, 0, 14, 262146, 0, 14, 262147, 0, 14, 262148, 0, 14, 262149, 0, 14, 262150, 0, 14, 262151, 0, 14, 262152, 0, 14, 262153, 0, 14, 262154, 0, 14, 262155, 0, 14, 262156, 0, 14, 262157, 0, 14, 262158, 0, 14, 262159, 0, 14, 262160, 0, 14, 262161, 0, 14, 262162, 0, 14, 262163, 0, 14, 262164, 0, 14, 262165, 0, 14, 262166, 0, 14, 262167, 0, 14, 393207, 0, 15, 458743, 0, 15, 393208, 0, 15, 458744, 0, 15, 393209, 0, 15, 458745, 0, 15, 393210, 0, 15, 458746, 0, 15, 393211, 0, 15, 458747, 0, 15, 393212, 0, 15, 458748, 0, 15, 393213, 0, 15, 458749, 0, 15, 393214, 0, 15, 458750, 0, 15, 393215, 0, 15, 458751, 0, 15, 327680, 0, 15, 393216, 0, 15, 327681, 0, 15, 393217, 0, 15, 327682, 0, 15, 393218, 0, 15, 327683, 0, 15, 393219, 0, 15, 327684, 0, 15, 393220, 0, 15, 327685, 0, 15, 393221, 0, 15, 327686, 0, 15, 393222, 0, 15, 327687, 0, 15, 393223, 0, 15, 327688, 0, 15, 393224, 0, 15, 327689, 0, 15, 393225, 0, 15, 327690, 0, 15, 393226, 0, 15, 327691, 0, 15, 393227, 0, 15, 327692, 0, 15, 393228, 0, 15, 327693, 0, 15, 393229, 0, 15, 327694, 0, 15, 393230, 0, 15, 327695, 0, 15, 393231, 0, 15, 327696, 0, 15, 393232, 0, 15, 327697, 0, 15, 393233, 0, 15, 327698, 0, 15, 393234, 0, 15, 327699, 0, 15, 393235, 0, 15, 327700, 0, 15, 393236, 0, 15, 327701, 0, 15, 393237, 0, 15, 327702, 0, 15, 393238, 0, 15, 327703, 0, 15, 393239, 0, 15, 131063, 0, 13, 196599, 0, 13, 262135, 0, 13, 131064, 0, 13, 196600, 0, 13, 262136, 0, 13, 131065, 0, 13, 196601, 0, 13, 262137, 0, 13, 131066, 0, 13, 196602, 0, 13, 262138, 0, 13, 131067, 0, 13, 196603, 0, 13, 262139, 0, 13, 131068, 0, 13, 196604, 0, 13, 262140, 0, 13, 131069, 0, 13, 196605, 0, 13, 262141, 0, 13, 131070, 0, 13, 196606, 0, 13, 262142, 0, 13, 131071, 0, 13, 196607, 0, 13, 262143, 0, 13, 65536, 0, 13, 131072, 0, 13, 196608, 0, 13, 65537, 0, 13, 131073, 0, 13, 196609, 0, 13, 65538, 0, 13, 131074, 0, 13, 196610, 0, 13, 65539, 0, 13, 131075, 0, 13, 196611, 0, 13, 65540, 0, 13, 131076, 0, 13, 196612, 0, 13, 65541, 0, 13, 131077, 0, 13, 196613, 0, 13, 65542, 0, 13, 131078, 0, 13, 196614, 0, 13, 65543, 0, 13, 131079, 0, 13, 196615, 0, 13, 65544, 0, 13, 131080, 0, 13, 196616, 0, 13, 65545, 0, 13, 131081, 0, 13, 196617, 0, 13, 65546, 0, 13, 131082, 0, 13, 196618, 0, 13, 65547, 0, 13, 131083, 0, 13, 196619, 0, 13, 65548, 0, 13, 131084, 0, 13, 196620, 0, 13, 65549, 0, 13, 131085, 0, 13, 196621, 0, 13, 65550, 0, 13, 131086, 0, 13, 196622, 0, 13, 65551, 0, 13, 131087, 0, 13, 196623, 0, 13, 65552, 0, 13, 131088, 0, 13, 196624, 0, 13, 65553, 0, 13, 131089, 0, 13, 196625, 0, 13, 65554, 0, 13, 131090, 0, 13, 196626, 0, 13, 65555, 0, 13, 131091, 0, 13, 196627, 0, 13, 65556, 0, 13, 131092, 0, 13, 196628, 0, 13, 65557, 0, 13, 131093, 0, 13, 196629, 0, 13, 65558, 0, 13, 131094, 0, 13, 196630, 0, 13, 65559, 0, 13, 131095, 0, 13, 196631, 0, 13, 65527, 0, 12, 65528, 0, 12, 65529, 0, 12, 65530, 0, 12, 65531, 0, 12, 65532, 0, 12, 65533, 0, 12, 65534, 0, 12, 65535, 0, 12, 0, 0, 12, 1, 0, 12, 2, 0, 12, 3, 0, 12, 4, 0, 12, 5, 0, 12, 6, 0, 12, 7, 0, 12, 8, 0, 12, 9, 0, 12, 10, 0, 12, 11, 0, 12, 12, 0, 12, 13, 0, 12, 14, 0, 12, 15, 0, 12, 16, 0, 12, 17, 0, 12, 18, 0, 12, 19, 0, 12, 20, 0, 12, 21, 0, 12, 22, 0, 12, 23, 0, 12, -131081, 0, 11, -65545, 0, 11, -9, 0, 11, -131080, 0, 11, -65544, 0, 11, -8, 0, 11, -131079, 0, 11, -65543, 0, 11, -7, 0, 11, -131078, 0, 11, -65542, 0, 11, -6, 0, 11, -131077, 0, 11, -65541, 0, 11, -5, 0, 11, -131076, 0, 11, -65540, 0, 11, -4, 0, 11, -131075, 0, 11, -65539, 0, 11, -3, 0, 11, -131074, 0, 11, -65538, 0, 11, -2, 0, 11, -131073, 0, 11, -65537, 0, 11, -1, 0, 11, -196608, 0, 11, -131072, 0, 11, -65536, 0, 11, -196607, 0, 11, -131071, 0, 11, -65535, 0, 11, -196606, 0, 11, -131070, 0, 11, -65534, 0, 11, -196605, 0, 11, -131069, 0, 11, -65533, 0, 11, -196604, 0, 11, -131068, 0, 11, -65532, 0, 11, -196603, 0, 11, -131067, 0, 11, -65531, 0, 11, -196602, 0, 11, -131066, 0, 11, -65530, 0, 11, -196601, 0, 11, -131065, 0, 11, -65529, 0, 11, -196600, 0, 11, -131064, 0, 11, -65528, 0, 11, -196599, 0, 11, -131063, 0, 11, -65527, 0, 11, -196598, 0, 11, -131062, 0, 11, -65526, 0, 11, -196597, 0, 11, -131061, 0, 11, -65525, 0, 11, -196596, 0, 11, -131060, 0, 11, -65524, 0, 11, -196595, 0, 11, -131059, 0, 11, -65523, 0, 11, -196594, 0, 11, -131058, 0, 11, -65522, 0, 11, -196593, 0, 11, -131057, 0, 11, -65521, 0, 11, -196592, 0, 11, -131056, 0, 11, -65520, 0, 11, -196591, 0, 11, -131055, 0, 11, -65519, 0, 11, -196590, 0, 11, -131054, 0, 11, -65518, 0, 11, -196589, 0, 11, -131053, 0, 11, -65517, 0, 11, -196588, 0, 11, -131052, 0, 11, -65516, 0, 11, -196587, 0, 11, -131051, 0, 11, -65515, 0, 11, -196586, 0, 11, -131050, 0, 11, -65514, 0, 11, -196585, 0, 11, -131049, 0, 11, -65513, 0, 11, -196617, 0, 10, -196616, 0, 10, -196615, 0, 10, -196614, 0, 10, -196613, 0, 10, -196612, 0, 10, -196611, 0, 10, -196610, 0, 10, -196609, 0, 10, -262144, 0, 10, -262143, 0, 10, -262142, 0, 10, -262141, 0, 10, -262140, 0, 10, -262139, 0, 10, -262138, 0, 10, -262137, 0, 10, -262136, 0, 10, -262135, 0, 10, -262134, 0, 10, -262133, 0, 10, -262132, 0, 10, -262131, 0, 10, -262130, 0, 10, -262129, 0, 10, -262128, 0, 10, -262127, 0, 10, -262126, 0, 10, -262125, 0, 10, -262124, 0, 10, -262123, 0, 10, -262122, 0, 10, -262121, 0, 10, -786441, 0, 9, -720905, 0, 9, -655369, 0, 9, -589833, 0, 9, -524297, 0, 9, -458761, 0, 9, -393225, 0, 9, -327689, 0, 9, -262153, 0, 9, -786440, 0, 9, -720904, 0, 9, -655368, 0, 9, -589832, 0, 9, -524296, 0, 9, -458760, 0, 9, -393224, 0, 9, -327688, 0, 9, -262152, 0, 9, -786439, 0, 9, -720903, 0, 9, -655367, 0, 9, -589831, 0, 9, -524295, 0, 9, -458759, 0, 9, -393223, 0, 9, -327687, 0, 9, -262151, 0, 9, -786438, 0, 9, -720902, 0, 9, -655366, 0, 9, -589830, 0, 9, -524294, 0, 9, -458758, 0, 9, -393222, 0, 9, -327686, 0, 9, -262150, 0, 9, -786437, 0, 9, -720901, 0, 9, -655365, 0, 9, -589829, 0, 9, -524293, 0, 9, -458757, 0, 9, -393221, 0, 9, -327685, 0, 9, -262149, 0, 9, -786436, 0, 9, -720900, 0, 9, -655364, 0, 9, -589828, 0, 9, -524292, 0, 9, -458756, 0, 9, -393220, 0, 9, -327684, 0, 9, -262148, 0, 9, -786435, 0, 9, -720899, 0, 9, -655363, 0, 9, -589827, 0, 9, -524291, 0, 9, -458755, 0, 9, -393219, 0, 9, -327683, 0, 9, -262147, 0, 9, -786434, 0, 9, -720898, 0, 9, -655362, 0, 9, -589826, 0, 9, -524290, 0, 9, -458754, 0, 9, -393218, 0, 9, -327682, 0, 9, -262146, 0, 9, -786433, 0, 9, -720897, 0, 9, -655361, 0, 9, -589825, 0, 9, -524289, 0, 9, -458753, 0, 9, -393217, 0, 9, -327681, 0, 9, -262145, 0, 9, -851968, 0, 9, -786432, 0, 9, -720896, 0, 9, -655360, 0, 9, -589824, 0, 9, -524288, 0, 9, -458752, 0, 9, -393216, 0, 9, -327680, 0, 9, -851967, 0, 9, -786431, 0, 9, -720895, 0, 9, -655359, 0, 9, -589823, 0, 9, -524287, 0, 9, -458751, 0, 9, -393215, 0, 9, -327679, 0, 9, -851966, 0, 9, -786430, 0, 9, -720894, 0, 9, -655358, 0, 9, -589822, 0, 9, -524286, 0, 9, -458750, 0, 9, -393214, 0, 9, -327678, 0, 9, -851965, 0, 9, -786429, 0, 9, -720893, 0, 9, -655357, 0, 9, -589821, 0, 9, -524285, 0, 9, -458749, 0, 9, -393213, 0, 9, -327677, 0, 9, -851964, 0, 9, -786428, 0, 9, -720892, 0, 9, -655356, 0, 9, -589820, 0, 9, -524284, 0, 9, -458748, 0, 9, -393212, 0, 9, -327676, 0, 9, -851963, 0, 9, -786427, 0, 9, -720891, 0, 9, -655355, 0, 9, -589819, 0, 9, -524283, 0, 9, -458747, 0, 9, -393211, 0, 9, -327675, 0, 9, -851962, 0, 9, -786426, 0, 9, -720890, 0, 9, -655354, 0, 9, -589818, 0, 9, -524282, 0, 9, -458746, 0, 9, -393210, 0, 9, -327674, 0, 9, -851961, 0, 9, -786425, 0, 9, -720889, 0, 9, -655353, 0, 9, -589817, 0, 9, -524281, 0, 9, -458745, 0, 9, -393209, 0, 9, -327673, 0, 9, -851960, 0, 9, -786424, 0, 9, -720888, 0, 9, -655352, 0, 9, -589816, 0, 9, -524280, 0, 9, -458744, 0, 9, -393208, 0, 9, -327672, 0, 9, -851959, 0, 9, -786423, 0, 9, -720887, 0, 9, -655351, 0, 9, -589815, 0, 9, -524279, 0, 9, -458743, 0, 9, -393207, 0, 9, -327671, 0, 9, -851958, 0, 9, -786422, 0, 9, -720886, 0, 9, -655350, 0, 9, -589814, 0, 9, -524278, 0, 9, -458742, 0, 9, -393206, 0, 9, -327670, 0, 9, -851957, 0, 9, -786421, 0, 9, -720885, 0, 9, -655349, 0, 9, -589813, 0, 9, -524277, 0, 9, -458741, 0, 9, -393205, 0, 9, -327669, 0, 9, -851956, 0, 9, -786420, 0, 9, -720884, 0, 9, -655348, 0, 9, -589812, 0, 9, -524276, 0, 9, -458740, 0, 9, -393204, 0, 9, -327668, 0, 9, -851955, 0, 9, -786419, 0, 9, -720883, 0, 9, -655347, 0, 9, -589811, 0, 9, -524275, 0, 9, -458739, 0, 9, -393203, 0, 9, -327667, 0, 9, -851954, 0, 9, -786418, 0, 9, -720882, 0, 9, -655346, 0, 9, -589810, 0, 9, -524274, 0, 9, -458738, 0, 9, -393202, 0, 9, -327666, 0, 9, -851953, 0, 9, -786417, 0, 9, -720881, 0, 9, -655345, 0, 9, -589809, 0, 9, -524273, 0, 9, -458737, 0, 9, -393201, 0, 9, -327665, 0, 9, -851952, 0, 9, -786416, 0, 9, -720880, 0, 9, -655344, 0, 9, -589808, 0, 9, -524272, 0, 9, -458736, 0, 9, -393200, 0, 9, -327664, 0, 9, -851951, 0, 9, -786415, 0, 9, -720879, 0, 9, -655343, 0, 9, -589807, 0, 9, -524271, 0, 9, -458735, 0, 9, -393199, 0, 9, -327663, 0, 9, -851950, 0, 9, -786414, 0, 9, -720878, 0, 9, -655342, 0, 9, -589806, 0, 9, -524270, 0, 9, -458734, 0, 9, -393198, 0, 9, -327662, 0, 9, -851949, 0, 9, -786413, 0, 9, -720877, 0, 9, -655341, 0, 9, -589805, 0, 9, -524269, 0, 9, -458733, 0, 9, -393197, 0, 9, -327661, 0, 9, -851948, 0, 9, -786412, 0, 9, -720876, 0, 9, -655340, 0, 9, -589804, 0, 9, -524268, 0, 9, -458732, 0, 9, -393196, 0, 9, -327660, 0, 9, -851947, 0, 9, -786411, 0, 9, -720875, 0, 9, -655339, 0, 9, -589803, 0, 9, -524267, 0, 9, -458731, 0, 9, -393195, 0, 9, -327659, 0, 9, -851946, 0, 9, -786410, 0, 9, -720874, 0, 9, -655338, 0, 9, -589802, 0, 9, -524266, 0, 9, -458730, 0, 9, -393194, 0, 9, -327658, 0, 9, -851945, 0, 9, -786409, 0, 9, -720873, 0, 9, -655337, 0, 9, -589801, 0, 9, -524265, 0, 9, -458729, 0, 9, -393193, 0, 9, -327657, 0, 9) +layer_1/name = "mid" +layer_1/tile_data = PackedInt32Array(196601, 0, 0, 196602, 0, 0, 196603, 0, 0, 196604, 0, 0, 262143, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 262140, 65536, 0, 262141, 0, 0, 262142, 0, 0, 262137, 65536, 1, 262138, 65536, 0, 262139, 65536, 0, 327676, 65536, 0, 327677, 65536, 1, 327678, 65536, 0, 327679, 65536, 0, 327683, 65536, 0, 327684, 65536, 1, 327685, 65536, 0, 327686, 65536, 0, 327687, 0, 1, 196615, 0, 1, 196616, 65536, 0, 196617, 65536, 0, 262151, 65536, 0, 262152, 0, 1, 262153, 65536, 0, 327689, 65536, 0, 327688, 65536, 0, 393215, 65536, 0, 393214, 0, 1, 393213, 0, 1, 393212, 0, 1, 393211, 65536, 0, 393210, 0, 1, 393209, 0, 1, 327673, 65536, 0, 327674, 65536, 0, 327675, 65536, 1, 196608, 589824, 0, 196609, 655360, 0, 196610, 720896, 0, 196611, 0, 0, 131067, 0, 5, 65531, 0, 4, -5, 0, 4, -65541, 0, 3, 196614, 0, 5, 131078, 0, 4, 65542, 0, 3, 131089, 0, 0, 196625, 65536, 1, 196627, 0, 1, 196628, 65536, 1, 196626, 0, 1, 196629, 65536, 0, 262163, 0, 1, 262161, 0, 1, 262162, 0, 1, 262164, 0, 1, 262165, 0, 1, -131072, 131072, 0, -131071, 131072, 0, -131070, 131072, 0, 131092, 196608, 8, 65556, 196608, 7, -65516, 131072, 4, 131094, 393216, 6, 196630, 0, 1, 196631, 65536, 1, 131096, 65536, 0, 65561, 0, 0, 65562, 0, 0, 131097, 0, 1, 131098, 65536, 0, 196634, 65536, 0, 196633, 0, 1, 196632, 0, 1, 262166, 0, 1, 262167, 0, 1, 262168, 0, 1, 262169, 0, 1, 262170, 0, 1) + +[node name="Player" parent="." instance=ExtResource("1_uwrxv")] + +[node name="Camera2D" type="Camera2D" parent="Player"] +zoom = Vector2(4, 4) +limit_bottom = 90 +position_smoothing_enabled = true + +[node name="killzone" parent="." instance=ExtResource("5_iywne")] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="killzone"] +position = Vector2(0, 118) +shape = SubResource("WorldBoundaryShape2D_p57ef") + +[node name="coins" type="Node" parent="."] + +[node name="Coin" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(5, -38) + +[node name="Coin2" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(72, 56) + +[node name="Coin3" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(-1, 40) + +[node name="Coin4" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(-29, 0) + +[node name="Coin5" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(407, 8) + +[node name="Coin6" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(424, 8) + +[node name="platforms" type="Node" parent="."] + +[node name="Platform" parent="platforms" instance=ExtResource("3_lnu2h")] +position = Vector2(-30, 27) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="platforms/Platform"] +libraries = { +&"": SubResource("AnimationLibrary_u5sy4") +} +autoplay = "new_animation" + +[node name="Platform2" parent="platforms" instance=ExtResource("3_lnu2h")] +position = Vector2(177, 37) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="platforms/Platform2"] +libraries = { +&"": SubResource("AnimationLibrary_iywne") +} +autoplay = "new_animation" + +[node name="Slime" parent="." instance=ExtResource("6_p57ef")] +position = Vector2(300, 49) + +[node name="Slime2" parent="." instance=ExtResource("6_p57ef")] +position = Vector2(87, 65) + +[node name="labels" type="Node" parent="."] + +[node name="Label" type="Label" parent="labels"] +offset_left = -1.0 +offset_top = -14.0 +offset_right = 97.0 +offset_bottom = 12.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "space to jump +" + +[node name="Label3" type="Label" parent="labels"] +offset_left = 287.0 +offset_top = 15.0 +offset_right = 385.0 +offset_bottom = 41.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "yikes! +" + +[node name="Label4" type="Label" parent="labels"] +offset_left = 192.0 +offset_top = 52.0 +offset_right = 290.0 +offset_bottom = 78.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "careful! +" + +[node name="ScoreLabel" type="Label" parent="labels"] +offset_left = 285.0 +offset_top = -40.0 +offset_right = 399.0 +offset_bottom = -14.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("2_0tnpc") +theme_override_font_sizes/font_size = 8 +text = "You got X coins" diff --git a/scenes/game.tscn2149177522.tmp b/scenes/game.tscn2149177522.tmp new file mode 100644 index 0000000..de96c2f --- /dev/null +++ b/scenes/game.tscn2149177522.tmp @@ -0,0 +1,365 @@ +[gd_scene load_steps=19 format=3 uid="uid://bsl5dgs3aimx1"] + +[ext_resource type="Script" uid="uid://gyfm5wk3yp3c" path="res://scenes/game.gd" id="1_0tnpc"] +[ext_resource type="PackedScene" uid="uid://b72smvvbacy6g" path="res://scenes/player.tscn" id="1_uwrxv"] +[ext_resource type="FontFile" uid="uid://bnroldd715ms" path="res://assets/brackeys_platformer_assets/fonts/PixelOperator8-Bold.ttf" id="2_0tnpc"] +[ext_resource type="Texture2D" uid="uid://cgyegxeda1mdf" path="res://assets/brackeys_platformer_assets/sprites/world_tileset.png" id="2_yqjtg"] +[ext_resource type="PackedScene" uid="uid://ct26ixf6dfdec" path="res://scenes/platform.tscn" id="3_lnu2h"] +[ext_resource type="PackedScene" uid="uid://rbfbwxr7wsro" path="res://scenes/coin.tscn" id="4_lbhrr"] +[ext_resource type="PackedScene" uid="uid://ddnw180bowxn2" path="res://scenes/killzone.tscn" id="5_iywne"] +[ext_resource type="PackedScene" uid="uid://cj35suv0ggfps" path="res://scenes/slime.tscn" id="6_p57ef"] +[ext_resource type="FontFile" uid="uid://bxvk0pw18y75o" path="res://assets/brackeys_platformer_assets/fonts/PixelOperator8.ttf" id="7_u5sy4"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_lnu2h"] +texture = ExtResource("2_yqjtg") +0:0/0 = 0 +0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:0/0 = 0 +1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:0/0 = 0 +2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:0/0 = 0 +3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:0/0 = 0 +4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:0/0 = 0 +5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:0/0 = 0 +6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:0/0 = 0 +7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:0/0 = 0 +8:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:0/0 = 0 +9:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:0/0 = 0 +10:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:0/0 = 0 +11:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:1/0 = 0 +0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:1/0 = 0 +1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:1/0 = 0 +2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:1/0 = 0 +3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:1/0 = 0 +4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:1/0 = 0 +5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:1/0 = 0 +6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:1/0 = 0 +7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:1/0 = 0 +8:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:1/0 = 0 +9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:1/0 = 0 +10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:1/0 = 0 +11:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:2/0 = 0 +0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +1:2/0 = 0 +1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +2:2/0 = 0 +2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +3:2/0 = 0 +3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +4:2/0 = 0 +4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:2/0 = 0 +5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +6:2/0 = 0 +6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +7:2/0 = 0 +7:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +8:2/0 = 0 +8:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +9:2/0 = 0 +9:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -6.04402, 8, 0.343967, -8, -1.32674) +10:2/0 = 0 +10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -5.84747, 8, 0.933629, -8, 0.933629) +11:2/0 = 0 +11:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -5.74919, 8, -8, 8, -1.32674, -8, 0.933629) +0:3/0 = 0 +1:3/0 = 0 +2:3/0 = 0 +2:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8) +5:3/0 = 0 +6:3/0 = 0 +7:3/0 = 0 +8:3/0 = 0 +9:3/0 = 0 +0:4/0 = 0 +5:4/0 = 0 +6:4/0 = 0 +7:4/0 = 0 +8:4/0 = 0 +9:4/0 = 0 +0:5/0 = 0 +1:5/0 = 0 +5:5/0 = 0 +6:5/0 = 0 +7:5/0 = 0 +8:5/0 = 0 +1:6/0 = 0 +5:6/0 = 0 +6:6/0 = 0 +7:6/0 = 0 +8:6/0 = 0 +0:7/0 = 0 +1:7/0 = 0 +3:7/0 = 0 +5:7/0 = 0 +6:7/0 = 0 +7:7/0 = 0 +8:7/0 = 0 +0:8/0 = 0 +1:8/0 = 0 +2:8/0 = 0 +3:8/0 = 0 +4:8/0 = 0 +5:8/0 = 0 +6:8/0 = 0 +7:8/0 = 0 +8:8/0 = 0 +0:9/0 = 0 +1:9/0 = 0 +2:9/0 = 0 +3:9/0 = 0 +4:9/0 = 0 +5:9/0 = 0 +6:9/0 = 0 +7:9/0 = 0 +0:10/0 = 0 +1:10/0 = 0 +2:10/0 = 0 +3:10/0 = 0 +4:10/0 = 0 +6:10/0 = 0 +0:11/0 = 0 +1:11/0 = 0 +2:11/0 = 0 +3:11/0 = 0 +4:11/0 = 0 +5:11/0 = 0 +0:12/0 = 0 +1:12/0 = 0 +2:12/0 = 0 +3:12/0 = 0 +4:12/0 = 0 +0:13/0 = 0 +1:13/0 = 0 +2:13/0 = 0 +3:13/0 = 0 +4:13/0 = 0 +5:13/0 = 0 +0:14/0 = 0 +1:14/0 = 0 +2:14/0 = 0 +3:14/0 = 0 +4:14/0 = 0 +0:15/0 = 0 +1:15/0 = 0 +2:15/0 = 0 +3:15/0 = 0 +1:4/0 = 0 +2:4/size_in_atlas = Vector2i(3, 3) +2:4/0 = 0 + +[sub_resource type="TileSet" id="TileSet_lbhrr"] +physics_layer_0/collision_layer = 1 +sources/0 = SubResource("TileSetAtlasSource_lnu2h") + +[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_p57ef"] + +[sub_resource type="Animation" id="Animation_p57ef"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-30, 27)] +} + +[sub_resource type="Animation" id="Animation_iywne"] +resource_name = "new_animation" +length = 1.5 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.5), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(-30, 27), Vector2(-33, -27)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_u5sy4"] +_data = { +&"RESET": SubResource("Animation_p57ef"), +&"new_animation": SubResource("Animation_iywne") +} + +[sub_resource type="Animation" id="Animation_lbhrr"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(177, 37)] +} + +[sub_resource type="Animation" id="Animation_lnu2h"] +resource_name = "new_animation" +length = 1.5 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.46667), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(177, 37), Vector2(255, 37)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_iywne"] +_data = { +&"RESET": SubResource("Animation_lbhrr"), +&"new_animation": SubResource("Animation_lnu2h") +} + +[node name="Game" type="Node2D"] +script = ExtResource("1_0tnpc") + +[node name="TileMap" type="TileMap" parent="."] +tile_set = SubResource("TileSet_lbhrr") +format = 2 +layer_0/name = "background" +layer_0/tile_data = PackedInt32Array(327671, 0, 14, 327672, 0, 14, 327673, 0, 14, 327674, 0, 14, 327675, 0, 14, 327676, 0, 14, 327677, 0, 14, 327678, 0, 14, 327679, 0, 14, 262144, 0, 14, 262145, 0, 14, 262146, 0, 14, 262147, 0, 14, 262148, 0, 14, 262149, 0, 14, 262150, 0, 14, 262151, 0, 14, 262152, 0, 14, 262153, 0, 14, 262154, 0, 14, 262155, 0, 14, 262156, 0, 14, 262157, 0, 14, 262158, 0, 14, 262159, 0, 14, 262160, 0, 14, 262161, 0, 14, 262162, 0, 14, 262163, 0, 14, 262164, 0, 14, 262165, 0, 14, 262166, 0, 14, 262167, 0, 14, 393207, 0, 15, 458743, 0, 15, 393208, 0, 15, 458744, 0, 15, 393209, 0, 15, 458745, 0, 15, 393210, 0, 15, 458746, 0, 15, 393211, 0, 15, 458747, 0, 15, 393212, 0, 15, 458748, 0, 15, 393213, 0, 15, 458749, 0, 15, 393214, 0, 15, 458750, 0, 15, 393215, 0, 15, 458751, 0, 15, 327680, 0, 15, 393216, 0, 15, 327681, 0, 15, 393217, 0, 15, 327682, 0, 15, 393218, 0, 15, 327683, 0, 15, 393219, 0, 15, 327684, 0, 15, 393220, 0, 15, 327685, 0, 15, 393221, 0, 15, 327686, 0, 15, 393222, 0, 15, 327687, 0, 15, 393223, 0, 15, 327688, 0, 15, 393224, 0, 15, 327689, 0, 15, 393225, 0, 15, 327690, 0, 15, 393226, 0, 15, 327691, 0, 15, 393227, 0, 15, 327692, 0, 15, 393228, 0, 15, 327693, 0, 15, 393229, 0, 15, 327694, 0, 15, 393230, 0, 15, 327695, 0, 15, 393231, 0, 15, 327696, 0, 15, 393232, 0, 15, 327697, 0, 15, 393233, 0, 15, 327698, 0, 15, 393234, 0, 15, 327699, 0, 15, 393235, 0, 15, 327700, 0, 15, 393236, 0, 15, 327701, 0, 15, 393237, 0, 15, 327702, 0, 15, 393238, 0, 15, 327703, 0, 15, 393239, 0, 15, 131063, 0, 13, 196599, 0, 13, 262135, 0, 13, 131064, 0, 13, 196600, 0, 13, 262136, 0, 13, 131065, 0, 13, 196601, 0, 13, 262137, 0, 13, 131066, 0, 13, 196602, 0, 13, 262138, 0, 13, 131067, 0, 13, 196603, 0, 13, 262139, 0, 13, 131068, 0, 13, 196604, 0, 13, 262140, 0, 13, 131069, 0, 13, 196605, 0, 13, 262141, 0, 13, 131070, 0, 13, 196606, 0, 13, 262142, 0, 13, 131071, 0, 13, 196607, 0, 13, 262143, 0, 13, 65536, 0, 13, 131072, 0, 13, 196608, 0, 13, 65537, 0, 13, 131073, 0, 13, 196609, 0, 13, 65538, 0, 13, 131074, 0, 13, 196610, 0, 13, 65539, 0, 13, 131075, 0, 13, 196611, 0, 13, 65540, 0, 13, 131076, 0, 13, 196612, 0, 13, 65541, 0, 13, 131077, 0, 13, 196613, 0, 13, 65542, 0, 13, 131078, 0, 13, 196614, 0, 13, 65543, 0, 13, 131079, 0, 13, 196615, 0, 13, 65544, 0, 13, 131080, 0, 13, 196616, 0, 13, 65545, 0, 13, 131081, 0, 13, 196617, 0, 13, 65546, 0, 13, 131082, 0, 13, 196618, 0, 13, 65547, 0, 13, 131083, 0, 13, 196619, 0, 13, 65548, 0, 13, 131084, 0, 13, 196620, 0, 13, 65549, 0, 13, 131085, 0, 13, 196621, 0, 13, 65550, 0, 13, 131086, 0, 13, 196622, 0, 13, 65551, 0, 13, 131087, 0, 13, 196623, 0, 13, 65552, 0, 13, 131088, 0, 13, 196624, 0, 13, 65553, 0, 13, 131089, 0, 13, 196625, 0, 13, 65554, 0, 13, 131090, 0, 13, 196626, 0, 13, 65555, 0, 13, 131091, 0, 13, 196627, 0, 13, 65556, 0, 13, 131092, 0, 13, 196628, 0, 13, 65557, 0, 13, 131093, 0, 13, 196629, 0, 13, 65558, 0, 13, 131094, 0, 13, 196630, 0, 13, 65559, 0, 13, 131095, 0, 13, 196631, 0, 13, 65527, 0, 12, 65528, 0, 12, 65529, 0, 12, 65530, 0, 12, 65531, 0, 12, 65532, 0, 12, 65533, 0, 12, 65534, 0, 12, 65535, 0, 12, 0, 0, 12, 1, 0, 12, 2, 0, 12, 3, 0, 12, 4, 0, 12, 5, 0, 12, 6, 0, 12, 7, 0, 12, 8, 0, 12, 9, 0, 12, 10, 0, 12, 11, 0, 12, 12, 0, 12, 13, 0, 12, 14, 0, 12, 15, 0, 12, 16, 0, 12, 17, 0, 12, 18, 0, 12, 19, 0, 12, 20, 0, 12, 21, 0, 12, 22, 0, 12, 23, 0, 12, -131081, 0, 11, -65545, 0, 11, -9, 0, 11, -131080, 0, 11, -65544, 0, 11, -8, 0, 11, -131079, 0, 11, -65543, 0, 11, -7, 0, 11, -131078, 0, 11, -65542, 0, 11, -6, 0, 11, -131077, 0, 11, -65541, 0, 11, -5, 0, 11, -131076, 0, 11, -65540, 0, 11, -4, 0, 11, -131075, 0, 11, -65539, 0, 11, -3, 0, 11, -131074, 0, 11, -65538, 0, 11, -2, 0, 11, -131073, 0, 11, -65537, 0, 11, -1, 0, 11, -196608, 0, 11, -131072, 0, 11, -65536, 0, 11, -196607, 0, 11, -131071, 0, 11, -65535, 0, 11, -196606, 0, 11, -131070, 0, 11, -65534, 0, 11, -196605, 0, 11, -131069, 0, 11, -65533, 0, 11, -196604, 0, 11, -131068, 0, 11, -65532, 0, 11, -196603, 0, 11, -131067, 0, 11, -65531, 0, 11, -196602, 0, 11, -131066, 0, 11, -65530, 0, 11, -196601, 0, 11, -131065, 0, 11, -65529, 0, 11, -196600, 0, 11, -131064, 0, 11, -65528, 0, 11, -196599, 0, 11, -131063, 0, 11, -65527, 0, 11, -196598, 0, 11, -131062, 0, 11, -65526, 0, 11, -196597, 0, 11, -131061, 0, 11, -65525, 0, 11, -196596, 0, 11, -131060, 0, 11, -65524, 0, 11, -196595, 0, 11, -131059, 0, 11, -65523, 0, 11, -196594, 0, 11, -131058, 0, 11, -65522, 0, 11, -196593, 0, 11, -131057, 0, 11, -65521, 0, 11, -196592, 0, 11, -131056, 0, 11, -65520, 0, 11, -196591, 0, 11, -131055, 0, 11, -65519, 0, 11, -196590, 0, 11, -131054, 0, 11, -65518, 0, 11, -196589, 0, 11, -131053, 0, 11, -65517, 0, 11, -196588, 0, 11, -131052, 0, 11, -65516, 0, 11, -196587, 0, 11, -131051, 0, 11, -65515, 0, 11, -196586, 0, 11, -131050, 0, 11, -65514, 0, 11, -196585, 0, 11, -131049, 0, 11, -65513, 0, 11, -196617, 0, 10, -196616, 0, 10, -196615, 0, 10, -196614, 0, 10, -196613, 0, 10, -196612, 0, 10, -196611, 0, 10, -196610, 0, 10, -196609, 0, 10, -262144, 0, 10, -262143, 0, 10, -262142, 0, 10, -262141, 0, 10, -262140, 0, 10, -262139, 0, 10, -262138, 0, 10, -262137, 0, 10, -262136, 0, 10, -262135, 0, 10, -262134, 0, 10, -262133, 0, 10, -262132, 0, 10, -262131, 0, 10, -262130, 0, 10, -262129, 0, 10, -262128, 0, 10, -262127, 0, 10, -262126, 0, 10, -262125, 0, 10, -262124, 0, 10, -262123, 0, 10, -262122, 0, 10, -262121, 0, 10, -786441, 0, 9, -720905, 0, 9, -655369, 0, 9, -589833, 0, 9, -524297, 0, 9, -458761, 0, 9, -393225, 0, 9, -327689, 0, 9, -262153, 0, 9, -786440, 0, 9, -720904, 0, 9, -655368, 0, 9, -589832, 0, 9, -524296, 0, 9, -458760, 0, 9, -393224, 0, 9, -327688, 0, 9, -262152, 0, 9, -786439, 0, 9, -720903, 0, 9, -655367, 0, 9, -589831, 0, 9, -524295, 0, 9, -458759, 0, 9, -393223, 0, 9, -327687, 0, 9, -262151, 0, 9, -786438, 0, 9, -720902, 0, 9, -655366, 0, 9, -589830, 0, 9, -524294, 0, 9, -458758, 0, 9, -393222, 0, 9, -327686, 0, 9, -262150, 0, 9, -786437, 0, 9, -720901, 0, 9, -655365, 0, 9, -589829, 0, 9, -524293, 0, 9, -458757, 0, 9, -393221, 0, 9, -327685, 0, 9, -262149, 0, 9, -786436, 0, 9, -720900, 0, 9, -655364, 0, 9, -589828, 0, 9, -524292, 0, 9, -458756, 0, 9, -393220, 0, 9, -327684, 0, 9, -262148, 0, 9, -786435, 0, 9, -720899, 0, 9, -655363, 0, 9, -589827, 0, 9, -524291, 0, 9, -458755, 0, 9, -393219, 0, 9, -327683, 0, 9, -262147, 0, 9, -786434, 0, 9, -720898, 0, 9, -655362, 0, 9, -589826, 0, 9, -524290, 0, 9, -458754, 0, 9, -393218, 0, 9, -327682, 0, 9, -262146, 0, 9, -786433, 0, 9, -720897, 0, 9, -655361, 0, 9, -589825, 0, 9, -524289, 0, 9, -458753, 0, 9, -393217, 0, 9, -327681, 0, 9, -262145, 0, 9, -851968, 0, 9, -786432, 0, 9, -720896, 0, 9, -655360, 0, 9, -589824, 0, 9, -524288, 0, 9, -458752, 0, 9, -393216, 0, 9, -327680, 0, 9, -851967, 0, 9, -786431, 0, 9, -720895, 0, 9, -655359, 0, 9, -589823, 0, 9, -524287, 0, 9, -458751, 0, 9, -393215, 0, 9, -327679, 0, 9, -851966, 0, 9, -786430, 0, 9, -720894, 0, 9, -655358, 0, 9, -589822, 0, 9, -524286, 0, 9, -458750, 0, 9, -393214, 0, 9, -327678, 0, 9, -851965, 0, 9, -786429, 0, 9, -720893, 0, 9, -655357, 0, 9, -589821, 0, 9, -524285, 0, 9, -458749, 0, 9, -393213, 0, 9, -327677, 0, 9, -851964, 0, 9, -786428, 0, 9, -720892, 0, 9, -655356, 0, 9, -589820, 0, 9, -524284, 0, 9, -458748, 0, 9, -393212, 0, 9, -327676, 0, 9, -851963, 0, 9, -786427, 0, 9, -720891, 0, 9, -655355, 0, 9, -589819, 0, 9, -524283, 0, 9, -458747, 0, 9, -393211, 0, 9, -327675, 0, 9, -851962, 0, 9, -786426, 0, 9, -720890, 0, 9, -655354, 0, 9, -589818, 0, 9, -524282, 0, 9, -458746, 0, 9, -393210, 0, 9, -327674, 0, 9, -851961, 0, 9, -786425, 0, 9, -720889, 0, 9, -655353, 0, 9, -589817, 0, 9, -524281, 0, 9, -458745, 0, 9, -393209, 0, 9, -327673, 0, 9, -851960, 0, 9, -786424, 0, 9, -720888, 0, 9, -655352, 0, 9, -589816, 0, 9, -524280, 0, 9, -458744, 0, 9, -393208, 0, 9, -327672, 0, 9, -851959, 0, 9, -786423, 0, 9, -720887, 0, 9, -655351, 0, 9, -589815, 0, 9, -524279, 0, 9, -458743, 0, 9, -393207, 0, 9, -327671, 0, 9, -851958, 0, 9, -786422, 0, 9, -720886, 0, 9, -655350, 0, 9, -589814, 0, 9, -524278, 0, 9, -458742, 0, 9, -393206, 0, 9, -327670, 0, 9, -851957, 0, 9, -786421, 0, 9, -720885, 0, 9, -655349, 0, 9, -589813, 0, 9, -524277, 0, 9, -458741, 0, 9, -393205, 0, 9, -327669, 0, 9, -851956, 0, 9, -786420, 0, 9, -720884, 0, 9, -655348, 0, 9, -589812, 0, 9, -524276, 0, 9, -458740, 0, 9, -393204, 0, 9, -327668, 0, 9, -851955, 0, 9, -786419, 0, 9, -720883, 0, 9, -655347, 0, 9, -589811, 0, 9, -524275, 0, 9, -458739, 0, 9, -393203, 0, 9, -327667, 0, 9, -851954, 0, 9, -786418, 0, 9, -720882, 0, 9, -655346, 0, 9, -589810, 0, 9, -524274, 0, 9, -458738, 0, 9, -393202, 0, 9, -327666, 0, 9, -851953, 0, 9, -786417, 0, 9, -720881, 0, 9, -655345, 0, 9, -589809, 0, 9, -524273, 0, 9, -458737, 0, 9, -393201, 0, 9, -327665, 0, 9, -851952, 0, 9, -786416, 0, 9, -720880, 0, 9, -655344, 0, 9, -589808, 0, 9, -524272, 0, 9, -458736, 0, 9, -393200, 0, 9, -327664, 0, 9, -851951, 0, 9, -786415, 0, 9, -720879, 0, 9, -655343, 0, 9, -589807, 0, 9, -524271, 0, 9, -458735, 0, 9, -393199, 0, 9, -327663, 0, 9, -851950, 0, 9, -786414, 0, 9, -720878, 0, 9, -655342, 0, 9, -589806, 0, 9, -524270, 0, 9, -458734, 0, 9, -393198, 0, 9, -327662, 0, 9, -851949, 0, 9, -786413, 0, 9, -720877, 0, 9, -655341, 0, 9, -589805, 0, 9, -524269, 0, 9, -458733, 0, 9, -393197, 0, 9, -327661, 0, 9, -851948, 0, 9, -786412, 0, 9, -720876, 0, 9, -655340, 0, 9, -589804, 0, 9, -524268, 0, 9, -458732, 0, 9, -393196, 0, 9, -327660, 0, 9, -851947, 0, 9, -786411, 0, 9, -720875, 0, 9, -655339, 0, 9, -589803, 0, 9, -524267, 0, 9, -458731, 0, 9, -393195, 0, 9, -327659, 0, 9, -851946, 0, 9, -786410, 0, 9, -720874, 0, 9, -655338, 0, 9, -589802, 0, 9, -524266, 0, 9, -458730, 0, 9, -393194, 0, 9, -327658, 0, 9, -851945, 0, 9, -786409, 0, 9, -720873, 0, 9, -655337, 0, 9, -589801, 0, 9, -524265, 0, 9, -458729, 0, 9, -393193, 0, 9, -327657, 0, 9) +layer_1/name = "mid" +layer_1/tile_data = PackedInt32Array(196601, 0, 0, 196602, 0, 0, 196603, 0, 0, 196604, 0, 0, 262143, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 262140, 65536, 0, 262141, 0, 0, 262142, 0, 0, 262137, 65536, 1, 262138, 65536, 0, 262139, 65536, 0, 327676, 65536, 0, 327677, 65536, 1, 327678, 65536, 0, 327679, 65536, 0, 327683, 65536, 0, 327684, 65536, 1, 327685, 65536, 0, 327686, 65536, 0, 327687, 0, 1, 196615, 0, 1, 196616, 65536, 0, 196617, 65536, 0, 262151, 65536, 0, 262152, 0, 1, 262153, 65536, 0, 327689, 65536, 0, 327688, 65536, 0, 393215, 65536, 0, 393214, 0, 1, 393213, 0, 1, 393212, 0, 1, 393211, 65536, 0, 393210, 0, 1, 393209, 0, 1, 327673, 65536, 0, 327674, 65536, 0, 327675, 65536, 1, 196608, 589824, 0, 196609, 655360, 0, 196610, 720896, 0, 196611, 0, 0, 131067, 0, 5, 65531, 0, 4, -5, 0, 4, -65541, 0, 3, 196614, 0, 5, 131078, 0, 4, 65542, 0, 3, 131089, 0, 0, 196625, 65536, 1, 196627, 0, 1, 196628, 65536, 1, 196626, 0, 1, 196629, 65536, 0, 262163, 0, 1, 262161, 0, 1, 262162, 0, 1, 262164, 0, 1, 262165, 0, 1, -131072, 131072, 0, -131071, 131072, 0, -131070, 131072, 0, 131092, 196608, 8, 65556, 196608, 7, -65516, 131072, 4, 131094, 393216, 6, 196630, 0, 1, 196631, 65536, 1, 131096, 65536, 0, 65561, 0, 0, 65562, 0, 0, 131097, 0, 1, 131098, 65536, 0, 196634, 65536, 0, 196633, 0, 1, 196632, 0, 1, 262166, 0, 1, 262167, 0, 1, 262168, 0, 1, 262169, 0, 1, 262170, 0, 1) + +[node name="Player" parent="." instance=ExtResource("1_uwrxv")] + +[node name="Camera2D" type="Camera2D" parent="Player"] +zoom = Vector2(4, 4) +limit_bottom = 90 +position_smoothing_enabled = true + +[node name="killzone" parent="." instance=ExtResource("5_iywne")] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="killzone"] +position = Vector2(0, 118) +shape = SubResource("WorldBoundaryShape2D_p57ef") + +[node name="coins" type="Node" parent="."] + +[node name="Coin" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(5, -38) + +[node name="Coin2" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(72, 56) + +[node name="Coin3" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(-1, 40) + +[node name="Coin4" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(-29, 0) + +[node name="Coin5" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(407, 8) + +[node name="Coin6" parent="coins" instance=ExtResource("4_lbhrr")] +position = Vector2(424, 8) + +[node name="platforms" type="Node" parent="."] + +[node name="Platform" parent="platforms" instance=ExtResource("3_lnu2h")] +position = Vector2(-30, 27) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="platforms/Platform"] +libraries = { +&"": SubResource("AnimationLibrary_u5sy4") +} +autoplay = "new_animation" + +[node name="Platform2" parent="platforms" instance=ExtResource("3_lnu2h")] +position = Vector2(177, 37) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="platforms/Platform2"] +libraries = { +&"": SubResource("AnimationLibrary_iywne") +} +autoplay = "new_animation" + +[node name="Slime" parent="." instance=ExtResource("6_p57ef")] +position = Vector2(300, 49) + +[node name="labels" type="Node" parent="."] + +[node name="Label" type="Label" parent="labels"] +offset_left = -1.0 +offset_top = -14.0 +offset_right = 97.0 +offset_bottom = 12.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "space to jump +" + +[node name="Label3" type="Label" parent="labels"] +offset_left = 283.0 +offset_top = 18.0 +offset_right = 381.0 +offset_bottom = 44.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "yikes! +" + +[node name="Label4" type="Label" parent="labels"] +offset_left = 192.0 +offset_top = 52.0 +offset_right = 290.0 +offset_bottom = 78.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("7_u5sy4") +theme_override_font_sizes/font_size = 8 +text = "careful! +" + +[node name="ScoreLabel" type="Label" parent="labels"] +offset_left = 285.0 +offset_top = -40.0 +offset_right = 399.0 +offset_bottom = -14.0 +theme_override_colors/font_color = Color(0.220638, 0.026723, 0.17129, 1) +theme_override_fonts/font = ExtResource("2_0tnpc") +theme_override_font_sizes/font_size = 8 +text = "You got X coins" diff --git a/scenes/killzone.tscn b/scenes/killzone.tscn new file mode 100644 index 0000000..055576c --- /dev/null +++ b/scenes/killzone.tscn @@ -0,0 +1,14 @@ +[gd_scene load_steps=2 format=3 uid="uid://ddnw180bowxn2"] + +[ext_resource type="Script" uid="uid://db8xxth4oa6xg" path="res://scripts/killzone.gd" id="1_xlapc"] + +[node name="killzone" type="Area2D"] +collision_mask = 2 +script = ExtResource("1_xlapc") + +[node name="Timer" type="Timer" parent="."] +wait_time = 0.6 +one_shot = true + +[connection signal="body_entered" from="." to="." method="_on_body_entered"] +[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] diff --git a/scenes/music.tscn b/scenes/music.tscn new file mode 100644 index 0000000..7720acc --- /dev/null +++ b/scenes/music.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=3 uid="uid://d1mcuinlcj13w"] + +[ext_resource type="AudioStream" uid="uid://cqgvfu5x0f21s" path="res://assets/brackeys_platformer_assets/music/time_for_adventure.mp3" id="1_05ggv"] + +[node name="Music" type="AudioStreamPlayer2D"] +stream = ExtResource("1_05ggv") +autoplay = true +bus = &"Music" diff --git a/scenes/platform.tscn b/scenes/platform.tscn new file mode 100644 index 0000000..a417c13 --- /dev/null +++ b/scenes/platform.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=3 format=3 uid="uid://ct26ixf6dfdec"] + +[ext_resource type="Texture2D" uid="uid://c2cq8egoxepdj" path="res://assets/brackeys_platformer_assets/sprites/platforms.png" id="1_ba0x2"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_nlgqw"] +size = Vector2(32, 8) + +[node name="Platform" type="AnimatableBody2D"] + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("1_ba0x2") +region_enabled = true +region_rect = Rect2(16, 0, 32, 9) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("RectangleShape2D_nlgqw") +one_way_collision = true diff --git a/scenes/player.tscn b/scenes/player.tscn new file mode 100644 index 0000000..b7bba2f --- /dev/null +++ b/scenes/player.tscn @@ -0,0 +1,186 @@ +[gd_scene load_steps=26 format=3 uid="uid://b72smvvbacy6g"] + +[ext_resource type="Texture2D" uid="uid://bda78yggl3vfm" path="res://assets/brackeys_platformer_assets/sprites/knight.png" id="1_3vyb7"] +[ext_resource type="Script" uid="uid://dfmh1h3u1186s" path="res://scripts/playermovement.gd" id="1_g2els"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"] +atlas = ExtResource("1_3vyb7") +region = Rect2(0, 0, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"] +atlas = ExtResource("1_3vyb7") +region = Rect2(32, 0, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"] +atlas = ExtResource("1_3vyb7") +region = Rect2(64, 0, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"] +atlas = ExtResource("1_3vyb7") +region = Rect2(96, 0, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"] +atlas = ExtResource("1_3vyb7") +region = Rect2(64, 160, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"] +atlas = ExtResource("1_3vyb7") +region = Rect2(0, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"] +atlas = ExtResource("1_3vyb7") +region = Rect2(32, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"] +atlas = ExtResource("1_3vyb7") +region = Rect2(64, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"] +atlas = ExtResource("1_3vyb7") +region = Rect2(96, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"] +atlas = ExtResource("1_3vyb7") +region = Rect2(128, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"] +atlas = ExtResource("1_3vyb7") +region = Rect2(160, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"] +atlas = ExtResource("1_3vyb7") +region = Rect2(192, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f1ej7"] +atlas = ExtResource("1_3vyb7") +region = Rect2(224, 64, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_oprun"] +atlas = ExtResource("1_3vyb7") +region = Rect2(0, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"] +atlas = ExtResource("1_3vyb7") +region = Rect2(32, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qfm1y"] +atlas = ExtResource("1_3vyb7") +region = Rect2(64, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fulsm"] +atlas = ExtResource("1_3vyb7") +region = Rect2(96, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4r5pv"] +atlas = ExtResource("1_3vyb7") +region = Rect2(128, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_60mlk"] +atlas = ExtResource("1_3vyb7") +region = Rect2(160, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"] +atlas = ExtResource("1_3vyb7") +region = Rect2(192, 96, 32, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_a38lo"] +atlas = ExtResource("1_3vyb7") +region = Rect2(224, 96, 32, 32) + +[sub_resource type="SpriteFrames" id="SpriteFrames_tuyoq"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_g2els") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qhqgy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dqkch") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qlg0r") +}], +"loop": true, +"name": &"default", +"speed": 6.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_tuyoq") +}], +"loop": true, +"name": &"jump", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_fjrip") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_smehm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ur7pv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_y4r1p") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_d2wvv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3v2ag") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jej6c") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_f1ej7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_oprun") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_a8ls1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qfm1y") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fulsm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4r5pv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_60mlk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i4ail") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_a38lo") +}], +"loop": true, +"name": &"run", +"speed": 11.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_3vyb7"] +radius = 6.0 + +[node name="Player" type="CharacterBody2D"] +z_index = 3 +collision_layer = 2 +script = ExtResource("1_g2els") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +sprite_frames = SubResource("SpriteFrames_tuyoq") +animation = &"jump" +autoplay = "default" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(0, 6) +shape = SubResource("CircleShape2D_3vyb7") diff --git a/scenes/slime.tscn b/scenes/slime.tscn new file mode 100644 index 0000000..12a0706 --- /dev/null +++ b/scenes/slime.tscn @@ -0,0 +1,68 @@ +[gd_scene load_steps=10 format=3 uid="uid://cj35suv0ggfps"] + +[ext_resource type="Script" uid="uid://b3qxwn2ta73vx" path="res://scripts/slime.gd" id="1_n6pvg"] +[ext_resource type="Texture2D" uid="uid://bbfytacurofqi" path="res://assets/brackeys_platformer_assets/sprites/slime_green.png" id="1_p2gj0"] +[ext_resource type="PackedScene" uid="uid://ddnw180bowxn2" path="res://scenes/killzone.tscn" id="2_n6pvg"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] +atlas = ExtResource("1_p2gj0") +region = Rect2(0, 24, 24, 24) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] +atlas = ExtResource("1_p2gj0") +region = Rect2(24, 24, 24, 24) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] +atlas = ExtResource("1_p2gj0") +region = Rect2(48, 24, 24, 24) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gstla"] +atlas = ExtResource("1_p2gj0") +region = Rect2(72, 24, 24, 24) + +[sub_resource type="SpriteFrames" id="SpriteFrames_v5wyi"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pjw23") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2npkn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fd6lc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gstla") +}], +"loop": true, +"name": &"idle", +"speed": 10.0 +}] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_0l8pv"] +size = Vector2(10, 15) + +[node name="Slime" type="Node2D"] +script = ExtResource("1_n6pvg") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +position = Vector2(0, -12) +sprite_frames = SubResource("SpriteFrames_v5wyi") +animation = &"idle" +autoplay = "idle" +frame_progress = 0.153602 + +[node name="killzone" parent="." instance=ExtResource("2_n6pvg")] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="killzone"] +position = Vector2(0, -7.5) +shape = SubResource("RectangleShape2D_0l8pv") + +[node name="raycastright" type="RayCast2D" parent="."] +position = Vector2(0, -7) +target_position = Vector2(10, 0) + +[node name="raycastleft" type="RayCast2D" parent="."] +position = Vector2(1, -7) +target_position = Vector2(-9, 0) diff --git a/scripts/coin.gd b/scripts/coin.gd new file mode 100644 index 0000000..0fad8ca --- /dev/null +++ b/scripts/coin.gd @@ -0,0 +1,8 @@ +extends Area2D +@onready var aplayer = $AnimationPlayer +func _ready() -> void: + print("coin ready!") + +func _on_body_entered(body:Node2D) -> void: + GameManager.add_point() + aplayer.play("pickup_sound") diff --git a/scripts/coin.gd.uid b/scripts/coin.gd.uid new file mode 100644 index 0000000..74745e2 --- /dev/null +++ b/scripts/coin.gd.uid @@ -0,0 +1 @@ +uid://dafe64tmpvrbe diff --git a/scripts/killzone.gd b/scripts/killzone.gd new file mode 100644 index 0000000..ddc339c --- /dev/null +++ b/scripts/killzone.gd @@ -0,0 +1,16 @@ +extends Area2D + +@onready var timer = $Timer + +func _on_body_entered(body:Node2D) -> void: + print("dead.") + body.get_node("CollisionShape2D").queue_free() + Engine.time_scale = 0.5 + timer.start() + + + +func _on_timer_timeout() -> void: + print("reloading") + Engine.time_scale = 1.0 + get_tree().reload_current_scene() diff --git a/scripts/killzone.gd.uid b/scripts/killzone.gd.uid new file mode 100644 index 0000000..5f76842 --- /dev/null +++ b/scripts/killzone.gd.uid @@ -0,0 +1 @@ +uid://db8xxth4oa6xg diff --git a/scripts/playermovement.gd b/scripts/playermovement.gd new file mode 100644 index 0000000..2e04bf5 --- /dev/null +++ b/scripts/playermovement.gd @@ -0,0 +1,41 @@ +extends CharacterBody2D +@onready var mysprite = $AnimatedSprite2D + +const SPEED = 100.0 +const JUMP_VELOCITY = -250.0 + +func _physics_process(delta: float) -> void: + # Add the gravity. + if not is_on_floor(): + velocity += get_gravity() * delta + + # Handle jump. + if Input.is_action_just_pressed("jump") : + if is_on_floor(): + velocity.y = JUMP_VELOCITY + + # gets dir -1,0,1 + var direction := Input.get_axis("move_left", "move_right") + + #flip sprite + var flippy = direction<0 + mysprite.flip_h = flippy + + if is_on_floor(): + if direction==0: + mysprite.play("default") + else: + mysprite.play("run") + else: + mysprite.play("jump") + + + + + + if direction: + velocity.x = direction * SPEED + else: + velocity.x = move_toward(velocity.x, 0, SPEED) + + move_and_slide() diff --git a/scripts/playermovement.gd.uid b/scripts/playermovement.gd.uid new file mode 100644 index 0000000..ff48102 --- /dev/null +++ b/scripts/playermovement.gd.uid @@ -0,0 +1 @@ +uid://dfmh1h3u1186s diff --git a/scripts/slime.gd b/scripts/slime.gd new file mode 100644 index 0000000..42fcc32 --- /dev/null +++ b/scripts/slime.gd @@ -0,0 +1,24 @@ +extends Node2D + + +const SPEED = 50.0 +var direction = 1.0 + +@onready var ray_left = $raycastleft +@onready var ray_right = $raycastright +@onready var mysprite = $AnimatedSprite2D +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + print("slime..ready to eat.") + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + if ray_right.is_colliding(): + direction = -1 + mysprite.flip_h = true + if ray_left.is_colliding(): + direction = 1 + mysprite.flip_h = false + + position.x += direction * SPEED * delta diff --git a/scripts/slime.gd.uid b/scripts/slime.gd.uid new file mode 100644 index 0000000..32f22b8 --- /dev/null +++ b/scripts/slime.gd.uid @@ -0,0 +1 @@ +uid://b3qxwn2ta73vx