diff --git a/assets/enemies.png b/assets/enemies.png new file mode 100644 index 0000000..1b9d713 Binary files /dev/null and b/assets/enemies.png differ diff --git a/assets/enemies.png.import b/assets/enemies.png.import new file mode 100644 index 0000000..be4b993 --- /dev/null +++ b/assets/enemies.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ddl5f3lldrp2n" +path="res://.godot/imported/enemies.png-b9fb2fc2b2daef893df0f94ba098f0c7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/enemies.png" +dest_files=["res://.godot/imported/enemies.png-b9fb2fc2b2daef893df0f94ba098f0c7.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/sounds/01. Ground Theme.mp3 b/assets/sounds/01. Ground Theme.mp3 new file mode 100644 index 0000000..6c30c6b Binary files /dev/null and b/assets/sounds/01. Ground Theme.mp3 differ diff --git a/assets/sounds/01. Ground Theme.mp3.import b/assets/sounds/01. Ground Theme.mp3.import new file mode 100644 index 0000000..f7795c5 --- /dev/null +++ b/assets/sounds/01. Ground Theme.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cdtrw675os7dh" +path="res://.godot/imported/01. Ground Theme.mp3-d186f35a676e323584c31ac8bca8a1f2.mp3str" + +[deps] + +source_file="res://assets/sounds/01. Ground Theme.mp3" +dest_files=["res://.godot/imported/01. Ground Theme.mp3-d186f35a676e323584c31ac8bca8a1f2.mp3str"] + +[params] + +loop=true +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects.zip b/assets/sounds/NES - Super Mario Bros - Sound Effects.zip new file mode 100644 index 0000000..b6fd9bd Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects.zip differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav new file mode 100644 index 0000000..b88d33c Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav.import new file mode 100644 index 0000000..066653d --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://hl06hkxh0xim" +path="res://.godot/imported/1up.wav-f9ad1c70ec10f0ab5a8a2511fe412358.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/1up.wav" +dest_files=["res://.godot/imported/1up.wav-f9ad1c70ec10f0ab5a8a2511fe412358.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav new file mode 100644 index 0000000..aab46ad Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav.import new file mode 100644 index 0000000..b33fa88 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dq4lj7ppaxkl5" +path="res://.godot/imported/Beep.wav-a27f0efb1aaae35f4c85d5d166c04277.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Beep.wav" +dest_files=["res://.godot/imported/Beep.wav-a27f0efb1aaae35f4c85d5d166c04277.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav new file mode 100644 index 0000000..09809ab Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav.import new file mode 100644 index 0000000..c14a63b --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ccf811my3w8h5" +path="res://.godot/imported/Big Jump.wav-9c2b64d2612f77a1b3be973c96f8fb55.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Big Jump.wav" +dest_files=["res://.godot/imported/Big Jump.wav-9c2b64d2612f77a1b3be973c96f8fb55.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav new file mode 100644 index 0000000..f135a00 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav.import new file mode 100644 index 0000000..6d5e8e9 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://d2cp05wpnu1d5" +path="res://.godot/imported/Bowser Die.wav-b32cda99b7c14474eea375fdb6b43193.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bowser Die.wav" +dest_files=["res://.godot/imported/Bowser Die.wav-b32cda99b7c14474eea375fdb6b43193.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav new file mode 100644 index 0000000..a67dfdb Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav.import new file mode 100644 index 0000000..25d64bb --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkb0efnhs6mrj" +path="res://.godot/imported/Break.wav-703eda6c6b66d44e7b02232a58a846e0.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Break.wav" +dest_files=["res://.godot/imported/Break.wav-703eda6c6b66d44e7b02232a58a846e0.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav new file mode 100644 index 0000000..edb623e Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav.import new file mode 100644 index 0000000..ec520da --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://vq1g2x6id5jt" +path="res://.godot/imported/Bump.wav-144427dfa97d412ee89ee78ef8d97368.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav" +dest_files=["res://.godot/imported/Bump.wav-144427dfa97d412ee89ee78ef8d97368.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav new file mode 100644 index 0000000..f6afe21 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav.import new file mode 100644 index 0000000..02b48c1 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkfpfaqxyvcew" +path="res://.godot/imported/Coin.wav-00f9d89a928293f9fe69e4be7590f042.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav" +dest_files=["res://.godot/imported/Coin.wav-00f9d89a928293f9fe69e4be7590f042.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav new file mode 100644 index 0000000..4a3e54c Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav.import new file mode 100644 index 0000000..b5fda45 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b0h07g0c8i84c" +path="res://.godot/imported/Die.wav-ee5f65dc16dc7b46d183403182739147.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav" +dest_files=["res://.godot/imported/Die.wav-ee5f65dc16dc7b46d183403182739147.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav new file mode 100644 index 0000000..d00309c Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav.import new file mode 100644 index 0000000..e7df3d9 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://csx5laixrg5dh" +path="res://.godot/imported/Enemy Fire.wav-e8c4b628bf1dbff4bb058556d3012153.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav" +dest_files=["res://.godot/imported/Enemy Fire.wav-e8c4b628bf1dbff4bb058556d3012153.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav new file mode 100644 index 0000000..2116b4a Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav.import new file mode 100644 index 0000000..78ea045 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://si212xxdt3wk" +path="res://.godot/imported/Fire Ball.wav-625392bfe6a2dd35a2f519d175321189.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Fire Ball.wav" +dest_files=["res://.godot/imported/Fire Ball.wav-625392bfe6a2dd35a2f519d175321189.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav new file mode 100644 index 0000000..55fe798 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav.import new file mode 100644 index 0000000..4421e0f --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dxcgpdwcnwi5l" +path="res://.godot/imported/Flagpole.wav-f2b62767c06845d08211323b884bbbe2.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Flagpole.wav" +dest_files=["res://.godot/imported/Flagpole.wav-f2b62767c06845d08211323b884bbbe2.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav new file mode 100644 index 0000000..7a4d2db Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav.import new file mode 100644 index 0000000..a9dcee8 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://pkqxx78hapcy" +path="res://.godot/imported/Game Over.wav-fc3f81f0365591e273b517192deed82a.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Game Over.wav" +dest_files=["res://.godot/imported/Game Over.wav-fc3f81f0365591e273b517192deed82a.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav new file mode 100644 index 0000000..35d780d Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav.import new file mode 100644 index 0000000..36703be --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dxkgvntopojbo" +path="res://.godot/imported/Item.wav-35f24d00d8bda6ca8ab4b1b44bf3131b.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Item.wav" +dest_files=["res://.godot/imported/Item.wav-35f24d00d8bda6ca8ab4b1b44bf3131b.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav new file mode 100644 index 0000000..4874612 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav.import new file mode 100644 index 0000000..4e0be5b --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bo4big602rvtr" +path="res://.godot/imported/Jump.wav-5eda527dd659c17671eaf6ff25f6971c.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav" +dest_files=["res://.godot/imported/Jump.wav-5eda527dd659c17671eaf6ff25f6971c.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav new file mode 100644 index 0000000..0af5e96 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav.import new file mode 100644 index 0000000..5905e41 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bh8t167vl6j2n" +path="res://.godot/imported/Kick.wav-d48c9144ca2943ac6f77a0f7ba664624.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav" +dest_files=["res://.godot/imported/Kick.wav-d48c9144ca2943ac6f77a0f7ba664624.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav new file mode 100644 index 0000000..534d7a3 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav.import new file mode 100644 index 0000000..bf91c8e --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c6ll1uajg15nv" +path="res://.godot/imported/Pause.wav-209413c87a4a9baf605062e38966c466.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Pause.wav" +dest_files=["res://.godot/imported/Pause.wav-209413c87a4a9baf605062e38966c466.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav new file mode 100644 index 0000000..7dba329 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav.import new file mode 100644 index 0000000..1bed865 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dr8w21sjl0a7" +path="res://.godot/imported/Powerup.wav-9fcfe1bb796417a5e555dc047f3c8621.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav" +dest_files=["res://.godot/imported/Powerup.wav-9fcfe1bb796417a5e555dc047f3c8621.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav new file mode 100644 index 0000000..bef5bdc Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav.import new file mode 100644 index 0000000..8d9af6e --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dxllg8cbulxp" +path="res://.godot/imported/Skid.wav-c954f104c1bea97484f7c643c42e1f60.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Skid.wav" +dest_files=["res://.godot/imported/Skid.wav-c954f104c1bea97484f7c643c42e1f60.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav new file mode 100644 index 0000000..7be6f6e Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav.import new file mode 100644 index 0000000..7fe4e40 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://m6482l4ehwc8" +path="res://.godot/imported/Squish.wav-d1db1695f5640cafa4bc78fe4a36041d.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Squish.wav" +dest_files=["res://.godot/imported/Squish.wav-d1db1695f5640cafa4bc78fe4a36041d.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav new file mode 100644 index 0000000..2737a4a Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav.import new file mode 100644 index 0000000..d71cf31 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://du1roe3hwohmh" +path="res://.godot/imported/Thwomp.wav-8656908d6370e768461ba0a723170059.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Thwomp.wav" +dest_files=["res://.godot/imported/Thwomp.wav-8656908d6370e768461ba0a723170059.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav new file mode 100644 index 0000000..96b75fc Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav.import new file mode 100644 index 0000000..fe3d61d --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bl10sjkccc406" +path="res://.godot/imported/Vine.wav-36a994d735585adbfb4847f7e05b0bb8.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Vine.wav" +dest_files=["res://.godot/imported/Vine.wav-36a994d735585adbfb4847f7e05b0bb8.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=0 diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav new file mode 100644 index 0000000..bd5e3d9 Binary files /dev/null and b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav differ diff --git a/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav.import b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav.import new file mode 100644 index 0000000..1fc9634 --- /dev/null +++ b/assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cbs4okawh444d" +path="res://.godot/imported/Warp.wav-64973765d20e3f4e6961c27794443362.sample" + +[deps] + +source_file="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav" +dest_files=["res://.godot/imported/Warp.wav-64973765d20e3f4e6961c27794443362.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=0 diff --git a/scenes/coin.tscn b/scenes/coin.tscn index 8189634..434436a 100644 --- a/scenes/coin.tscn +++ b/scenes/coin.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=9 format=3 uid="uid://nm5keea43u56"] +[gd_scene load_steps=13 format=3 uid="uid://nm5keea43u56"] [ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_lffao"] [ext_resource type="Script" path="res://scripts/coin.gd" id="1_qn7es"] +[ext_resource type="AudioStream" uid="uid://dkfpfaqxyvcew" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Coin.wav" id="3_ioelm"] [sub_resource type="AtlasTexture" id="AtlasTexture_7xy4l"] atlas = ExtResource("1_lffao") @@ -42,6 +43,103 @@ animations = [{ [sub_resource type="CircleShape2D" id="CircleShape2D_vpcnk"] radius = 7.0 +[sub_resource type="Animation" id="Animation_ota62"] +resource_name = "pickup" +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(1), +"transitions": PackedFloat32Array(1), +"values": [{ +"args": [], +"method": &"queue_free" +}] +} + +[sub_resource type="Animation" id="Animation_km6nk"] +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 = false +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] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_whr3u"] +_data = { +"RESET": SubResource("Animation_km6nk"), +"pickup": SubResource("Animation_ota62") +} + [node name="Coin" type="Area2D"] collision_mask = 2 script = ExtResource("1_qn7es") @@ -56,4 +154,12 @@ autoplay = "idle" position = Vector2(8, -8) shape = SubResource("CircleShape2D_vpcnk") +[node name="PickupSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_ioelm") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_whr3u") +} + [connection signal="body_entered" from="." to="." method="_on_body_entered"] diff --git a/scenes/gumba.tscn b/scenes/gumba.tscn new file mode 100644 index 0000000..1872007 --- /dev/null +++ b/scenes/gumba.tscn @@ -0,0 +1,100 @@ +[gd_scene load_steps=10 format=3 uid="uid://cwviqxncs4fom"] + +[ext_resource type="Texture2D" uid="uid://ddl5f3lldrp2n" path="res://assets/enemies.png" id="1_fe7l6"] +[ext_resource type="Script" path="res://scripts/gumba.gd" id="1_o30u3"] +[ext_resource type="AudioStream" uid="uid://vq1g2x6id5jt" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Bump.wav" id="3_7yqeq"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_srbv5"] +atlas = ExtResource("1_fe7l6") +region = Rect2(0, 4, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_v5sjp"] +atlas = ExtResource("1_fe7l6") +region = Rect2(30, 4, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_iyg37"] +atlas = ExtResource("1_fe7l6") +region = Rect2(60, 4, 16, 16) + +[sub_resource type="SpriteFrames" id="SpriteFrames_xnecu"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_srbv5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_v5sjp") +}], +"loop": true, +"name": &"default", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_iyg37") +}], +"loop": true, +"name": &"die", +"speed": 5.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_l4q7u"] +radius = 8.0 + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_oec64"] +size = Vector2(10, 0.5) + +[node name="Gumba" type="RigidBody2D"] +collision_layer = 8 +lock_rotation = true +script = ExtResource("1_o30u3") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +position = Vector2(8, -8) +sprite_frames = SubResource("SpriteFrames_xnecu") +autoplay = "default" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(8, -8) +shape = SubResource("CircleShape2D_l4q7u") + +[node name="RayCastLeft" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(-9, 0) +collision_mask = 17 + +[node name="RayCastLeft2" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(-9, 0) +collision_mask = 2 + +[node name="RayCastRight" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(9, 0) +collision_mask = 17 + +[node name="RayCastRight2" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(9, 0) +collision_mask = 2 + +[node name="Timer" type="Timer" parent="."] +wait_time = 0.5 +one_shot = true + +[node name="die" type="Area2D" parent="."] +collision_mask = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="die"] +position = Vector2(8, -16.25) +shape = SubResource("RectangleShape2D_oec64") + +[node name="Timer2" type="Timer" parent="."] +one_shot = true + +[node name="dieSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_7yqeq") + +[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] +[connection signal="body_entered" from="die" to="." method="_on_die_body_entered"] +[connection signal="timeout" from="Timer2" to="." method="_on_timer_2_timeout"] diff --git a/scenes/level_1.tscn b/scenes/level_1.tscn index 5ce58fc..766aa92 100644 --- a/scenes/level_1.tscn +++ b/scenes/level_1.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://dv50be68omp73"] +[gd_scene load_steps=13 format=3 uid="uid://dv50be68omp73"] [ext_resource type="Texture2D" uid="uid://chrld8oybp4me" path="res://assets/bg-1-1.png" id="1_rxc3r"] [ext_resource type="PackedScene" uid="uid://dk1aby88pygtr" path="res://scenes/player.tscn" id="2_ru48y"] @@ -6,6 +6,9 @@ [ext_resource type="PackedScene" uid="uid://b6piduuvusiix" path="res://scenes/destroyblock.tscn" id="4_4f23w"] [ext_resource type="PackedScene" uid="uid://be832pldgbeyk" path="res://scenes/pipe.tscn" id="5_31d8i"] [ext_resource type="PackedScene" uid="uid://nm5keea43u56" path="res://scenes/coin.tscn" id="6_evydd"] +[ext_resource type="PackedScene" uid="uid://b4dp88urmm7g8" path="res://scenes/mushroom.tscn" id="7_rk0p2"] +[ext_resource type="PackedScene" uid="uid://cwviqxncs4fom" path="res://scenes/gumba.tscn" id="8_be76n"] +[ext_resource type="AudioStream" uid="uid://cdtrw675os7dh" path="res://assets/sounds/01. Ground Theme.mp3" id="9_xkthi"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_sdqov"] texture = ExtResource("1_rxc3r") @@ -19049,6 +19052,9 @@ texture = ExtResource("1_rxc3r") physics_layer_0/collision_layer = 1 sources/1 = SubResource("TileSetAtlasSource_sdqov") +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ipe5j"] +size = Vector2(16, 16) + [node name="level1" type="Node2D"] [node name="TileMap" type="TileMap" parent="."] @@ -19067,24 +19073,28 @@ position = Vector2(1, -90) [node name="itemblock" parent="interactable_blocks" instance=ExtResource("3_fmbwm")] position = Vector2(96, -48) +hit_object = ExtResource("6_evydd") [node name="destroyblock" parent="interactable_blocks" instance=ExtResource("4_4f23w")] position = Vector2(160, -48) [node name="itemblock2" parent="interactable_blocks" instance=ExtResource("3_fmbwm")] position = Vector2(176, -48) +hit_object = ExtResource("7_rk0p2") [node name="destroyblock2" parent="interactable_blocks" instance=ExtResource("4_4f23w")] position = Vector2(192, -48) [node name="itemblock3" parent="interactable_blocks" instance=ExtResource("3_fmbwm")] position = Vector2(208, -48) +hit_object = ExtResource("6_evydd") [node name="destroyblock3" parent="interactable_blocks" instance=ExtResource("4_4f23w")] position = Vector2(224, -48) [node name="itemblock4" parent="interactable_blocks" instance=ExtResource("3_fmbwm")] position = Vector2(192, -112) +hit_object = ExtResource("6_evydd") [node name="itemblock5" parent="interactable_blocks" instance=ExtResource("3_fmbwm")] position = Vector2(1168, -48) @@ -19261,3 +19271,40 @@ position = Vector2(736, 128) [node name="Coin19" parent="coins" instance=ExtResource("6_evydd")] position = Vector2(752, 128) + +[node name="Gumba" parent="." instance=ExtResource("8_be76n")] +position = Vector2(272, 0) + +[node name="Gumba2" parent="." instance=ExtResource("8_be76n")] +position = Vector2(736, 0) + +[node name="Gumba3" parent="." instance=ExtResource("8_be76n")] +position = Vector2(768, 0) + +[node name="invisible_barriers" type="Node" parent="."] + +[node name="StaticBody2D" type="StaticBody2D" parent="invisible_barriers"] +position = Vector2(1056, -16) +collision_layer = 16 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="invisible_barriers/StaticBody2D"] +position = Vector2(-8, 8) +shape = SubResource("RectangleShape2D_ipe5j") + +[node name="StaticBody2D2" type="StaticBody2D" parent="invisible_barriers"] +position = Vector2(1312, -16) +collision_layer = 16 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="invisible_barriers/StaticBody2D2"] +position = Vector2(-8, 8) +shape = SubResource("RectangleShape2D_ipe5j") + +[node name="Gumba4" parent="." instance=ExtResource("8_be76n")] +position = Vector2(1120, 0) + +[node name="Gumba5" parent="." instance=ExtResource("8_be76n")] +position = Vector2(1152, 0) + +[node name="Music" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("9_xkthi") +autoplay = true diff --git a/scenes/mushroom.tscn b/scenes/mushroom.tscn new file mode 100644 index 0000000..a5d8f7e --- /dev/null +++ b/scenes/mushroom.tscn @@ -0,0 +1,140 @@ +[gd_scene load_steps=11 format=3 uid="uid://b4dp88urmm7g8"] + +[ext_resource type="Script" path="res://scripts/mushroom.gd" id="1_5wbjm"] +[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_tsecc"] +[ext_resource type="AudioStream" uid="uid://dr8w21sjl0a7" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Powerup.wav" id="3_ad473"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_i8bax"] +atlas = ExtResource("1_tsecc") +region = Rect2(184, 34, 16, 16) + +[sub_resource type="SpriteFrames" id="SpriteFrames_s232e"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_i8bax") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_ubrn0"] +radius = 8.0 + +[sub_resource type="CircleShape2D" id="CircleShape2D_drsli"] +radius = 9.0 + +[sub_resource type="Animation" id="Animation_fqoi0"] +resource_name = "pickup" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("pickupSound:playing") +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("AnimatedSprite2D:visible") +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 = "method" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath(".") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(1), +"transitions": PackedFloat32Array(1), +"values": [{ +"args": [], +"method": &"queue_free" +}] +} + +[sub_resource type="Animation" id="Animation_2r0ts"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("pickupSound:playing") +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("AnimatedSprite2D:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_gubc7"] +_data = { +"RESET": SubResource("Animation_2r0ts"), +"pickup": SubResource("Animation_fqoi0") +} + +[node name="mushroom" type="RigidBody2D"] +collision_layer = 8 +lock_rotation = true +script = ExtResource("1_5wbjm") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +position = Vector2(8, -8) +sprite_frames = SubResource("SpriteFrames_s232e") +autoplay = "default" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(8, -8) +shape = SubResource("CircleShape2D_ubrn0") + +[node name="RayCastLeft" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(-9, 0) + +[node name="RayCastRight" type="RayCast2D" parent="."] +position = Vector2(8, -8) +target_position = Vector2(9, 0) + +[node name="Area2D" type="Area2D" parent="."] +collision_layer = 8 +collision_mask = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +position = Vector2(8, -8) +shape = SubResource("CircleShape2D_drsli") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_gubc7") +} + +[node name="pickupSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_ad473") + +[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"] diff --git a/scenes/player.tscn b/scenes/player.tscn index 5f84a85..26730c2 100644 --- a/scenes/player.tscn +++ b/scenes/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=15 format=3 uid="uid://dk1aby88pygtr"] +[gd_scene load_steps=20 format=3 uid="uid://dk1aby88pygtr"] [ext_resource type="Script" path="res://scripts/player.gd" id="1_lm7ix"] [ext_resource type="Texture2D" uid="uid://dhw3lpuskbvku" path="res://assets/mario-luigi-4.png" id="1_w3chr"] @@ -13,10 +13,18 @@ region = Rect2(182, 34, 16, 16) atlas = ExtResource("1_w3chr") region = Rect2(80, 34, 16, 16) +[sub_resource type="AtlasTexture" id="AtlasTexture_wfnj7"] +atlas = ExtResource("1_w3chr") +region = Rect2(80, 1, 16, 32) + [sub_resource type="AtlasTexture" id="AtlasTexture_dmbgr"] atlas = ExtResource("1_w3chr") region = Rect2(165, 34, 16, 16) +[sub_resource type="AtlasTexture" id="AtlasTexture_t247e"] +atlas = ExtResource("1_w3chr") +region = Rect2(165, 1, 16, 32) + [sub_resource type="AtlasTexture" id="AtlasTexture_jb1pe"] atlas = ExtResource("1_w3chr") region = Rect2(97, 34, 16, 16) @@ -29,6 +37,18 @@ region = Rect2(114, 34, 16, 16) atlas = ExtResource("1_w3chr") region = Rect2(131, 34, 16, 16) +[sub_resource type="AtlasTexture" id="AtlasTexture_jagc4"] +atlas = ExtResource("1_w3chr") +region = Rect2(97, 1, 16, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x07x8"] +atlas = ExtResource("1_w3chr") +region = Rect2(114, 1, 16, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6y472"] +atlas = ExtResource("1_w3chr") +region = Rect2(131, 1, 16, 32) + [sub_resource type="SpriteFrames" id="SpriteFrames_l5s58"] animations = [{ "frames": [{ @@ -49,6 +69,14 @@ animations = [{ }, { "frames": [{ "duration": 1.0, +"texture": SubResource("AtlasTexture_wfnj7") +}], +"loop": true, +"name": &"idle_big", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, "texture": SubResource("AtlasTexture_dmbgr") }], "loop": true, @@ -57,6 +85,14 @@ animations = [{ }, { "frames": [{ "duration": 1.0, +"texture": SubResource("AtlasTexture_t247e") +}], +"loop": true, +"name": &"jump_big", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, "texture": SubResource("AtlasTexture_jb1pe") }, { "duration": 1.0, @@ -68,6 +104,20 @@ animations = [{ "loop": true, "name": &"run", "speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_jagc4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x07x8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6y472") +}], +"loop": true, +"name": &"run_big", +"speed": 10.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4sl4a"] @@ -104,7 +154,7 @@ color = Color(0, 0, 0, 1) [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] position = Vector2(0, 2) sprite_frames = SubResource("SpriteFrames_l5s58") -animation = &"jump" +animation = &"idle_big" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 2) diff --git a/scripts/coin.gd b/scripts/coin.gd index 971aecd..37197f5 100644 --- a/scripts/coin.gd +++ b/scripts/coin.gd @@ -1,8 +1,9 @@ extends Area2D +@onready var animation_player = $AnimationPlayer func collect_coin(body): body.increase_coins() - queue_free() + animation_player.play("pickup") func _on_body_entered(body): collect_coin(body) diff --git a/scripts/destroyblock.gd b/scripts/destroyblock.gd index e5b3e2c..ceff86e 100644 --- a/scripts/destroyblock.gd +++ b/scripts/destroyblock.gd @@ -6,4 +6,5 @@ func _ready(): animated_sprite_2d.play("default") func _on_activate_body_entered(body): - queue_free() + if body.is_big: + queue_free() diff --git a/scripts/gumba.gd b/scripts/gumba.gd new file mode 100644 index 0000000..a298fc8 --- /dev/null +++ b/scripts/gumba.gd @@ -0,0 +1,56 @@ +extends RigidBody2D + +@export var speed = -70 +@onready var ray_cast_left = $RayCastLeft +@onready var ray_cast_right = $RayCastRight +@onready var animated_sprite_2d = $AnimatedSprite2D +@onready var timer = $Timer +@onready var die = $die +@onready var ray_cast_left_2 = $RayCastLeft2 +@onready var ray_cast_right_2 = $RayCastRight2 +var innocent = false +@onready var timer_2 = $Timer2 + +func _physics_process(delta): + linear_velocity.x = speed + + if ray_cast_left_2 == null: + return + + if ray_cast_left.is_colliding() or ray_cast_left_2.is_colliding(): + speed = abs(speed) + elif ray_cast_right.is_colliding() or ray_cast_right_2.is_colliding(): + speed = abs(speed) * -1 + + var body = null + if innocent: + return + if ray_cast_left_2.is_colliding(): + body = ray_cast_left_2.get_collider() + elif ray_cast_right_2.is_colliding(): + body = ray_cast_right_2.get_collider() + if body != null: + body.shrink() + innocent = true + timer_2.start() + +@onready var die_sound = $dieSound + +func f_die(): + speed = 0 + animated_sprite_2d.play("die") + timer.start() + die.queue_free() + die_sound.play() + ray_cast_left_2.queue_free() + ray_cast_right_2.queue_free() + +func _on_die_body_entered(body): + f_die() + body.velocity.y = body.JUMPt_velocity/1.5 + +func _on_timer_timeout(): + queue_free() + +func _on_timer_2_timeout(): + innocent = false diff --git a/scripts/itemblock.gd b/scripts/itemblock.gd index f329bad..c62eb68 100644 --- a/scripts/itemblock.gd +++ b/scripts/itemblock.gd @@ -1,5 +1,6 @@ extends RigidBody2D @onready var animated_sprite_2d = $AnimatedSprite2D +@export var hit_object:PackedScene var destroyed = false @@ -12,3 +13,10 @@ func _on_activate_body_entered(body): destroyed = true animated_sprite_2d.play("destroy") + + if hit_object == null: + return + + var instance = hit_object.instantiate() + add_child(instance) + instance.position.y -= 17 diff --git a/scripts/mushroom.gd b/scripts/mushroom.gd new file mode 100644 index 0000000..0a1d2ba --- /dev/null +++ b/scripts/mushroom.gd @@ -0,0 +1,20 @@ +extends RigidBody2D + +@export var speed = 70 +@onready var ray_cast_left = $RayCastLeft +@onready var ray_cast_right = $RayCastRight +@onready var animation_player = $AnimationPlayer + +func _physics_process(delta): + linear_velocity.x = speed + + if ray_cast_left.is_colliding(): + speed = abs(speed) + elif ray_cast_right.is_colliding(): + speed = abs(speed) * -1 + + +func _on_area_2d_body_entered(body): + body.grow() + speed = 0 + animation_player.play("pickup") diff --git a/scripts/player.gd b/scripts/player.gd index 2f93649..abbad5c 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -5,6 +5,8 @@ extends CharacterBody2D @onready var pipe_timer = $pipe_timer @onready var pipe_timer_half = $pipe_timer_half @onready var coin_amt = $CanvasLayer/Control/CoinAmt +@onready var collision_shape_2d = $CollisionShape2D +@onready var pipedetector_ground = $pipedetector_ground const SPEED = 130.0 @@ -19,6 +21,7 @@ var coins = 0 # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") var on_pause = false +var is_big = false # touch controls var touch_anchor = Vector2.ZERO @@ -96,11 +99,20 @@ func _physics_process(delta): # play animation if is_on_floor(): if direction != 0: - animated_sprite_2d.play("run") + if is_big: + animated_sprite_2d.play("run_big") + else: + animated_sprite_2d.play("run") else: - animated_sprite_2d.play("idle") + if is_big: + animated_sprite_2d.play("idle_big") + else: + animated_sprite_2d.play("idle") else: - animated_sprite_2d.play("jump") + if is_big: + animated_sprite_2d.play("jump_big") + else: + animated_sprite_2d.play("jump") if direction: velocity.x = direction * SPEED @@ -109,6 +121,17 @@ func _physics_process(delta): move_and_slide() +func grow(): + is_big = true + collision_shape_2d.shape.height = 32 + pipedetector_ground.position.y += 8 + +func shrink(): + if is_big: + is_big = false + collision_shape_2d.shape.height = 16 + pipedetector_ground.position.y -= 8 + func increase_coins(): coins += 1 coin_amt.text = str(coins)