commit 431d51726f7ef7a3f66f4408b6760f632d0f403f Author: Julianlozafermin Date: Tue Nov 12 18:51:04 2024 +0100 PRIMER COMMIT 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/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg b/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg new file mode 100644 index 0000000..eec16bc Binary files /dev/null and b/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg differ diff --git a/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg.import b/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg.import new file mode 100644 index 0000000..8896a28 --- /dev/null +++ b/BGM-SFX/01_-_Contra_-_NES_-_Title.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://c6xdocgeumijg" +path="res://.godot/imported/01_-_Contra_-_NES_-_Title.ogg-35980cf5556e9bb3ccd9237a0eebd257.oggvorbisstr" + +[deps] + +source_file="res://BGM-SFX/01_-_Contra_-_NES_-_Title.ogg" +dest_files=["res://.godot/imported/01_-_Contra_-_NES_-_Title.ogg-35980cf5556e9bb3ccd9237a0eebd257.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg b/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg new file mode 100644 index 0000000..3b11c71 Binary files /dev/null and b/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg differ diff --git a/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg.import b/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg.import new file mode 100644 index 0000000..963dabe --- /dev/null +++ b/BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://buick78fh6ono" +path="res://.godot/imported/03_-_Contra_-_NES_-_Jungle.ogg-51729c44753525bcf09920b6a1ff8a88.oggvorbisstr" + +[deps] + +source_file="res://BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg" +dest_files=["res://.godot/imported/03_-_Contra_-_NES_-_Jungle.ogg-51729c44753525bcf09920b6a1ff8a88.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg b/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg new file mode 100644 index 0000000..f4d60c5 Binary files /dev/null and b/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg differ diff --git a/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg.import b/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg.import new file mode 100644 index 0000000..02e440f --- /dev/null +++ b/BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bfg6xiqjtn21e" +path="res://.godot/imported/10_-_Contra_-_NES_-_Stage_Clear.ogg-55dd80d47ef2cb948b432f8a2722c36e.oggvorbisstr" + +[deps] + +source_file="res://BGM-SFX/10_-_Contra_-_NES_-_Stage_Clear.ogg" +dest_files=["res://.godot/imported/10_-_Contra_-_NES_-_Stage_Clear.ogg-55dd80d47ef2cb948b432f8a2722c36e.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg b/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg new file mode 100644 index 0000000..11eb4be Binary files /dev/null and b/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg differ diff --git a/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg.import b/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg.import new file mode 100644 index 0000000..162a332 --- /dev/null +++ b/BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bfgv4rmbq256v" +path="res://.godot/imported/11_-_Contra_-_NES_-_Game_Over.ogg-463f37e8f2f01fbfc0ba53c03fcc48f9.oggvorbisstr" + +[deps] + +source_file="res://BGM-SFX/11_-_Contra_-_NES_-_Game_Over.ogg" +dest_files=["res://.godot/imported/11_-_Contra_-_NES_-_Game_Over.ogg-463f37e8f2f01fbfc0ba53c03fcc48f9.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/BGM-SFX/Contra SFX (10).wav b/BGM-SFX/Contra SFX (10).wav new file mode 100644 index 0000000..43e7f7b Binary files /dev/null and b/BGM-SFX/Contra SFX (10).wav differ diff --git a/BGM-SFX/Contra SFX (10).wav.import b/BGM-SFX/Contra SFX (10).wav.import new file mode 100644 index 0000000..36d07d3 --- /dev/null +++ b/BGM-SFX/Contra SFX (10).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cbrnse2ul2vn4" +path="res://.godot/imported/Contra SFX (10).wav-88f46ff2ea0fa656f181ddb4c50f4aa6.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (10).wav" +dest_files=["res://.godot/imported/Contra SFX (10).wav-88f46ff2ea0fa656f181ddb4c50f4aa6.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/BGM-SFX/Contra SFX (12).wav b/BGM-SFX/Contra SFX (12).wav new file mode 100644 index 0000000..835c72d Binary files /dev/null and b/BGM-SFX/Contra SFX (12).wav differ diff --git a/BGM-SFX/Contra SFX (12).wav.import b/BGM-SFX/Contra SFX (12).wav.import new file mode 100644 index 0000000..c1aee31 --- /dev/null +++ b/BGM-SFX/Contra SFX (12).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bos3aiooloiad" +path="res://.godot/imported/Contra SFX (12).wav-0aba2a47b7fdd7fc7ffbceb3a0dd7742.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (12).wav" +dest_files=["res://.godot/imported/Contra SFX (12).wav-0aba2a47b7fdd7fc7ffbceb3a0dd7742.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/BGM-SFX/Contra SFX (13).wav b/BGM-SFX/Contra SFX (13).wav new file mode 100644 index 0000000..f8c9784 Binary files /dev/null and b/BGM-SFX/Contra SFX (13).wav differ diff --git a/BGM-SFX/Contra SFX (13).wav.import b/BGM-SFX/Contra SFX (13).wav.import new file mode 100644 index 0000000..d055876 --- /dev/null +++ b/BGM-SFX/Contra SFX (13).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c4ppyu1lal0js" +path="res://.godot/imported/Contra SFX (13).wav-d63e25a1b708476da4e7a530952cb70e.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (13).wav" +dest_files=["res://.godot/imported/Contra SFX (13).wav-d63e25a1b708476da4e7a530952cb70e.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/BGM-SFX/Contra SFX (14).wav b/BGM-SFX/Contra SFX (14).wav new file mode 100644 index 0000000..8c47aa6 Binary files /dev/null and b/BGM-SFX/Contra SFX (14).wav differ diff --git a/BGM-SFX/Contra SFX (14).wav.import b/BGM-SFX/Contra SFX (14).wav.import new file mode 100644 index 0000000..5e32a32 --- /dev/null +++ b/BGM-SFX/Contra SFX (14).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://fk3c8vl61ylr" +path="res://.godot/imported/Contra SFX (14).wav-0f3d3720bca18b07f85c5d0f4f1748f9.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (14).wav" +dest_files=["res://.godot/imported/Contra SFX (14).wav-0f3d3720bca18b07f85c5d0f4f1748f9.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/BGM-SFX/Contra SFX (15).wav b/BGM-SFX/Contra SFX (15).wav new file mode 100644 index 0000000..8e7fff3 Binary files /dev/null and b/BGM-SFX/Contra SFX (15).wav differ diff --git a/BGM-SFX/Contra SFX (15).wav.import b/BGM-SFX/Contra SFX (15).wav.import new file mode 100644 index 0000000..3958859 --- /dev/null +++ b/BGM-SFX/Contra SFX (15).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dl50lvss7ndnp" +path="res://.godot/imported/Contra SFX (15).wav-bd79614139fe3928c6cf81178ae304b9.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (15).wav" +dest_files=["res://.godot/imported/Contra SFX (15).wav-bd79614139fe3928c6cf81178ae304b9.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/BGM-SFX/Contra SFX (18).wav b/BGM-SFX/Contra SFX (18).wav new file mode 100644 index 0000000..bb035db Binary files /dev/null and b/BGM-SFX/Contra SFX (18).wav differ diff --git a/BGM-SFX/Contra SFX (18).wav.import b/BGM-SFX/Contra SFX (18).wav.import new file mode 100644 index 0000000..289b930 --- /dev/null +++ b/BGM-SFX/Contra SFX (18).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://by5830tstw0y7" +path="res://.godot/imported/Contra SFX (18).wav-4359ff6a37f6f5e9154b7390a2efddf1.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (18).wav" +dest_files=["res://.godot/imported/Contra SFX (18).wav-4359ff6a37f6f5e9154b7390a2efddf1.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/BGM-SFX/Contra SFX (19).wav b/BGM-SFX/Contra SFX (19).wav new file mode 100644 index 0000000..acf13a8 Binary files /dev/null and b/BGM-SFX/Contra SFX (19).wav differ diff --git a/BGM-SFX/Contra SFX (19).wav.import b/BGM-SFX/Contra SFX (19).wav.import new file mode 100644 index 0000000..5ab35d2 --- /dev/null +++ b/BGM-SFX/Contra SFX (19).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cvf3s8lskc1gf" +path="res://.godot/imported/Contra SFX (19).wav-ec1d3f5397eff073541dcef3ae904c36.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (19).wav" +dest_files=["res://.godot/imported/Contra SFX (19).wav-ec1d3f5397eff073541dcef3ae904c36.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/BGM-SFX/Contra SFX (2).wav b/BGM-SFX/Contra SFX (2).wav new file mode 100644 index 0000000..69418cb Binary files /dev/null and b/BGM-SFX/Contra SFX (2).wav differ diff --git a/BGM-SFX/Contra SFX (2).wav.import b/BGM-SFX/Contra SFX (2).wav.import new file mode 100644 index 0000000..eb4f7e8 --- /dev/null +++ b/BGM-SFX/Contra SFX (2).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://durqufkgt8bvq" +path="res://.godot/imported/Contra SFX (2).wav-fbd57cd966f38865484db0a5a99050a1.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (2).wav" +dest_files=["res://.godot/imported/Contra SFX (2).wav-fbd57cd966f38865484db0a5a99050a1.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/BGM-SFX/Contra SFX (22).wav b/BGM-SFX/Contra SFX (22).wav new file mode 100644 index 0000000..1f3ba0e Binary files /dev/null and b/BGM-SFX/Contra SFX (22).wav differ diff --git a/BGM-SFX/Contra SFX (22).wav.import b/BGM-SFX/Contra SFX (22).wav.import new file mode 100644 index 0000000..239f805 --- /dev/null +++ b/BGM-SFX/Contra SFX (22).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bcuxibpeo6cu5" +path="res://.godot/imported/Contra SFX (22).wav-7faf61530a7c5c86d40535d24b3d32a6.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (22).wav" +dest_files=["res://.godot/imported/Contra SFX (22).wav-7faf61530a7c5c86d40535d24b3d32a6.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/BGM-SFX/Contra SFX (29).wav b/BGM-SFX/Contra SFX (29).wav new file mode 100644 index 0000000..44c2da7 Binary files /dev/null and b/BGM-SFX/Contra SFX (29).wav differ diff --git a/BGM-SFX/Contra SFX (29).wav.import b/BGM-SFX/Contra SFX (29).wav.import new file mode 100644 index 0000000..1ba2f3d --- /dev/null +++ b/BGM-SFX/Contra SFX (29).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://maxdqq2n72io" +path="res://.godot/imported/Contra SFX (29).wav-b9cb7cd45bbd6ee8ccaeedf1c3ccb0b7.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (29).wav" +dest_files=["res://.godot/imported/Contra SFX (29).wav-b9cb7cd45bbd6ee8ccaeedf1c3ccb0b7.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/BGM-SFX/Contra SFX (9).wav b/BGM-SFX/Contra SFX (9).wav new file mode 100644 index 0000000..4adacb6 Binary files /dev/null and b/BGM-SFX/Contra SFX (9).wav differ diff --git a/BGM-SFX/Contra SFX (9).wav.import b/BGM-SFX/Contra SFX (9).wav.import new file mode 100644 index 0000000..1257b11 --- /dev/null +++ b/BGM-SFX/Contra SFX (9).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://wy28dhu5jvdr" +path="res://.godot/imported/Contra SFX (9).wav-73cb587e71e219aaf3ba025ea0cc2856.sample" + +[deps] + +source_file="res://BGM-SFX/Contra SFX (9).wav" +dest_files=["res://.godot/imported/Contra SFX (9).wav-73cb587e71e219aaf3ba025ea0cc2856.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/BGM-SFX/Super C SFX (12).wav b/BGM-SFX/Super C SFX (12).wav new file mode 100644 index 0000000..c4af679 Binary files /dev/null and b/BGM-SFX/Super C SFX (12).wav differ diff --git a/BGM-SFX/Super C SFX (12).wav.import b/BGM-SFX/Super C SFX (12).wav.import new file mode 100644 index 0000000..daabe02 --- /dev/null +++ b/BGM-SFX/Super C SFX (12).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dcnaj44fxtsp" +path="res://.godot/imported/Super C SFX (12).wav-9a14d22f4595ae16fa7b872d60805a09.sample" + +[deps] + +source_file="res://BGM-SFX/Super C SFX (12).wav" +dest_files=["res://.godot/imported/Super C SFX (12).wav-9a14d22f4595ae16fa7b872d60805a09.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/BGM-SFX/Super C SFX (13).wav b/BGM-SFX/Super C SFX (13).wav new file mode 100644 index 0000000..ecd4703 Binary files /dev/null and b/BGM-SFX/Super C SFX (13).wav differ diff --git a/BGM-SFX/Super C SFX (13).wav.import b/BGM-SFX/Super C SFX (13).wav.import new file mode 100644 index 0000000..6d88efc --- /dev/null +++ b/BGM-SFX/Super C SFX (13).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://do6eyu6e3k8af" +path="res://.godot/imported/Super C SFX (13).wav-b5ce2d07020ca660090646f51cbe2b82.sample" + +[deps] + +source_file="res://BGM-SFX/Super C SFX (13).wav" +dest_files=["res://.godot/imported/Super C SFX (13).wav-b5ce2d07020ca660090646f51cbe2b82.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/Font/PressStart2P.ttf b/Font/PressStart2P.ttf new file mode 100644 index 0000000..98044e9 Binary files /dev/null and b/Font/PressStart2P.ttf differ diff --git a/Font/PressStart2P.ttf.import b/Font/PressStart2P.ttf.import new file mode 100644 index 0000000..18c76fa --- /dev/null +++ b/Font/PressStart2P.ttf.import @@ -0,0 +1,34 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://l5qkyo43m28e" +path="res://.godot/imported/PressStart2P.ttf-536ec68fbb2e86aeb7eaab44897a9514.fontdata" + +[deps] + +source_file="res://Font/PressStart2P.ttf" +dest_files=["res://.godot/imported/PressStart2P.ttf-536ec68fbb2e86aeb7eaab44897a9514.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=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/Scripts/Boss.gd b/Scripts/Boss.gd new file mode 100644 index 0000000..afe9ac2 --- /dev/null +++ b/Scripts/Boss.gd @@ -0,0 +1,59 @@ +extends Node2D + +var turret1 = 3 +var turret2 = 3 +var core = 10 + +var turn = true + +var currentBullet = preload("res://scenes/bullet_enemy2.tscn") + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func _on_gun_body_entered(body): + if(body.is_in_group("player_bullet")): + turret1-=1 + if(turret1 == 0): + $Gun.queue_free() + +func _on_gun_2_body_entered(body): + if(body.is_in_group("player_bullet")): + turret2-=1 + if(turret2 == 0): + $Gun2.queue_free() + +func _on_core_body_entered(body): + if(body.is_in_group("player_bullet")): + if(turret1 > 0 || turret2 > 0): + return + core-=1 + if(core == 0): + $Core.queue_free() + $Barrier.queue_free() + + +func _on_timer_timeout(): + turn = !turn + if(turn && turret1 > 0): + var newBullet = currentBullet.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newBullet) + for c in newBullet.get_child_count(): + newBullet.global_position = $Gun/Sp1.global_position + elif(!turn && turret2 > 0): + var newBullet = currentBullet.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newBullet) + for c in newBullet.get_child_count(): + newBullet.global_position = $Gun2/Sp2.global_position + + +func _on_visible_on_screen_notifier_2d_screen_entered(): + $Timer.start() diff --git a/Scripts/BridgeArea.gd b/Scripts/BridgeArea.gd new file mode 100644 index 0000000..6684e69 --- /dev/null +++ b/Scripts/BridgeArea.gd @@ -0,0 +1,39 @@ +extends Area2D + +var phase = 0 +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func _on_body_entered(body): + if(body.is_in_group("player") && phase == 0): + $Timer.start() + +func process_phases(): + phase += 1 + match(phase): + 1: + $AnimationPlayer.play("explosion1") + $Sprite2D.global_position = $A1.global_position + $Bridge.queue_free() + 2: + $AnimationPlayer.play("explosion1") + $Sprite2D.global_position = $A2.global_position + $Bridge2.queue_free() + 3: + $AnimationPlayer.play("explosion1") + $Sprite2D.global_position = $A3.global_position + $Bridge3.queue_free() + 4: + queue_free() + +func _on_animation_player_animation_finished(anim_name): + process_phases() + + +func _on_timer_timeout(): + process_phases() diff --git a/Scripts/BulletSub2.gd b/Scripts/BulletSub2.gd new file mode 100644 index 0000000..6ee6073 --- /dev/null +++ b/Scripts/BulletSub2.gd @@ -0,0 +1,53 @@ +extends CharacterBody2D + +const SPEED = 180.0 +var alive = true +var angle = 0 + +func _ready(): + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + add_collision_exception_with(p) + +func _physics_process(delta): + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("powerupcontainer")): + collidedObj.get_collider().explodes() + alive = false + queue_free() + elif(collidedObj.get_collider().is_in_group("enemy")): + collidedObj.get_collider().death() + queue_free() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func setVelocity(faceDirection): + match(faceDirection): + "Right": + calcFinalVelocity(0) + "Left": + calcFinalVelocity(180) + "Up": + calcFinalVelocity(90) + "Down": + calcFinalVelocity(270) + "RightUp": + calcFinalVelocity(45) + "RightDown": + calcFinalVelocity(315) + "LeftUp": + calcFinalVelocity(135) + "LeftDown": + calcFinalVelocity(225) + +func calcFinalVelocity(rAngle): + angle += rAngle + var angle_in_radians = deg_to_rad(angle) + velocity.x = SPEED * cos(angle_in_radians) + velocity.y = SPEED * sin(angle_in_radians) * -1 + get_parent().rotation_degrees = angle * -1 diff --git a/Scripts/Enemy1.gd b/Scripts/Enemy1.gd new file mode 100644 index 0000000..f042147 --- /dev/null +++ b/Scripts/Enemy1.gd @@ -0,0 +1,59 @@ +extends CharacterBody2D + + +const SPEED = 80.0 +const JUMP_VELOCITY = -200.0 +var currentVelocity +enum states {none, run, jump} +var currentState = states.none + +var points = 20 + +# Get the gravity from the project settings to be synced with RigidBody nodes. +var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") + +func _ready(): + velocity.x = -SPEED + currentVelocity = velocity.x + +func _physics_process(delta): + + velocity.x = currentVelocity + # Add the gravity. + if not is_on_floor(): + velocity.y += gravity * delta + if(currentState == states.run): + decideAction() + else: + if(currentState == states.none): + currentState = states.run + + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("player")): + collidedObj.get_collider().death() + elif(collidedObj.get_collider().is_in_group("player_bullet")): + collidedObj.get_collider().queue_free() + var mainNode = get_tree().get_nodes_in_group("main")[0] + if(collidedObj.get_collider().is_in_group("id_p1")): + mainNode.setP1Score(points) + else: + mainNode.setP2Score(points) + death() + +func decideAction(): + randomize() + if(randi_range(0,1) == 1): + velocity.x = -velocity.x + $Sprite2D.flip_h = !$Sprite2D.flip_h + currentVelocity = velocity.x + else: + $AnimationPlayer.play("jump") + velocity.y = JUMP_VELOCITY + currentState = states.jump + +func death(): + queue_free() diff --git a/Scripts/EnemyMachine.gd b/Scripts/EnemyMachine.gd new file mode 100644 index 0000000..e2ca95a --- /dev/null +++ b/Scripts/EnemyMachine.gd @@ -0,0 +1,50 @@ +extends Area2D + +var turret_active +var can_shot + +var currentBullet = preload("res://scenes/bullet_enemy.tscn") + +var lifes = 3 + +func _ready(): + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if(turret_active): + var players = get_tree().get_nodes_in_group("player") + if(players.size() > 1): + if(abs(players[0].global_position.x - get_parent().global_position.x) < abs(players[1].global_position.x - get_parent().global_position.x)): + $Sprite2D.look_at(players[1].global_position) + else: + $Sprite2D.look_at(players[0].global_position) + elif(players.size() == 1 && players[0] != null): + $Sprite2D.look_at(players[0].global_position) + + if(can_shot): + shot() + get_node("cooldown").start() + +func shot(): + can_shot = false + var newBullet = currentBullet.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newBullet) + for c in newBullet.get_child_count(): + newBullet.get_child(c).calcFinalVelocity(-$Sprite2D.rotation_degrees) + newBullet.global_position = $Sprite2D/Aim.global_position + +func _on_cooldown_timeout(): + can_shot = true + +func _on_visible_on_screen_notifier_2d_screen_entered(): + turret_active = true + $cooldown.start() + +func _on_body_entered(body): + if(body.is_in_group("player_bullet")): + lifes-= 1 + body.queue_free() + if(lifes == 0): + queue_free() diff --git a/Scripts/PowerUp1.gd b/Scripts/PowerUp1.gd new file mode 100644 index 0000000..a126d4f --- /dev/null +++ b/Scripts/PowerUp1.gd @@ -0,0 +1,36 @@ +extends CharacterBody2D + +# Get the gravity from the project settings to be synced with RigidBody nodes. +var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") +var clValue = 300 +var powerType = 1 + +func _ready(): + generatePowerUp() + +func _physics_process(delta): + # Add the gravity. + if not is_on_floor(): + velocity.y += gravity * delta + + if is_on_floor(): + velocity.x = 0 + + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("player")): + collidedObj.get_collider().currentBullet = collidedObj.get_collider().get("bulletP" + str(powerType)) + queue_free() + +func setVelocity(xVelocity, yVelocity): + velocity.x = clamp(xVelocity, -clValue, clValue) + velocity.y = clamp(yVelocity, -clValue, clValue) + + +func generatePowerUp(): + randomize() + powerType = randi_range(1,2) + $Sprite2D.frame = powerType diff --git a/Scripts/PowerUpContainer.gd b/Scripts/PowerUpContainer.gd new file mode 100644 index 0000000..7dab388 --- /dev/null +++ b/Scripts/PowerUpContainer.gd @@ -0,0 +1,38 @@ +extends CharacterBody2D + +const SPEED = 100.0 +var amplitude = 100.0 +var elapsed_time = 0.0 + +var alive = true + +var powerUp1 = preload("res://scenes/power_up_1.tscn") + +func _physics_process(delta): + velocity.x = -SPEED + elapsed_time += delta + + var sine_wave = sin(elapsed_time / 0.1) + velocity.y = sine_wave * amplitude + + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("player_bullet")): + explodes() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func explodes(): + if(!alive): + return + var newPowerUp = powerUp1.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newPowerUp) + newPowerUp.setVelocity(velocity.x, velocity.y) + newPowerUp.global_position = global_position + alive = false + queue_free() diff --git a/Scripts/PowerUpMachine.gd b/Scripts/PowerUpMachine.gd new file mode 100644 index 0000000..5f5744b --- /dev/null +++ b/Scripts/PowerUpMachine.gd @@ -0,0 +1,38 @@ +extends Area2D + +var alive = true +var powerUp1 = preload("res://scenes/power_up_1.tscn") +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_body_entered(body): + if(body.is_in_group("player_bullet")): + explodes() + +func _on_animation_player_animation_finished(anim_name): + if(anim_name == "opened"): + $AnimationPlayer.play("opened_closed") + elif(anim_name == "closed"): + $AnimationPlayer.play("closed_opened") + elif(anim_name == "opened_closed"): + $AnimationPlayer.play("closed") + elif(anim_name == "closed_opened"): + $AnimationPlayer.play("opened") + +func explodes(): + if(!alive || $AnimationPlayer.current_animation != "opened"): + return + var newPowerUp = powerUp1.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newPowerUp) + newPowerUp.setVelocity(100, -300) + newPowerUp.global_position = global_position + alive = false + queue_free() diff --git a/Scripts/Singleton.gd b/Scripts/Singleton.gd new file mode 100644 index 0000000..7f0fb75 --- /dev/null +++ b/Scripts/Singleton.gd @@ -0,0 +1,3 @@ +extends Node + +var playerNumbers = 1 diff --git a/Scripts/bulletNormal.gd b/Scripts/bulletNormal.gd new file mode 100644 index 0000000..6157ef7 --- /dev/null +++ b/Scripts/bulletNormal.gd @@ -0,0 +1,58 @@ +extends CharacterBody2D + +const SPEED = 180.0 +var alive = true + +func _ready(): + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + add_collision_exception_with(p) + +func _physics_process(delta): + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("powerupcontainer")): + collidedObj.get_collider().explodes() + alive = false + queue_free() + elif(collidedObj.get_collider().is_in_group("enemy")): + collidedObj.get_collider().death() + var mainNode = get_tree().get_nodes_in_group("main")[0] + if(is_in_group("id_p1")): + mainNode.setP1Score(collidedObj.get_collider().points) + else: + mainNode.setP2Score(collidedObj.get_collider().points) + queue_free() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func setVelocity(faceDirection): + match(faceDirection): + "Right": + calcFinalVelocity(0) + "Left": + calcFinalVelocity(180) + "Up": + calcFinalVelocity(90) + "Down": + calcFinalVelocity(270) + "RightUp": + calcFinalVelocity(45) + "RightDown": + calcFinalVelocity(315) + "LeftUp": + calcFinalVelocity(135) + "LeftDown": + calcFinalVelocity(225) + +func calcFinalVelocity(angle): + var angle_in_radians = deg_to_rad(angle) + velocity.x = SPEED * cos(angle_in_radians) + velocity.y = SPEED * sin(angle_in_radians) * -1 + +func death(): + queue_free() diff --git a/Scripts/bulletP1.gd b/Scripts/bulletP1.gd new file mode 100644 index 0000000..0d78e87 --- /dev/null +++ b/Scripts/bulletP1.gd @@ -0,0 +1,52 @@ +extends CharacterBody2D + +const SPEED = 180.0 +var alive = true +var angle = 0 + +func _ready(): + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + add_collision_exception_with(p) + +func _physics_process(delta): + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("powerupcontainer")): + collidedObj.get_collider().explodes() + alive = false + queue_free() + elif(collidedObj.get_collider().is_in_group("enemy")): + collidedObj.get_collider().death() + queue_free() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func setVelocity(faceDirection): + match(faceDirection): + "Right": + calcFinalVelocity(0) + "Left": + calcFinalVelocity(180) + "Up": + calcFinalVelocity(90) + "Down": + calcFinalVelocity(270) + "RightUp": + calcFinalVelocity(45) + "RightDown": + calcFinalVelocity(315) + "LeftUp": + calcFinalVelocity(135) + "LeftDown": + calcFinalVelocity(225) + +func calcFinalVelocity(rAngle): + angle += rAngle + var angle_in_radians = deg_to_rad(angle) + velocity.x = SPEED * cos(angle_in_radians) + velocity.y = SPEED * sin(angle_in_radians) * -1 diff --git a/Scripts/bulletP1Parent.gd b/Scripts/bulletP1Parent.gd new file mode 100644 index 0000000..5bc7110 --- /dev/null +++ b/Scripts/bulletP1Parent.gd @@ -0,0 +1,23 @@ +extends Node2D + +const SPEED = 180.0 +# Called when the node enters the scene tree for the first time. +func _ready(): + get_child(0).calcFinalVelocity(0) + get_child(3).calcFinalVelocity(45) + get_child(1).calcFinalVelocity(315) + get_child(2).calcFinalVelocity(330) + get_child(4).calcFinalVelocity(60) + + var allBullets = get_tree().get_nodes_in_group("player_bullet") + for b in allBullets: + get_child(0).add_collision_exception_with(b) + get_child(1).add_collision_exception_with(b) + get_child(2).add_collision_exception_with(b) + get_child(3).add_collision_exception_with(b) + get_child(4).add_collision_exception_with(b) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass diff --git a/Scripts/bullet_p2.gd b/Scripts/bullet_p2.gd new file mode 100644 index 0000000..c2dd7eb --- /dev/null +++ b/Scripts/bullet_p2.gd @@ -0,0 +1,18 @@ +extends Node2D + +# Called when the node enters the scene tree for the first time. +func _ready(): + get_child(0).calcFinalVelocity(0) + get_child(1).calcFinalVelocity(0) + get_child(2).calcFinalVelocity(0) + + var allBullets = get_tree().get_nodes_in_group("player_bullet") + for b in allBullets: + get_child(0).add_collision_exception_with(b) + get_child(1).add_collision_exception_with(b) + get_child(2).add_collision_exception_with(b) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass diff --git a/Scripts/cam.gd b/Scripts/cam.gd new file mode 100644 index 0000000..0c7e94d --- /dev/null +++ b/Scripts/cam.gd @@ -0,0 +1,20 @@ +extends Camera2D + +const SPEED = 7 +const OFFSET = 25 +var target = Vector2() +var end + +# Called when the node enters the scene tree for the first time. +func _ready(): + target = global_position + end = get_tree().get_nodes_in_group("end")[0] + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if(global_position.x < end.global_position.x): + global_position = lerp(global_position, target, delta*SPEED) + +func _on_area_2d_body_entered(body): + if(body.is_in_group("player")): + target = Vector2(global_position.x + OFFSET, global_position.y) diff --git a/Scripts/enemyBullet.gd b/Scripts/enemyBullet.gd new file mode 100644 index 0000000..8023ec7 --- /dev/null +++ b/Scripts/enemyBullet.gd @@ -0,0 +1,53 @@ +extends CharacterBody2D + +const SPEED = 180.0 +var alive = true + +func _ready(): + var allEnemy = get_tree().get_nodes_in_group("enemy") + for p in allEnemy: + add_collision_exception_with(p) + var allPlatforms = get_tree().get_nodes_in_group("ground") + for p in allPlatforms: + add_collision_exception_with(p) + + +func _physics_process(delta): + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("player")): + collidedObj.get_collider().death() + queue_free() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func setVelocity(faceDirection): + match(faceDirection): + "Right": + calcFinalVelocity(0) + "Left": + calcFinalVelocity(180) + "Up": + calcFinalVelocity(90) + "Down": + calcFinalVelocity(270) + "RightUp": + calcFinalVelocity(45) + "RightDown": + calcFinalVelocity(315) + "LeftUp": + calcFinalVelocity(135) + "LeftDown": + calcFinalVelocity(225) + +func calcFinalVelocity(angle): + var angle_in_radians = deg_to_rad(angle) + velocity.x = SPEED * cos(angle_in_radians) + velocity.y = SPEED * sin(angle_in_radians) * -1 + +func death(): + queue_free() diff --git a/Scripts/enemyBullet2.gd b/Scripts/enemyBullet2.gd new file mode 100644 index 0000000..ac4de45 --- /dev/null +++ b/Scripts/enemyBullet2.gd @@ -0,0 +1,57 @@ +extends CharacterBody2D + +const SPEED = 180.0 +var alive = true + +var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") + +func _ready(): + calcFinalVelocity(180) + var allEnemy = get_tree().get_nodes_in_group("enemy") + for p in allEnemy: + add_collision_exception_with(p) + var allPlatforms = get_tree().get_nodes_in_group("ground") + for p in allPlatforms: + add_collision_exception_with(p) + + +func _physics_process(delta): + velocity.y += gravity * delta + var collision = move_and_slide() + + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("player")): + collidedObj.get_collider().death() + queue_free() + +func _on_visible_on_screen_notifier_2d_screen_exited(): + queue_free() + +func setVelocity(faceDirection): + match(faceDirection): + "Right": + calcFinalVelocity(0) + "Left": + calcFinalVelocity(180) + "Up": + calcFinalVelocity(90) + "Down": + calcFinalVelocity(270) + "RightUp": + calcFinalVelocity(45) + "RightDown": + calcFinalVelocity(315) + "LeftUp": + calcFinalVelocity(135) + "LeftDown": + calcFinalVelocity(225) + +func calcFinalVelocity(angle): + var angle_in_radians = deg_to_rad(angle) + velocity.x = SPEED * cos(angle_in_radians) + velocity.y = SPEED * sin(angle_in_radians) * -1 + +func death(): + queue_free() diff --git a/Scripts/player1.gd b/Scripts/player1.gd new file mode 100644 index 0000000..2e4d4ae --- /dev/null +++ b/Scripts/player1.gd @@ -0,0 +1,181 @@ +extends CharacterBody2D + + +const SPEED = 100.0 +const JUMP_VELOCITY = -300.0 + +enum player_states {idle, run, jump, crouch, aimUp, water, dead} +var current_state = player_states.idle + +var canShot = true + +var normalBullet = preload("res://scenes/bullet_normal.tscn") +var bulletP1 = preload("res://scenes/bullet_p1.tscn") +var bulletP2 = preload("res://scenes/bullet_p2.tscn") + +var currentBullet = normalBullet + +var minCamera +var maxCamera + +# Get the gravity from the project settings to be synced with RigidBody nodes. +var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") + +var direction +var vDirection + +func _ready(): + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + add_collision_exception_with(p) + var cam = get_tree().get_nodes_in_group("camera") + minCamera = cam[0].get_node("min") + maxCamera = cam[0].get_node("max") + +func _physics_process(delta): + # Add the gravity. + if not is_on_floor() && current_state != player_states.water: + velocity.y += gravity * delta + if(current_state != player_states.dead): + $AnimationPlayer.play("jump") + current_state = player_states.jump + else: + get_tree().get_nodes_in_group("spawnPoint")[0].global_position.x = global_position.x + + # Handle Jump. + if(current_state != player_states.dead): + if Input.is_action_just_pressed("ui_accept") and (is_on_floor() || current_state == player_states.water): + velocity.y = JUMP_VELOCITY + current_state = player_states.jump + + direction = Input.get_axis("ui_left", "ui_right") + vDirection = Input.get_axis("ui_up", "ui_down") + + if(vDirection): + if is_on_floor(): + if vDirection > 0: + if(current_state == player_states.idle): + $AnimationPlayer.play("crouch") + current_state = player_states.crouch + else: + if(current_state == player_states.idle): + $AnimationPlayer.play("aim_up") + current_state = player_states.aimUp + elif current_state == player_states.water: + if(vDirection > 0): + $AnimationPlayer.play("swim_hide") + else: + if current_state == player_states.crouch || current_state == player_states.aimUp: + current_state = player_states.idle + + if current_state != player_states.crouch && (current_state != player_states.water || !vDirection): + if direction: + velocity.x = direction * SPEED + if is_on_floor(): + if(!vDirection): + if(current_state != player_states.water): + $AnimationPlayer.play("run") + current_state = player_states.run + else: + $AnimationPlayer.play("swim") + elif(current_state == player_states.water): + $AnimationPlayer.play("swim") + elif(vDirection > 0): + $AnimationPlayer.play("down_right") + current_state = player_states.run + elif(vDirection < 0): + $AnimationPlayer.play("up_right") + current_state = player_states.run + elif (current_state == player_states.water): + if(!vDirection): + $AnimationPlayer.play("swim") + $spr.flip_h = (direction > 0) + else: + velocity.x = move_toward(velocity.x, 0, SPEED) + if is_on_floor() && current_state != player_states.aimUp: + if(current_state != player_states.water): + $AnimationPlayer.play("idle") + current_state = player_states.idle + else: + $AnimationPlayer.play("swim_idle") + elif(current_state == player_states.water && !vDirection): + $AnimationPlayer.play("swim_idle") + + if(global_position.x < minCamera.global_position.x && velocity.x < 0): + velocity.x = 0 + elif(global_position.x > maxCamera.global_position.x && velocity.x > 0): + velocity.x = 0 + var collision = move_and_slide() + + if(current_state != player_states.dead): + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("water")): + current_state = player_states.water + elif(collidedObj.get_collider().is_in_group("powerup")): + currentBullet = get("bulletP" + str(collidedObj.get_collider().powerType)) + collidedObj.get_collider().queue_free() + elif(collidedObj.get_collider().is_in_group("enemy") || collidedObj.get_collider().is_in_group("enemy_bullet")): + death() + + if(Input.is_action_just_pressed("p1_shoot") && canShot): + var newBullet = currentBullet.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newBullet) + var faceDirection = getFacingDirection() + if(currentBullet == normalBullet): + get_tree().get_nodes_in_group("main")[0].createSFX(10) + + for c in newBullet.get_child_count(): + newBullet.get_child(c).setVelocity(faceDirection) + newBullet.get_child(c).add_to_group("id_p1") + newBullet.global_position = get_node("SpawnPositions/Aim_" + faceDirection).global_position + canShot = false + $Timer.start() + + +func getFacingDirection(): + var fDirection = "" + + if(!vDirection && !direction): + if($spr.flip_h): + fDirection = "Right" + else: + fDirection = "Left" + elif(direction): + if(direction > 0): + fDirection = "Right" + else: + fDirection = "Left" + + if(vDirection): + if(vDirection < 0): + fDirection += "Up" + else: + fDirection += "Down" + elif(vDirection): + if(vDirection < 0): + fDirection += "Up" + else: + fDirection += "Down" + + return fDirection + +func _on_timer_timeout(): + canShot = true + +func death(): + get_tree().get_nodes_in_group("main")[0].createSFX(18) + $AnimationPlayer.play("death") + current_state = player_states.dead + velocity.x = 0 + set_collision_layer_value(1, false) + set_collision_mask_value(1, false) + $Respawn.start() + +func _on_respawn_timeout(): + var main = get_tree().get_nodes_in_group("main")[0] + main.lives_p1 -= 1 + main.respawnP1() + queue_free() diff --git a/Scripts/player2.gd b/Scripts/player2.gd new file mode 100644 index 0000000..02e5b1c --- /dev/null +++ b/Scripts/player2.gd @@ -0,0 +1,178 @@ +extends CharacterBody2D + + +const SPEED = 100.0 +const JUMP_VELOCITY = -300.0 + +enum player_states {idle, run, jump, crouch, aimUp, water, dead} +var current_state = player_states.idle + +var canShot = true + +var normalBullet = preload("res://scenes/bullet_normal.tscn") +var bulletP1 = preload("res://scenes/bullet_p1.tscn") +var bulletP2 = preload("res://scenes/bullet_p2.tscn") + +var currentBullet = normalBullet + +# Get the gravity from the project settings to be synced with RigidBody nodes. +var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") + +var direction +var vDirection + +var minCamera +var maxCamera + +func _ready(): + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + add_collision_exception_with(p) + var cam = get_tree().get_nodes_in_group("camera") + minCamera = cam[0].get_node("min") + maxCamera = cam[0].get_node("max") + +func _physics_process(delta): + # Add the gravity. + if not is_on_floor() && current_state != player_states.water: + velocity.y += gravity * delta + if(current_state != player_states.dead): + $AnimationPlayer.play("jump") + current_state = player_states.jump + else: + get_tree().get_nodes_in_group("spawnPoint")[0].global_position.x = global_position.x + + # Handle Jump. + if(current_state != player_states.dead): + if Input.is_action_just_pressed("H") and (is_on_floor() || current_state == player_states.water): + velocity.y = JUMP_VELOCITY + current_state = player_states.jump + + direction = Input.get_axis("A", "D") + vDirection = Input.get_axis("W", "S") + + if(vDirection): + if is_on_floor(): + if vDirection > 0: + if(current_state == player_states.idle): + $AnimationPlayer.play("crouch") + current_state = player_states.crouch + else: + if(current_state == player_states.idle): + $AnimationPlayer.play("aim_up") + current_state = player_states.aimUp + elif current_state == player_states.water: + if(vDirection > 0): + $AnimationPlayer.play("swim_hide") + else: + if current_state == player_states.crouch || current_state == player_states.aimUp: + current_state = player_states.idle + + if current_state != player_states.crouch && (current_state != player_states.water || !vDirection): + if direction: + velocity.x = direction * SPEED + if is_on_floor(): + if(!vDirection): + if(current_state != player_states.water): + $AnimationPlayer.play("run") + current_state = player_states.run + else: + $AnimationPlayer.play("swim") + elif(current_state == player_states.water): + $AnimationPlayer.play("swim") + elif(vDirection > 0): + $AnimationPlayer.play("down_right") + current_state = player_states.run + elif(vDirection < 0): + $AnimationPlayer.play("up_right") + current_state = player_states.run + elif (current_state == player_states.water): + if(!vDirection): + $AnimationPlayer.play("swim") + $spr.flip_h = (direction > 0) + else: + velocity.x = move_toward(velocity.x, 0, SPEED) + if is_on_floor() && current_state != player_states.aimUp: + if(current_state != player_states.water): + $AnimationPlayer.play("idle") + current_state = player_states.idle + else: + $AnimationPlayer.play("swim_idle") + elif(current_state == player_states.water && !vDirection): + $AnimationPlayer.play("swim_idle") + + if(global_position.x < minCamera.global_position.x && velocity.x < 0): + velocity.x = 0 + elif(global_position.x > maxCamera.global_position.x && velocity.x > 0): + velocity.x = 0 + var collision = move_and_slide() + + if(current_state != player_states.dead): + if(collision): + for i in get_slide_collision_count(): + var collidedObj = get_slide_collision(i) + if(collidedObj.get_collider().is_in_group("water")): + current_state = player_states.water + elif(collidedObj.get_collider().is_in_group("powerup")): + currentBullet = get("bulletP" + str(collidedObj.get_collider().powerType)) + collidedObj.get_collider().queue_free() + elif(collidedObj.get_collider().is_in_group("enemy") || collidedObj.get_collider().is_in_group("enemy_bullet")): + death() + + if(Input.is_action_just_pressed("G") && canShot): + var newBullet = currentBullet.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newBullet) + var faceDirection = getFacingDirection() + for c in newBullet.get_child_count(): + newBullet.get_child(c).setVelocity(faceDirection) + newBullet.get_child(c).add_to_group("id_p2") + newBullet.global_position = get_node("SpawnPositions/Aim_" + faceDirection).global_position + canShot = false + $Timer.start() + + +func getFacingDirection(): + var fDirection = "" + + if(!vDirection && !direction): + if($spr.flip_h): + fDirection = "Right" + else: + fDirection = "Left" + elif(direction): + if(direction > 0): + fDirection = "Right" + else: + fDirection = "Left" + + if(vDirection): + if(vDirection < 0): + fDirection += "Up" + else: + fDirection += "Down" + elif(vDirection): + if(vDirection < 0): + fDirection += "Up" + else: + fDirection += "Down" + + return fDirection + +func _on_timer_timeout(): + canShot = true + +func death(): + $AnimationPlayer.play("death") + current_state = player_states.dead + velocity.x = 0 + set_collision_layer_value(1, false) + set_collision_mask_value(1, false) + $Respawn.start() + + +func _on_respawn_timeout(): + var main = get_tree().get_nodes_in_group("main")[0] + main.lives_p2 -= 1 + main.respawnP2() + queue_free() diff --git a/Shaders/player_2.gdshader b/Shaders/player_2.gdshader new file mode 100644 index 0000000..4e01d26 --- /dev/null +++ b/Shaders/player_2.gdshader @@ -0,0 +1,19 @@ +shader_type canvas_item; + +void fragment() { + // Get the color of the pixel from the texture. + vec4 pixel = texture(TEXTURE, UV); + + // Get the blue component of the pixel color. + float blue_component = pixel.b; + + // If the blue component is greater than 0.5, set the pixel color to red. + if (blue_component > 0.7) { + pixel.r = 0.8; + pixel.g = 0.0; + pixel.b = 0.0; + } + + // Set the pixel color to the shader's output. + COLOR = pixel; +} diff --git a/Sprites/contraj1.png b/Sprites/contraj1.png new file mode 100644 index 0000000..3f64d4e Binary files /dev/null and b/Sprites/contraj1.png differ diff --git a/Sprites/contraj1.png.import b/Sprites/contraj1.png.import new file mode 100644 index 0000000..08f7950 --- /dev/null +++ b/Sprites/contraj1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bem0puvhvb2fn" +path="res://.godot/imported/contraj1.png-762e83162787823eb82b241f95edf972.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/contraj1.png" +dest_files=["res://.godot/imported/contraj1.png-762e83162787823eb82b241f95edf972.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/Sprites/contraj2.png b/Sprites/contraj2.png new file mode 100644 index 0000000..f8db14f Binary files /dev/null and b/Sprites/contraj2.png differ diff --git a/Sprites/contraj2.png.import b/Sprites/contraj2.png.import new file mode 100644 index 0000000..f536a67 --- /dev/null +++ b/Sprites/contraj2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dklxajofta1kd" +path="res://.godot/imported/contraj2.png-95f5253cf90ba22f9d971f36df9c2c87.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/contraj2.png" +dest_files=["res://.godot/imported/contraj2.png-95f5253cf90ba22f9d971f36df9c2c87.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/Sprites/enemigo_base.png b/Sprites/enemigo_base.png new file mode 100644 index 0000000..191a43f Binary files /dev/null and b/Sprites/enemigo_base.png differ diff --git a/Sprites/enemigo_base.png.import b/Sprites/enemigo_base.png.import new file mode 100644 index 0000000..3065058 --- /dev/null +++ b/Sprites/enemigo_base.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://wcxuabeva6d1" +path="res://.godot/imported/enemigo_base.png-824de64affbc2e1b4f06250c46d800a3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/enemigo_base.png" +dest_files=["res://.godot/imported/enemigo_base.png-824de64affbc2e1b4f06250c46d800a3.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/Sprites/enemigo_selva.png b/Sprites/enemigo_selva.png new file mode 100644 index 0000000..ea37822 Binary files /dev/null and b/Sprites/enemigo_selva.png differ diff --git a/Sprites/enemigo_selva.png.import b/Sprites/enemigo_selva.png.import new file mode 100644 index 0000000..0d7affc --- /dev/null +++ b/Sprites/enemigo_selva.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bf5u01k4o15gy" +path="res://.godot/imported/enemigo_selva.png-f672a455652f4df8086d24162a24a969.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/enemigo_selva.png" +dest_files=["res://.godot/imported/enemigo_selva.png-f672a455652f4df8086d24162a24a969.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/Sprites/enemigos.png b/Sprites/enemigos.png new file mode 100644 index 0000000..ff32a0e Binary files /dev/null and b/Sprites/enemigos.png differ diff --git a/Sprites/enemigos.png.import b/Sprites/enemigos.png.import new file mode 100644 index 0000000..9cb4358 --- /dev/null +++ b/Sprites/enemigos.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c7ke8gv6cxquv" +path="res://.godot/imported/enemigos.png-926a2695b8608c0d85aa17604106ae78.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/enemigos.png" +dest_files=["res://.godot/imported/enemigos.png-926a2695b8608c0d85aa17604106ae78.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/Sprites/explosiones.png b/Sprites/explosiones.png new file mode 100644 index 0000000..faae512 Binary files /dev/null and b/Sprites/explosiones.png differ diff --git a/Sprites/explosiones.png.import b/Sprites/explosiones.png.import new file mode 100644 index 0000000..976a3dc --- /dev/null +++ b/Sprites/explosiones.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ccwai1enfyly1" +path="res://.godot/imported/explosiones.png-6cf8d066f14951667a8ccebcfbaf99c8.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/explosiones.png" +dest_files=["res://.godot/imported/explosiones.png-6cf8d066f14951667a8ccebcfbaf99c8.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/Sprites/j1_down.png b/Sprites/j1_down.png new file mode 100644 index 0000000..ce03974 Binary files /dev/null and b/Sprites/j1_down.png differ diff --git a/Sprites/j1_down.png.import b/Sprites/j1_down.png.import new file mode 100644 index 0000000..eb556b8 --- /dev/null +++ b/Sprites/j1_down.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ddjnqffxnohth" +path="res://.godot/imported/j1_down.png-886e02f0a9cf0dea0f9a5d02a5efa342.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j1_down.png" +dest_files=["res://.godot/imported/j1_down.png-886e02f0a9cf0dea0f9a5d02a5efa342.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/Sprites/j1_idle.png b/Sprites/j1_idle.png new file mode 100644 index 0000000..bffbdd3 Binary files /dev/null and b/Sprites/j1_idle.png differ diff --git a/Sprites/j1_idle.png.import b/Sprites/j1_idle.png.import new file mode 100644 index 0000000..3ba91a1 --- /dev/null +++ b/Sprites/j1_idle.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bxrthk1syjq0q" +path="res://.godot/imported/j1_idle.png-04053815b9506b8db363cd0c8c309aba.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j1_idle.png" +dest_files=["res://.godot/imported/j1_idle.png-04053815b9506b8db363cd0c8c309aba.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/Sprites/j1_run.png b/Sprites/j1_run.png new file mode 100644 index 0000000..73379ed Binary files /dev/null and b/Sprites/j1_run.png differ diff --git a/Sprites/j1_run.png.import b/Sprites/j1_run.png.import new file mode 100644 index 0000000..db55ed4 --- /dev/null +++ b/Sprites/j1_run.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://42jbdfqg673e" +path="res://.godot/imported/j1_run.png-bdb07bd89070f87a520003b2ea38c11e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j1_run.png" +dest_files=["res://.godot/imported/j1_run.png-bdb07bd89070f87a520003b2ea38c11e.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/Sprites/j1_salto.png b/Sprites/j1_salto.png new file mode 100644 index 0000000..5f195cf Binary files /dev/null and b/Sprites/j1_salto.png differ diff --git a/Sprites/j1_salto.png.import b/Sprites/j1_salto.png.import new file mode 100644 index 0000000..46c0127 --- /dev/null +++ b/Sprites/j1_salto.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bbmsw2jai28mv" +path="res://.godot/imported/j1_salto.png-cf30ff555b12ffcb29cdb6ede643a7f2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j1_salto.png" +dest_files=["res://.godot/imported/j1_salto.png-cf30ff555b12ffcb29cdb6ede643a7f2.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/Sprites/j1_water.png b/Sprites/j1_water.png new file mode 100644 index 0000000..95f1795 Binary files /dev/null and b/Sprites/j1_water.png differ diff --git a/Sprites/j1_water.png.import b/Sprites/j1_water.png.import new file mode 100644 index 0000000..11ece8d --- /dev/null +++ b/Sprites/j1_water.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://87jobbti0q8i" +path="res://.godot/imported/j1_water.png-2b46fb5509083a0025998dc5a61e493c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j1_water.png" +dest_files=["res://.godot/imported/j1_water.png-2b46fb5509083a0025998dc5a61e493c.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/Sprites/j2_down.png b/Sprites/j2_down.png new file mode 100644 index 0000000..aeeccc2 Binary files /dev/null and b/Sprites/j2_down.png differ diff --git a/Sprites/j2_down.png.import b/Sprites/j2_down.png.import new file mode 100644 index 0000000..feb2d85 --- /dev/null +++ b/Sprites/j2_down.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bmy5lnam18kd5" +path="res://.godot/imported/j2_down.png-c71e1b58503fe5c350dcffa4d257dec6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j2_down.png" +dest_files=["res://.godot/imported/j2_down.png-c71e1b58503fe5c350dcffa4d257dec6.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/Sprites/j2_idle.png b/Sprites/j2_idle.png new file mode 100644 index 0000000..e035013 Binary files /dev/null and b/Sprites/j2_idle.png differ diff --git a/Sprites/j2_idle.png.import b/Sprites/j2_idle.png.import new file mode 100644 index 0000000..1aae1b1 --- /dev/null +++ b/Sprites/j2_idle.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cu1lqdueootwm" +path="res://.godot/imported/j2_idle.png-6963da30c660cf7b3b9003511edd9df8.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j2_idle.png" +dest_files=["res://.godot/imported/j2_idle.png-6963da30c660cf7b3b9003511edd9df8.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/Sprites/j2_run.png b/Sprites/j2_run.png new file mode 100644 index 0000000..26193bb Binary files /dev/null and b/Sprites/j2_run.png differ diff --git a/Sprites/j2_run.png.import b/Sprites/j2_run.png.import new file mode 100644 index 0000000..1a56eac --- /dev/null +++ b/Sprites/j2_run.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2s5hb5xk1wky" +path="res://.godot/imported/j2_run.png-19d5d40d9235b02d8f8b35e087ebc982.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j2_run.png" +dest_files=["res://.godot/imported/j2_run.png-19d5d40d9235b02d8f8b35e087ebc982.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/Sprites/j2_salto.png b/Sprites/j2_salto.png new file mode 100644 index 0000000..3f3f90c Binary files /dev/null and b/Sprites/j2_salto.png differ diff --git a/Sprites/j2_salto.png.import b/Sprites/j2_salto.png.import new file mode 100644 index 0000000..b280b99 --- /dev/null +++ b/Sprites/j2_salto.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dx8dwdthq742y" +path="res://.godot/imported/j2_salto.png-42631490d7ea1d87710c137cf8d9a324.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/j2_salto.png" +dest_files=["res://.godot/imported/j2_salto.png-42631490d7ea1d87710c137cf8d9a324.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/Sprites/maquina_boss_arma.png b/Sprites/maquina_boss_arma.png new file mode 100644 index 0000000..b0292e6 Binary files /dev/null and b/Sprites/maquina_boss_arma.png differ diff --git a/Sprites/maquina_boss_arma.png.import b/Sprites/maquina_boss_arma.png.import new file mode 100644 index 0000000..9948675 --- /dev/null +++ b/Sprites/maquina_boss_arma.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bq3id50u04uu0" +path="res://.godot/imported/maquina_boss_arma.png-c1070235a296cca31acbb380d2ef58ee.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/maquina_boss_arma.png" +dest_files=["res://.godot/imported/maquina_boss_arma.png-c1070235a296cca31acbb380d2ef58ee.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/Sprites/maquina_boss_base - copia.png b/Sprites/maquina_boss_base - copia.png new file mode 100644 index 0000000..7807c60 Binary files /dev/null and b/Sprites/maquina_boss_base - copia.png differ diff --git a/Sprites/maquina_boss_base - copia.png.import b/Sprites/maquina_boss_base - copia.png.import new file mode 100644 index 0000000..a5b124d --- /dev/null +++ b/Sprites/maquina_boss_base - copia.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ck83usvgfx4qq" +path="res://.godot/imported/maquina_boss_base - copia.png-492cde579cc7e833f59a9943d32ed8de.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/maquina_boss_base - copia.png" +dest_files=["res://.godot/imported/maquina_boss_base - copia.png-492cde579cc7e833f59a9943d32ed8de.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/Sprites/maquina_boss_base.png b/Sprites/maquina_boss_base.png new file mode 100644 index 0000000..a0fb4c4 Binary files /dev/null and b/Sprites/maquina_boss_base.png differ diff --git a/Sprites/maquina_boss_base.png.import b/Sprites/maquina_boss_base.png.import new file mode 100644 index 0000000..61c6957 --- /dev/null +++ b/Sprites/maquina_boss_base.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://1dfeq4hqwq5m" +path="res://.godot/imported/maquina_boss_base.png-22226a46ac9a227af4c6670b0c702e6c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/maquina_boss_base.png" +dest_files=["res://.godot/imported/maquina_boss_base.png-22226a46ac9a227af4c6670b0c702e6c.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/Sprites/maquina_boss_vida.png b/Sprites/maquina_boss_vida.png new file mode 100644 index 0000000..e4c48e8 Binary files /dev/null and b/Sprites/maquina_boss_vida.png differ diff --git a/Sprites/maquina_boss_vida.png.import b/Sprites/maquina_boss_vida.png.import new file mode 100644 index 0000000..013d944 --- /dev/null +++ b/Sprites/maquina_boss_vida.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://plxgkoh6d7nj" +path="res://.godot/imported/maquina_boss_vida.png-60749f875859152865c8a93f974ab75b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/maquina_boss_vida.png" +dest_files=["res://.godot/imported/maquina_boss_vida.png-60749f875859152865c8a93f974ab75b.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/Sprites/maquinas.png b/Sprites/maquinas.png new file mode 100644 index 0000000..c94365c Binary files /dev/null and b/Sprites/maquinas.png differ diff --git a/Sprites/maquinas.png.import b/Sprites/maquinas.png.import new file mode 100644 index 0000000..69eea25 --- /dev/null +++ b/Sprites/maquinas.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://crk8h5dnwf6i8" +path="res://.godot/imported/maquinas.png-e7f38aea2e76f068807c04f85c7985e7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/maquinas.png" +dest_files=["res://.godot/imported/maquinas.png-e7f38aea2e76f068807c04f85c7985e7.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/Sprites/muerte_j1.png b/Sprites/muerte_j1.png new file mode 100644 index 0000000..a7a44df Binary files /dev/null and b/Sprites/muerte_j1.png differ diff --git a/Sprites/muerte_j1.png.import b/Sprites/muerte_j1.png.import new file mode 100644 index 0000000..35dade8 --- /dev/null +++ b/Sprites/muerte_j1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b0x8mf13gbktm" +path="res://.godot/imported/muerte_j1.png-30d31631e4261fd4e2232bdd926c9e71.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/muerte_j1.png" +dest_files=["res://.godot/imported/muerte_j1.png-30d31631e4261fd4e2232bdd926c9e71.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/Sprites/muerte_j2.png b/Sprites/muerte_j2.png new file mode 100644 index 0000000..4b23bc8 Binary files /dev/null and b/Sprites/muerte_j2.png differ diff --git a/Sprites/muerte_j2.png.import b/Sprites/muerte_j2.png.import new file mode 100644 index 0000000..101ac92 --- /dev/null +++ b/Sprites/muerte_j2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dtogvx3cssy68" +path="res://.godot/imported/muerte_j2.png-18e7ad1310bff8bc4c0b3f0b896c7fd7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/muerte_j2.png" +dest_files=["res://.godot/imported/muerte_j2.png-18e7ad1310bff8bc4c0b3f0b896c7fd7.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/Sprites/powerup.png b/Sprites/powerup.png new file mode 100644 index 0000000..dca96ff Binary files /dev/null and b/Sprites/powerup.png differ diff --git a/Sprites/powerup.png.import b/Sprites/powerup.png.import new file mode 100644 index 0000000..e742a16 --- /dev/null +++ b/Sprites/powerup.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bmo543wawjitd" +path="res://.godot/imported/powerup.png-2ba8151fa99e0a9a4a8c28c870792570.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/powerup.png" +dest_files=["res://.godot/imported/powerup.png-2ba8151fa99e0a9a4a8c28c870792570.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/Sprites/powerup_machine.png b/Sprites/powerup_machine.png new file mode 100644 index 0000000..04173e7 Binary files /dev/null and b/Sprites/powerup_machine.png differ diff --git a/Sprites/powerup_machine.png.import b/Sprites/powerup_machine.png.import new file mode 100644 index 0000000..2ba1abf --- /dev/null +++ b/Sprites/powerup_machine.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dww2rpwbom3vj" +path="res://.godot/imported/powerup_machine.png-df9571b5a7c5565641f96ccea74dff45.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/powerup_machine.png" +dest_files=["res://.godot/imported/powerup_machine.png-df9571b5a7c5565641f96ccea74dff45.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/Sprites/powerups.png b/Sprites/powerups.png new file mode 100644 index 0000000..8a5bc0d Binary files /dev/null and b/Sprites/powerups.png differ diff --git a/Sprites/powerups.png.import b/Sprites/powerups.png.import new file mode 100644 index 0000000..af2bb40 --- /dev/null +++ b/Sprites/powerups.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cpqw7u1iu2dfe" +path="res://.godot/imported/powerups.png-e49435476f51ec481b276643d382988c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/powerups.png" +dest_files=["res://.godot/imported/powerups.png-e49435476f51ec481b276643d382988c.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/Sprites/proyectiles.png b/Sprites/proyectiles.png new file mode 100644 index 0000000..d782f0d Binary files /dev/null and b/Sprites/proyectiles.png differ diff --git a/Sprites/proyectiles.png.import b/Sprites/proyectiles.png.import new file mode 100644 index 0000000..14f57f8 --- /dev/null +++ b/Sprites/proyectiles.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cvs8lcpnnqb8f" +path="res://.godot/imported/proyectiles.png-836c132d22b09a3617b90aab9313b0b7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/proyectiles.png" +dest_files=["res://.godot/imported/proyectiles.png-836c132d22b09a3617b90aab9313b0b7.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/Sprites/puente.png b/Sprites/puente.png new file mode 100644 index 0000000..70f13f0 Binary files /dev/null and b/Sprites/puente.png differ diff --git a/Sprites/puente.png.import b/Sprites/puente.png.import new file mode 100644 index 0000000..1cbd0c5 --- /dev/null +++ b/Sprites/puente.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://duwsaoeod0rav" +path="res://.godot/imported/puente.png-e6b78d5dc738898a930d1174b7caece6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/puente.png" +dest_files=["res://.godot/imported/puente.png-e6b78d5dc738898a930d1174b7caece6.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/Sprites/torreta.png b/Sprites/torreta.png new file mode 100644 index 0000000..be67a6b Binary files /dev/null and b/Sprites/torreta.png differ diff --git a/Sprites/torreta.png.import b/Sprites/torreta.png.import new file mode 100644 index 0000000..719779f --- /dev/null +++ b/Sprites/torreta.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://exdhd0pbxiei" +path="res://.godot/imported/torreta.png-2cea1aca8ab0cd047a518dae101bfdd9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/torreta.png" +dest_files=["res://.godot/imported/torreta.png-2cea1aca8ab0cd047a518dae101bfdd9.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/Sprites/vidas.png b/Sprites/vidas.png new file mode 100644 index 0000000..de7aac4 Binary files /dev/null and b/Sprites/vidas.png differ diff --git a/Sprites/vidas.png.import b/Sprites/vidas.png.import new file mode 100644 index 0000000..13347a6 --- /dev/null +++ b/Sprites/vidas.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d3e7at1aptrgn" +path="res://.godot/imported/vidas.png-250c8b06ef2d95f9ab71ef91931a4bcb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/vidas.png" +dest_files=["res://.godot/imported/vidas.png-250c8b06ef2d95f9ab71ef91931a4bcb.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/Texturas/Texturas/mainmenu.png b/Texturas/Texturas/mainmenu.png new file mode 100644 index 0000000..900630a Binary files /dev/null and b/Texturas/Texturas/mainmenu.png differ diff --git a/Texturas/Texturas/mainmenu.png.import b/Texturas/Texturas/mainmenu.png.import new file mode 100644 index 0000000..01f0ca2 --- /dev/null +++ b/Texturas/Texturas/mainmenu.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://tbg10oyv2eqg" +path="res://.godot/imported/mainmenu.png-2ff1299a6f456d86b2541154137d7f0d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Texturas/Texturas/mainmenu.png" +dest_files=["res://.godot/imported/mainmenu.png-2ff1299a6f456d86b2541154137d7f0d.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=1 +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/Texturas/Texturas/mainmenu.png.meta b/Texturas/Texturas/mainmenu.png.meta new file mode 100644 index 0000000..4f56a7e --- /dev/null +++ b/Texturas/Texturas/mainmenu.png.meta @@ -0,0 +1,118 @@ +fileFormatVersion: 2 +guid: 0d1239b4e7ac49748bcb93ab69cee4b9 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 256 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 256 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 256 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Texturas/Texturas/mainmenucursor.png b/Texturas/Texturas/mainmenucursor.png new file mode 100644 index 0000000..752660f Binary files /dev/null and b/Texturas/Texturas/mainmenucursor.png differ diff --git a/Texturas/Texturas/mainmenucursor.png.import b/Texturas/Texturas/mainmenucursor.png.import new file mode 100644 index 0000000..0b01cf8 --- /dev/null +++ b/Texturas/Texturas/mainmenucursor.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c1ofyarf58t3y" +path="res://.godot/imported/mainmenucursor.png-a6e300d951f2aa51cc9f0708d60894c3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Texturas/Texturas/mainmenucursor.png" +dest_files=["res://.godot/imported/mainmenucursor.png-a6e300d951f2aa51cc9f0708d60894c3.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/Texturas/Texturas/mainmenucursor.png.meta b/Texturas/Texturas/mainmenucursor.png.meta new file mode 100644 index 0000000..9ad246c --- /dev/null +++ b/Texturas/Texturas/mainmenucursor.png.meta @@ -0,0 +1,118 @@ +fileFormatVersion: 2 +guid: 4de72e67a4e7c64438be4fc7f263103d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 32 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 32 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 32 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Texturas/Texturas/nivel1.png b/Texturas/Texturas/nivel1.png new file mode 100644 index 0000000..caa6dcc Binary files /dev/null and b/Texturas/Texturas/nivel1.png differ diff --git a/Texturas/Texturas/nivel1.png.import b/Texturas/Texturas/nivel1.png.import new file mode 100644 index 0000000..fd6579d --- /dev/null +++ b/Texturas/Texturas/nivel1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://3sw2shp6xho6" +path="res://.godot/imported/nivel1.png-9ac03da804c98cdd5bdb5ff326fe5d68.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Texturas/Texturas/nivel1.png" +dest_files=["res://.godot/imported/nivel1.png-9ac03da804c98cdd5bdb5ff326fe5d68.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/Texturas/Texturas/nivel1.png.meta b/Texturas/Texturas/nivel1.png.meta new file mode 100644 index 0000000..fe52f2e --- /dev/null +++ b/Texturas/Texturas/nivel1.png.meta @@ -0,0 +1,118 @@ +fileFormatVersion: 2 +guid: a77f027296ca863438dc8b87cbd97b0a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 4096 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 4096 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 4096 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/addons/godot-git-plugin/LICENSE b/addons/godot-git-plugin/LICENSE new file mode 100644 index 0000000..f153fb8 --- /dev/null +++ b/addons/godot-git-plugin/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016-2023 The Godot Engine community + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/addons/godot-git-plugin/THIRDPARTY.md b/addons/godot-git-plugin/THIRDPARTY.md new file mode 100644 index 0000000..837488f --- /dev/null +++ b/addons/godot-git-plugin/THIRDPARTY.md @@ -0,0 +1,1349 @@ +# Third-Party Notices + +The Godot Git Plugin source code uses the following third-party source code: + +1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c +2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d +3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8 + +We also link to these third-party libraries (only in the compiled binary form): + +1. OpenSSL - Only on Linux and MacOS - OpenSSL License - http://www.openssl.org/source/openssl-1.1.1s.tar.gz + +## License Texts + +### godotengine/godot-cpp + +``` +# MIT License + +Copyright (c) 2017-2022 Godot Engine contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +``` + +### libgit2/libgit2 + +``` + libgit2 is Copyright (C) the libgit2 contributors, + unless otherwise stated. See the AUTHORS file for details. + + Note that the only valid version of the GPL as far as this project + is concerned is _this_ particular version of the license (ie v2, not + v2.2 or v3.x or whatever), unless explicitly otherwise stated. + +---------------------------------------------------------------------- + + LINKING EXCEPTION + + In addition to the permissions in the GNU General Public License, + the authors give you unlimited permission to link the compiled + version of this library into combinations with other programs, + and to distribute those combinations without any restriction + coming from the use of this file. (The General Public License + restrictions do apply in other respects; for example, they cover + modification of the file, and distribution when not linked into + a combined executable.) + +---------------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + +---------------------------------------------------------------------- + +The bundled ZLib code is licensed under the ZLib license: + +Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +---------------------------------------------------------------------- + +The Clar framework is licensed under the ISC license: + +Copyright (c) 2011-2015 Vicent Marti + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +---------------------------------------------------------------------- + +The regex library (deps/regex/) is licensed under the GNU LGPL +(available at the end of this file). + +Definitions for data structures and routines for the regular +expression library. + +Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008 +Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with the GNU C Library; if not, write to the Free +Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +---------------------------------------------------------------------- + +The bundled winhttp definition files (deps/winhttp/) are licensed under +the GNU LGPL (available at the end of this file). + +Copyright (C) 2007 Francois Gouget + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +---------------------------------------------------------------------- + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + +---------------------------------------------------------------------- + +The bundled SHA1 collision detection code is licensed under the MIT license: + +MIT License + +Copyright (c) 2017: + Marc Stevens + Cryptology Group + Centrum Wiskunde & Informatica + P.O. Box 94079, 1090 GB Amsterdam, Netherlands + marc@marc-stevens.nl + + Dan Shumow + Microsoft Research + danshu@microsoft.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +---------------------------------------------------------------------- + +The bundled wildmatch code is licensed under the BSD license: + +Copyright Rich Salz. +All rights reserved. + +Redistribution and use in any form are permitted provided that the +following restrictions are are met: + +1. Source distributions must retain this entire copyright notice + and comment. +2. Binary distributions must include the acknowledgement ``This + product includes software developed by Rich Salz'' in the + documentation or other materials provided with the + distribution. This must not be represented as an endorsement + or promotion without specific prior written permission. +3. The origin of this software must not be misrepresented, either + by explicit claim or by omission. Credits must appear in the + source and documentation. +4. Altered versions must be plainly marked as such in the source + and documentation and must not be misrepresented as being the + original software. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +---------------------------------------------------------------------- + +Portions of the OpenSSL headers are included under the OpenSSL license: + +Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) +All rights reserved. + +This package is an SSL implementation written +by Eric Young (eay@cryptsoft.com). +The implementation was written so as to conform with Netscapes SSL. + +This library is free for commercial and non-commercial use as long as +the following conditions are aheared to. The following conditions +apply to all code found in this distribution, be it the RC4, RSA, +lhash, DES, etc., code; not just the SSL code. The SSL documentation +included with this distribution is covered by the same copyright terms +except that the holder is Tim Hudson (tjh@cryptsoft.com). + +Copyright remains Eric Young's, and as such any Copyright notices in +the code are not to be removed. +If this package is used in a product, Eric Young should be given attribution +as the author of the parts of the library used. +This can be in the form of a textual message at program startup or +in documentation (online or textual) provided with the package. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + "This product includes cryptographic software written by + Eric Young (eay@cryptsoft.com)" + The word 'cryptographic' can be left out if the rouines from the library + being used are not cryptographic related :-). +4. If you include any Windows specific code (or a derivative thereof) from + the apps directory (application code) you must include an acknowledgement: + "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + +THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + +The licence and distribution terms for any publically available version or +derivative of this code cannot be changed. i.e. this code cannot simply be +copied and put under another distribution licence +[including the GNU Public Licence.] + +==================================================================== +Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + +3. All advertising materials mentioning features or use of this + software must display the following acknowledgment: + "This product includes software developed by the OpenSSL Project + for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + +4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + endorse or promote products derived from this software without + prior written permission. For written permission, please contact + openssl-core@openssl.org. + +5. Products derived from this software may not be called "OpenSSL" + nor may "OpenSSL" appear in their names without prior written + permission of the OpenSSL Project. + +6. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes software developed by the OpenSSL Project + for use in the OpenSSL Toolkit (http://www.openssl.org/)" + +THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY +EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR +ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. +``` + +### libssh2/libssh2 + +``` +/* Copyright (c) 2004-2007 Sara Golemon + * Copyright (c) 2005,2006 Mikhail Gusarov + * Copyright (c) 2006-2007 The Written Word, Inc. + * Copyright (c) 2007 Eli Fant + * Copyright (c) 2009-2021 Daniel Stenberg + * Copyright (C) 2008, 2009 Simon Josefsson + * Copyright (c) 2000 Markus Friedl + * Copyright (c) 2015 Microsoft Corp. + * All rights reserved. + * + * Redistribution and use in source and binary forms, + * with or without modification, are permitted provided + * that the following conditions are met: + * + * Redistributions of source code must retain the above + * copyright notice, this list of conditions and the + * following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the copyright holder nor the names + * of any other contributors may be used to endorse or + * promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + */ +``` + +### OpenSSL + +``` + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ +``` diff --git a/addons/godot-git-plugin/git_plugin.gdextension b/addons/godot-git-plugin/git_plugin.gdextension new file mode 100644 index 0000000..49fffbf --- /dev/null +++ b/addons/godot-git-plugin/git_plugin.gdextension @@ -0,0 +1,12 @@ +[configuration] + +entry_symbol = "git_plugin_init" +compatibility_minimum = "4.1.0" + +[libraries] + +macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" +windows.editor.x86_64 = "win64/libgit_plugin.windows.editor.x86_64.dll" +linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" +linux.editor.arm64 = "linux/libgit_plugin.linux.editor.arm64.so" +linux.editor.rv64 = "" diff --git a/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so new file mode 100644 index 0000000..8dab6db Binary files /dev/null and b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so differ diff --git a/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib new file mode 100644 index 0000000..644aa2a Binary files /dev/null and b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib differ diff --git a/addons/godot-git-plugin/plugin.cfg b/addons/godot-git-plugin/plugin.cfg new file mode 100644 index 0000000..9c4e36f --- /dev/null +++ b/addons/godot-git-plugin/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="Godot Git Plugin" +description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki" +author="twaritwaikar" +version="v3.1.1" +script="godot-git-plugin.gd" diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll new file mode 100644 index 0000000..47bbb1d Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll differ diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp new file mode 100644 index 0000000..6c68d89 Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp differ diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib new file mode 100644 index 0000000..4537929 Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib differ diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..adc26df --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..0057372 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dhs0nq84pfuvb" +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..aa32aed --- /dev/null +++ b/project.godot @@ -0,0 +1,79 @@ +; 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="Contra in Godot 4" +run/main_scene="res://scenes/mainmenu.tscn" +config/features=PackedStringArray("4.3", "GL Compatibility") +config/icon="res://icon.svg" + +[autoload] + +Singleton="*res://Scripts/Singleton.gd" + +[editor] + +version_control/plugin_name="GitPlugin" +version_control/autoload_on_startup=true + +[input] + +p1_shoot={ +"deadzone": 0.5, +"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":88,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +] +} +W={ +"deadzone": 0.5, +"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":87,"key_label":0,"unicode":87,"location":0,"echo":false,"script":null) +] +} +A={ +"deadzone": 0.5, +"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":65,"location":0,"echo":false,"script":null) +] +} +S={ +"deadzone": 0.5, +"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":83,"key_label":0,"unicode":83,"location":0,"echo":false,"script":null) +] +} +D={ +"deadzone": 0.5, +"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":68,"location":0,"echo":false,"script":null) +] +} +G={ +"deadzone": 0.5, +"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":71,"key_label":0,"unicode":71,"location":0,"echo":false,"script":null) +] +} +H={ +"deadzone": 0.5, +"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":72,"key_label":0,"unicode":72,"location":0,"echo":false,"script":null) +] +} +p1_select={ +"deadzone": 0.5, +"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":4194441,"key_label":0,"unicode":51,"location":0,"echo":false,"script":null) +] +} +p1_start={ +"deadzone": 0.5, +"events": [null, 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":4194438,"key_label":0,"unicode":48,"location":0,"echo":false,"script":null) +] +} + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" +environment/defaults/default_clear_color=Color(0, 0, 0, 1) diff --git a/scenes/bullet_enemy.tscn b/scenes/bullet_enemy.tscn new file mode 100644 index 0000000..fdbecf2 --- /dev/null +++ b/scenes/bullet_enemy.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=4 format=3 uid="uid://duai2mi4wq7h5"] + +[ext_resource type="Script" path="res://Scripts/enemyBullet.gd" id="1_3hibl"] +[ext_resource type="Texture2D" uid="uid://cvs8lcpnnqb8f" path="res://Sprites/proyectiles.png" id="2_736gn"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_dfuth"] +size = Vector2(4, 4) + +[node name="Bullet_Enemy" type="Node2D"] +position = Vector2(64, 83) + +[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["enemy_bullet"]] +script = ExtResource("1_3hibl") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] +scale = Vector2(0.375, 0.428571) +texture = ExtResource("2_736gn") +hframes = 7 +vframes = 2 +frame = 3 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D"] + +[connection signal="screen_exited" from="CharacterBody2D/VisibleOnScreenNotifier2D" to="CharacterBody2D" method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/bullet_enemy2.tscn b/scenes/bullet_enemy2.tscn new file mode 100644 index 0000000..5522502 --- /dev/null +++ b/scenes/bullet_enemy2.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=4 format=3 uid="uid://b6j0afkpl4kvd"] + +[ext_resource type="Script" path="res://Scripts/enemyBullet2.gd" id="1_6o3es"] +[ext_resource type="Texture2D" uid="uid://cvs8lcpnnqb8f" path="res://Sprites/proyectiles.png" id="2_oy8ti"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_dfuth"] +size = Vector2(6, 6) + +[node name="Bullet_Enemy" type="Node2D"] +position = Vector2(64, 83) + +[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["enemy_bullet"]] +script = ExtResource("1_6o3es") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] +scale = Vector2(0.695, 0.708571) +texture = ExtResource("2_oy8ti") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D"] + +[connection signal="screen_exited" from="CharacterBody2D/VisibleOnScreenNotifier2D" to="CharacterBody2D" method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/bullet_normal.tscn b/scenes/bullet_normal.tscn new file mode 100644 index 0000000..fedbadb --- /dev/null +++ b/scenes/bullet_normal.tscn @@ -0,0 +1,28 @@ +[gd_scene load_steps=4 format=3 uid="uid://cuygabuvqu0l"] + +[ext_resource type="Script" path="res://Scripts/bulletNormal.gd" id="1_tx600"] +[ext_resource type="Texture2D" uid="uid://cvs8lcpnnqb8f" path="res://Sprites/proyectiles.png" id="2_hcapq"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_dfuth"] +size = Vector2(4, 4) + +[node name="Bullet_Normal" type="Node2D"] +position = Vector2(64, 83) + +[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["player_bullet"]] +collision_mask = 2 +script = ExtResource("1_tx600") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] +scale = Vector2(0.375, 0.428571) +texture = ExtResource("2_hcapq") +hframes = 7 +vframes = 2 +frame = 3 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D"] + +[connection signal="screen_exited" from="CharacterBody2D/VisibleOnScreenNotifier2D" to="CharacterBody2D" method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/bullet_p1.tscn b/scenes/bullet_p1.tscn new file mode 100644 index 0000000..cc40e6f --- /dev/null +++ b/scenes/bullet_p1.tscn @@ -0,0 +1,108 @@ +[gd_scene load_steps=5 format=3 uid="uid://d0bikhslbmtng"] + +[ext_resource type="Script" path="res://Scripts/bulletP1Parent.gd" id="1_mnadc"] +[ext_resource type="Script" path="res://Scripts/bulletP1.gd" id="2_8kb0a"] +[ext_resource type="Texture2D" uid="uid://cvs8lcpnnqb8f" path="res://Sprites/proyectiles.png" id="2_hragb"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_dfuth"] +size = Vector2(4, 4) + +[node name="Bullet_P1" type="Node2D"] +position = Vector2(64, 83) +script = ExtResource("1_mnadc") + +[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, 3) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8kb0a") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] +scale = Vector2(-0.525, -0.6) +texture = ExtResource("2_hragb") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D"] + +[node name="CharacterBody2D2" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, 11) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8kb0a") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D2"] +scale = Vector2(-0.525, -0.6) +texture = ExtResource("2_hragb") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D2"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D2"] + +[node name="CharacterBody2D3" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, 18) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8kb0a") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D3"] +scale = Vector2(-0.525, -0.6) +texture = ExtResource("2_hragb") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D3"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D3"] + +[node name="CharacterBody2D4" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, -4) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8kb0a") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D4"] +scale = Vector2(-0.525, -0.6) +texture = ExtResource("2_hragb") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D4"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D4"] + +[node name="CharacterBody2D5" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, -11) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8kb0a") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D5"] +scale = Vector2(-0.525, -0.6) +texture = ExtResource("2_hragb") +hframes = 7 +vframes = 2 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D5"] +shape = SubResource("RectangleShape2D_dfuth") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D5"] + +[connection signal="screen_exited" from="CharacterBody2D/VisibleOnScreenNotifier2D" to="CharacterBody2D" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D2/VisibleOnScreenNotifier2D" to="CharacterBody2D2" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D3/VisibleOnScreenNotifier2D" to="CharacterBody2D3" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D4/VisibleOnScreenNotifier2D" to="CharacterBody2D4" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D5/VisibleOnScreenNotifier2D" to="CharacterBody2D5" method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/bullet_p2.tscn b/scenes/bullet_p2.tscn new file mode 100644 index 0000000..64170fe --- /dev/null +++ b/scenes/bullet_p2.tscn @@ -0,0 +1,73 @@ +[gd_scene load_steps=5 format=3 uid="uid://b5kmq7tqq67q4"] + +[ext_resource type="Script" path="res://Scripts/bullet_p2.gd" id="1_jirtf"] +[ext_resource type="Script" path="res://Scripts/BulletSub2.gd" id="2_8la7c"] +[ext_resource type="Texture2D" uid="uid://cvs8lcpnnqb8f" path="res://Sprites/proyectiles.png" id="3_13nmd"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_0hof4"] +size = Vector2(8, 4) + +[node name="Bullet_P2" type="Node2D"] +position = Vector2(64, 83) +script = ExtResource("1_jirtf") + +[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(0, 3) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8la7c") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] +scale = Vector2(-0.8, -0.914) +texture = ExtResource("3_13nmd") +hframes = 7 +vframes = 2 +frame = 8 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] +position = Vector2(0, -1) +shape = SubResource("RectangleShape2D_0hof4") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D"] + +[node name="CharacterBody2D2" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(12, 3) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8la7c") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D2"] +scale = Vector2(-0.8, -0.914) +texture = ExtResource("3_13nmd") +hframes = 7 +vframes = 2 +frame = 8 + +[node name="CollisionShape2D2" type="CollisionShape2D" parent="CharacterBody2D2"] +position = Vector2(-1, -1) +shape = SubResource("RectangleShape2D_0hof4") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D2"] + +[node name="CharacterBody2D3" type="CharacterBody2D" parent="." groups=["player_bullet"]] +position = Vector2(24, 3) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_8la7c") + +[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D3"] +scale = Vector2(-0.8, -0.914) +texture = ExtResource("3_13nmd") +hframes = 7 +vframes = 2 +frame = 8 + +[node name="CollisionShape2D3" type="CollisionShape2D" parent="CharacterBody2D3"] +position = Vector2(-1, -1) +shape = SubResource("RectangleShape2D_0hof4") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="CharacterBody2D3"] + +[connection signal="screen_exited" from="CharacterBody2D/VisibleOnScreenNotifier2D" to="CharacterBody2D" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D2/VisibleOnScreenNotifier2D" to="CharacterBody2D2" method="_on_visible_on_screen_notifier_2d_screen_exited"] +[connection signal="screen_exited" from="CharacterBody2D3/VisibleOnScreenNotifier2D" to="CharacterBody2D3" method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/enemy_1.tscn b/scenes/enemy_1.tscn new file mode 100644 index 0000000..a1de943 --- /dev/null +++ b/scenes/enemy_1.tscn @@ -0,0 +1,85 @@ +[gd_scene load_steps=8 format=3 uid="uid://baf116r6im2t5"] + +[ext_resource type="Script" path="res://Scripts/Enemy1.gd" id="1_igep6"] +[ext_resource type="Texture2D" uid="uid://wcxuabeva6d1" path="res://Sprites/enemigo_base.png" id="2_6l3rw"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ao67j"] +size = Vector2(9, 30) + +[sub_resource type="Animation" id="Animation_5ddwa"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_cu8uk"] +resource_name = "jump" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} + +[sub_resource type="Animation" id="Animation_1auo3"] +resource_name = "run" +length = 0.3 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [0, 1, 2] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_i8kxs"] +_data = { +"RESET": SubResource("Animation_5ddwa"), +"jump": SubResource("Animation_cu8uk"), +"run": SubResource("Animation_1auo3") +} + +[node name="Enemy1" type="CharacterBody2D" groups=["enemy"]] +position = Vector2(397, 87) +collision_layer = 3 +collision_mask = 3 +script = ExtResource("1_igep6") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_6l3rw") +hframes = 3 +vframes = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(-1.5, 1) +shape = SubResource("RectangleShape2D_ao67j") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +autoplay = "run" +libraries = { +"": SubResource("AnimationLibrary_i8kxs") +} + +[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."] diff --git a/scenes/game.gd b/scenes/game.gd new file mode 100644 index 0000000..2e1b0e4 --- /dev/null +++ b/scenes/game.gd @@ -0,0 +1,94 @@ +extends Node2D + +var lives_p1 = 2 +var lives_p2 = 2 +var player1 = preload("res://scenes/player_1.tscn") +var player2 = preload("res://scenes/player_2.tscn") + +var sfxScn = preload("res://scenes/sfx.tscn") + +var score_p1 = 0 +var score_p2 = 0 + +# Called when the node enters the scene tree for the first time. +func _ready(): + respawnP1() + if(Singleton.playerNumbers > 1): + respawnP2() + else: + lives_p2 = 0 + + updateLives() + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func respawnP1(): + updateLives() + if(lives_p1 >= 0): + var newPlayer = player1.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newPlayer) + newPlayer.global_position = $SpawnPoint.global_position + else: + pass + +func respawnP2(): + updateLives() + if(lives_p2 >= 0): + var newPlayer = player2.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newPlayer) + newPlayer.global_position = $SpawnPoint.global_position + var allPlayers = get_tree().get_nodes_in_group("player") + for p in allPlayers: + p.add_collision_exception_with(newPlayer.get_node("char")) + + else: + pass + +func updateLives(): + if(lives_p1 > 1): + $"UI/P1-1".visible = true + $"UI/P1-2".visible = true + elif(lives_p1 == 1): + $"UI/P1-1".visible = true + $"UI/P1-2".visible = false + else: + $"UI/P1-1".visible = false + $"UI/P1-2".visible = false + + if(lives_p2 > 1): + $"UI/P2-1".visible = true + $"UI/P2-2".visible = true + elif(lives_p2 == 1): + $"UI/P2-1".visible = true + $"UI/P2-2".visible = false + else: + $"UI/P2-1".visible = false + $"UI/P2-2".visible = false + +func addNewLife_P1(): + lives_p1 += 1 + updateLives() + +func setP1Score(num): + score_p1 += num + $UI/P1_Score.text = str(score_p1) + +func setP2Score(num): + score_p2 += num + $UI/P2_Score.text = str(score_p2) + +func createSFX(num): + var newSfx = sfxScn.instantiate() + var lvl = get_tree().get_first_node_in_group("level") + lvl.add_child(newSfx) + var newSound = load("res://BGM-SFX/Contra SFX (" + str(num) + ").wav" ) + newSfx.set_stream(newSound) + newSfx.play() + +func _on_dead_zone_body_entered(body): + if(body.is_in_group("player")): + body.death() diff --git a/scenes/game.tscn b/scenes/game.tscn new file mode 100644 index 0000000..e82aa86 --- /dev/null +++ b/scenes/game.tscn @@ -0,0 +1,720 @@ +[gd_scene load_steps=46 format=3 uid="uid://b6lgtp8570ugx"] + +[ext_resource type="Texture2D" uid="uid://3sw2shp6xho6" path="res://Texturas/Texturas/nivel1.png" id="1_7csxj"] +[ext_resource type="Script" path="res://scenes/game.gd" id="1_nfmvh"] +[ext_resource type="Script" path="res://Scripts/PowerUpMachine.gd" id="2_fk0p3"] +[ext_resource type="Texture2D" uid="uid://dww2rpwbom3vj" path="res://Sprites/powerup_machine.png" id="3_7jwfd"] +[ext_resource type="Script" path="res://Scripts/cam.gd" id="5_25508"] +[ext_resource type="PackedScene" uid="uid://baf116r6im2t5" path="res://scenes/enemy_1.tscn" id="6_417ua"] +[ext_resource type="Script" path="res://Scripts/BridgeArea.gd" id="8_ck76w"] +[ext_resource type="Texture2D" uid="uid://duwsaoeod0rav" path="res://Sprites/puente.png" id="9_4jn0p"] +[ext_resource type="PackedScene" uid="uid://cg45aibxjyrpy" path="res://scenes/power_up_container.tscn" id="9_st53a"] +[ext_resource type="Texture2D" uid="uid://ccwai1enfyly1" path="res://Sprites/explosiones.png" id="10_d7nbj"] +[ext_resource type="Script" path="res://Scripts/EnemyMachine.gd" id="11_woibc"] +[ext_resource type="Texture2D" uid="uid://exdhd0pbxiei" path="res://Sprites/torreta.png" id="12_x5k6y"] +[ext_resource type="Script" path="res://Scripts/Boss.gd" id="13_dpce1"] +[ext_resource type="Texture2D" uid="uid://1dfeq4hqwq5m" path="res://Sprites/maquina_boss_base.png" id="14_ththg"] +[ext_resource type="Texture2D" uid="uid://bq3id50u04uu0" path="res://Sprites/maquina_boss_arma.png" id="15_06dlm"] +[ext_resource type="Texture2D" uid="uid://plxgkoh6d7nj" path="res://Sprites/maquina_boss_vida.png" id="16_nejd6"] +[ext_resource type="Texture2D" uid="uid://ck83usvgfx4qq" path="res://Sprites/maquina_boss_base - copia.png" id="17_0uktj"] +[ext_resource type="Texture2D" uid="uid://d3e7at1aptrgn" path="res://Sprites/vidas.png" id="18_w1cgy"] +[ext_resource type="FontFile" uid="uid://l5qkyo43m28e" path="res://Font/PressStart2P.ttf" id="19_5jovt"] +[ext_resource type="AudioStream" uid="uid://buick78fh6ono" path="res://BGM-SFX/03_-_Contra_-_NES_-_Jungle.ogg" id="20_pskb0"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xg50y"] +size = Vector2(278, 7) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_v1lpj"] +size = Vector2(249, 7) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_6mif0"] + +[sub_resource type="Animation" id="Animation_nkoyc"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [4] +} + +[sub_resource type="Animation" id="Animation_dkav5"] +resource_name = "closed" +length = 3.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_i1knc"] +resource_name = "closed_opened" +length = 0.3 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [0, 1, 4] +} + +[sub_resource type="Animation" id="Animation_2r113"] +resource_name = "opened" +length = 3.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), +"update": 1, +"values": [4, 5, 6, 5, 4, 4, 5, 6, 5, 4, 4, 5, 6, 5, 4, 4, 5, 6, 5, 4, 4, 5, 6, 5, 4, 4, 5, 6, 5] +} + +[sub_resource type="Animation" id="Animation_xgj4e"] +resource_name = "opened_closed" +length = 0.4 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [4, 3, 0] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_4j48k"] +_data = { +"RESET": SubResource("Animation_nkoyc"), +"closed": SubResource("Animation_dkav5"), +"closed_opened": SubResource("Animation_i1knc"), +"opened": SubResource("Animation_2r113"), +"opened_closed": SubResource("Animation_xgj4e") +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_j2h2p"] +size = Vector2(20, 243) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ju12q"] +size = Vector2(734, 5) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_pw0dq"] +size = Vector2(160, 14) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_8pamp"] +size = Vector2(59, 8) + +[sub_resource type="Animation" id="Animation_emvef"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("BridgeArea/Sprite2D: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("BridgeArea/Sprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} + +[sub_resource type="Animation" id="Animation_hdbtl"] +resource_name = "explosion1" +length = 0.6 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("BridgeArea/Sprite2D:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.3), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [true, false] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("BridgeArea/Sprite2D:frame") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [3, 4, 5] +} + +[sub_resource type="Animation" id="Animation_hl6bs"] +resource_name = "idle" +length = 0.1 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("BridgeArea/Sprite2D:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_brpgk"] +_data = { +"RESET": SubResource("Animation_emvef"), +"explosion1": SubResource("Animation_hdbtl"), +"idle": SubResource("Animation_hl6bs") +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_hiiy1"] +size = Vector2(42, 14) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_vplqg"] +size = Vector2(134, 207) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_p1ydw"] +size = Vector2(10, 12) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_orjuf"] +size = Vector2(13, 7) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6oxo"] +size = Vector2(17, 17) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_mgqos"] +size = Vector2(6, 154) + +[sub_resource type="LabelSettings" id="LabelSettings_oe5ma"] +font = ExtResource("19_5jovt") +font_size = 24 + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_u23gi"] +size = Vector2(3497, 30) + +[node name="main" type="Node2D" groups=["main"]] +script = ExtResource("1_nfmvh") + +[node name="SpawnPoint" type="Node2D" parent="." groups=["spawnPoint"]] +position = Vector2(172, 54) + +[node name="Level" type="Node2D" parent="." groups=["level"]] +position = Vector2(1728, 122) + +[node name="background" type="Sprite2D" parent="Level"] +texture = ExtResource("1_7csxj") + +[node name="Water" type="StaticBody2D" parent="Level" groups=["water"]] +position = Vector2(-1614, 92) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Water"] +position = Vector2(29, 0.5) +shape = SubResource("RectangleShape2D_xg50y") + +[node name="Water2" type="StaticBody2D" parent="Level" groups=["water"]] +position = Vector2(-1280, 92) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Water2"] +position = Vector2(31.5, 1.5) +shape = SubResource("RectangleShape2D_v1lpj") + +[node name="PowerUpMachine" type="Area2D" parent="Level" groups=["powerupcontainer"]] +position = Vector2(-1393, 29) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("2_fk0p3") + +[node name="Sprite2D" type="Sprite2D" parent="Level/PowerUpMachine"] +texture = ExtResource("3_7jwfd") +hframes = 7 +frame = 4 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/PowerUpMachine"] +shape = SubResource("RectangleShape2D_6mif0") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Level/PowerUpMachine"] +libraries = { +"": SubResource("AnimationLibrary_4j48k") +} +autoplay = "opened" + +[node name="End" type="Node2D" parent="Level" groups=["end"]] +position = Vector2(1496, -1) + +[node name="cam" type="Camera2D" parent="." groups=["camera"]] +position = Vector2(231, 121) +zoom = Vector2(2.5, 2.7) +script = ExtResource("5_25508") + +[node name="min" type="Node2D" parent="cam"] +position = Vector2(-205, 0) + +[node name="max" type="Node2D" parent="cam"] +position = Vector2(199, 0) + +[node name="Area2D" type="Area2D" parent="cam"] +position = Vector2(160, 0) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="cam/Area2D"] +position = Vector2(0, -0.5) +shape = SubResource("RectangleShape2D_j2h2p") + +[node name="platform1" type="StaticBody2D" parent="." groups=["ground"]] +position = Vector2(384, 113) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform1"] +position = Vector2(14, -2.5) +shape = SubResource("RectangleShape2D_ju12q") + +[node name="platform3" type="StaticBody2D" parent="." groups=["ground"]] +position = Vector2(1539, 115) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform3"] +position = Vector2(14, -2.5) +shape = SubResource("RectangleShape2D_ju12q") + +[node name="platform4" type="StaticBody2D" parent="." groups=["ground"]] +position = Vector2(972, 115) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform4"] +position = Vector2(3, 0) +shape = SubResource("RectangleShape2D_pw0dq") + +[node name="platform5" type="StaticBody2D" parent="." groups=["ground"]] +position = Vector2(3202, 112) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform5"] +position = Vector2(3, 0) +shape = SubResource("RectangleShape2D_pw0dq") + +[node name="platform2" type="StaticBody2D" parent="." groups=["ground"]] +position = Vector2(305, 213) +collision_layer = 32769 +collision_mask = 32769 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform2"] +position = Vector2(15.5, -3) +shape = SubResource("RectangleShape2D_8pamp") + +[node name="PowerUpContainer" parent="." instance=ExtResource("9_st53a")] + +[node name="Enemy1" parent="." instance=ExtResource("6_417ua")] + +[node name="Enemy2" parent="." instance=ExtResource("6_417ua")] +position = Vector2(1012, 90) + +[node name="BridgeArea" type="Area2D" parent="."] +position = Vector2(829, 122) +script = ExtResource("8_ck76w") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="BridgeArea"] +root_node = NodePath("../..") +libraries = { +"": SubResource("AnimationLibrary_brpgk") +} +autoplay = "idle" + +[node name="Bridge" type="StaticBody2D" parent="BridgeArea"] +position = Vector2(-41, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea/Bridge"] +texture = ExtResource("9_4jn0p") +hframes = 3 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea/Bridge"] +position = Vector2(0, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="Bridge2" type="StaticBody2D" parent="BridgeArea"] +position = Vector2(1, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea/Bridge2"] +texture = ExtResource("9_4jn0p") +hframes = 3 +frame = 1 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea/Bridge2"] +position = Vector2(0, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="Bridge3" type="StaticBody2D" parent="BridgeArea"] +position = Vector2(1, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea/Bridge3"] +position = Vector2(42, 0) +texture = ExtResource("9_4jn0p") +hframes = 3 +frame = 2 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea/Bridge3"] +position = Vector2(42, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea"] +position = Vector2(0, 1.5) +shape = SubResource("RectangleShape2D_vplqg") + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea"] +visible = false +position = Vector2(-40, -9) +texture = ExtResource("10_d7nbj") +hframes = 3 +vframes = 2 +frame = 3 + +[node name="A1" type="Node2D" parent="BridgeArea"] +position = Vector2(-40, -8) + +[node name="A2" type="Node2D" parent="BridgeArea"] +position = Vector2(4, -8) + +[node name="A3" type="Node2D" parent="BridgeArea"] +position = Vector2(37, -8) + +[node name="Timer" type="Timer" parent="BridgeArea"] +wait_time = 0.5 +one_shot = true + +[node name="BridgeArea2" type="Area2D" parent="."] +position = Vector2(1118, 122) +script = ExtResource("8_ck76w") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="BridgeArea2"] +root_node = NodePath("../..") +libraries = { +"": SubResource("AnimationLibrary_brpgk") +} +autoplay = "idle" + +[node name="Bridge" type="StaticBody2D" parent="BridgeArea2"] +position = Vector2(-41, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea2/Bridge"] +texture = ExtResource("9_4jn0p") +hframes = 3 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea2/Bridge"] +position = Vector2(0, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="Bridge2" type="StaticBody2D" parent="BridgeArea2"] +position = Vector2(1, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea2/Bridge2"] +texture = ExtResource("9_4jn0p") +hframes = 3 +frame = 1 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea2/Bridge2"] +position = Vector2(0, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="Bridge3" type="StaticBody2D" parent="BridgeArea2"] +position = Vector2(1, 2) + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea2/Bridge3"] +position = Vector2(42, 0) +texture = ExtResource("9_4jn0p") +hframes = 3 +frame = 2 +region_rect = Rect2(0, 0, 48, 32) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea2/Bridge3"] +position = Vector2(42, -9) +shape = SubResource("RectangleShape2D_hiiy1") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="BridgeArea2"] +position = Vector2(0, 1.5) +shape = SubResource("RectangleShape2D_vplqg") + +[node name="Sprite2D" type="Sprite2D" parent="BridgeArea2"] +visible = false +position = Vector2(-40, -9) +texture = ExtResource("10_d7nbj") +hframes = 3 +vframes = 2 +frame = 3 + +[node name="A1" type="Node2D" parent="BridgeArea2"] +position = Vector2(-40, -8) + +[node name="A2" type="Node2D" parent="BridgeArea2"] +position = Vector2(4, -8) + +[node name="A3" type="Node2D" parent="BridgeArea2"] +position = Vector2(37, -8) + +[node name="Timer" type="Timer" parent="BridgeArea2"] +wait_time = 0.5 +one_shot = true + +[node name="EnemyMachine" type="Area2D" parent="."] +position = Vector2(1267, 151) +script = ExtResource("11_woibc") + +[node name="Sprite2D" type="Sprite2D" parent="EnemyMachine"] +texture = ExtResource("12_x5k6y") +hframes = 4 +frame = 3 + +[node name="Aim" type="Node2D" parent="EnemyMachine/Sprite2D"] +position = Vector2(13, 0) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyMachine"] +position = Vector2(-3, 0) +shape = SubResource("RectangleShape2D_p1ydw") + +[node name="cooldown" type="Timer" parent="EnemyMachine"] +wait_time = 2.0 +one_shot = true + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="EnemyMachine"] + +[node name="EnemyMachine2" type="Area2D" parent="."] +position = Vector2(3123, 183) +script = ExtResource("11_woibc") + +[node name="Sprite2D" type="Sprite2D" parent="EnemyMachine2"] +texture = ExtResource("12_x5k6y") +hframes = 4 +frame = 3 + +[node name="Aim" type="Node2D" parent="EnemyMachine2/Sprite2D"] +position = Vector2(13, 0) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyMachine2"] +position = Vector2(-3, 0) +shape = SubResource("RectangleShape2D_p1ydw") + +[node name="cooldown" type="Timer" parent="EnemyMachine2"] +wait_time = 2.0 +one_shot = true + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="EnemyMachine2"] + +[node name="EnemyMachine3" type="Area2D" parent="."] +position = Vector2(3251, 183) +script = ExtResource("11_woibc") + +[node name="Sprite2D" type="Sprite2D" parent="EnemyMachine3"] +texture = ExtResource("12_x5k6y") +hframes = 4 +frame = 3 + +[node name="Aim" type="Node2D" parent="EnemyMachine3/Sprite2D"] +position = Vector2(13, 0) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyMachine3"] +position = Vector2(-3, 0) +shape = SubResource("RectangleShape2D_p1ydw") + +[node name="cooldown" type="Timer" parent="EnemyMachine3"] +wait_time = 2.0 +one_shot = true + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="EnemyMachine3"] + +[node name="Boss" type="Node2D" parent="."] +position = Vector2(3400, 123) +script = ExtResource("13_dpce1") + +[node name="Base" type="Sprite2D" parent="Boss"] +texture = ExtResource("14_ththg") + +[node name="Gun" type="Area2D" parent="Boss"] +position = Vector2(-44, 0) + +[node name="Gun_Spr" type="Sprite2D" parent="Boss/Gun"] +position = Vector2(0, 5) +texture = ExtResource("15_06dlm") +hframes = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Boss/Gun"] +position = Vector2(0.5, 5.5) +shape = SubResource("RectangleShape2D_orjuf") + +[node name="Sp1" type="Node2D" parent="Boss/Gun"] +position = Vector2(-10, 5) + +[node name="Gun2" type="Area2D" parent="Boss"] +position = Vector2(-27, 0) + +[node name="Gun_Spr" type="Sprite2D" parent="Boss/Gun2"] +position = Vector2(0, 5) +texture = ExtResource("15_06dlm") +hframes = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Boss/Gun2"] +position = Vector2(0.5, 5.5) +shape = SubResource("RectangleShape2D_orjuf") + +[node name="Sp2" type="Node2D" parent="Boss/Gun2"] +position = Vector2(-9, 5) + +[node name="Core" type="Area2D" parent="Boss"] +position = Vector2(0, 51) + +[node name="Core" type="Sprite2D" parent="Boss/Core"] +texture = ExtResource("16_nejd6") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Boss/Core"] +position = Vector2(-38.5, -2.5) +shape = SubResource("RectangleShape2D_c6oxo") + +[node name="Top" type="Sprite2D" parent="Boss"] +position = Vector2(-8, 8) +texture = ExtResource("17_0uktj") + +[node name="Barrier" type="StaticBody2D" parent="Boss"] +position = Vector2(-44, 0) +collision_layer = 16384 +collision_mask = 16384 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Boss/Barrier"] +position = Vector2(-7, 5) +shape = SubResource("RectangleShape2D_mgqos") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Boss"] +position = Vector2(-31, 0) + +[node name="Timer" type="Timer" parent="Boss"] + +[node name="UI" type="CanvasLayer" parent="."] + +[node name="P1-1" type="Sprite2D" parent="UI"] +position = Vector2(60, 51) +scale = Vector2(3, 3.1875) +texture = ExtResource("18_w1cgy") +hframes = 2 + +[node name="P1-2" type="Sprite2D" parent="UI"] +position = Vector2(91, 51) +scale = Vector2(3, 3.1875) +texture = ExtResource("18_w1cgy") +hframes = 2 + +[node name="P2-1" type="Sprite2D" parent="UI"] +position = Vector2(1041, 47.5) +scale = Vector2(3, 3.1875) +texture = ExtResource("18_w1cgy") +hframes = 2 +frame = 1 + +[node name="P2-2" type="Sprite2D" parent="UI"] +position = Vector2(1072, 47.5) +scale = Vector2(3, 3.1875) +texture = ExtResource("18_w1cgy") +hframes = 2 +frame = 1 + +[node name="P1_Score" type="Label" parent="UI"] +offset_left = 119.0 +offset_top = 44.0 +offset_right = 383.0 +offset_bottom = 79.0 +text = "0000000000" +label_settings = SubResource("LabelSettings_oe5ma") +vertical_alignment = 1 + +[node name="P2_Score" type="Label" parent="UI"] +offset_left = 777.0 +offset_top = 44.0 +offset_right = 1041.0 +offset_bottom = 79.0 +text = "0000000000" +label_settings = SubResource("LabelSettings_oe5ma") +vertical_alignment = 1 + +[node name="BGM" type="AudioStreamPlayer" parent="."] +stream = ExtResource("20_pskb0") +autoplay = true + +[node name="DeadZone" type="Area2D" parent="."] +position = Vector2(10, 254) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="DeadZone"] +position = Vector2(1738.5, 5) +shape = SubResource("RectangleShape2D_u23gi") + +[connection signal="body_entered" from="Level/PowerUpMachine" to="Level/PowerUpMachine" method="_on_body_entered"] +[connection signal="animation_finished" from="Level/PowerUpMachine/AnimationPlayer" to="Level/PowerUpMachine" method="_on_animation_player_animation_finished"] +[connection signal="body_entered" from="cam/Area2D" to="cam" method="_on_area_2d_body_entered"] +[connection signal="body_entered" from="BridgeArea" to="BridgeArea" method="_on_body_entered"] +[connection signal="animation_finished" from="BridgeArea/AnimationPlayer" to="BridgeArea" method="_on_animation_player_animation_finished"] +[connection signal="timeout" from="BridgeArea/Timer" to="BridgeArea" method="_on_timer_timeout"] +[connection signal="body_entered" from="BridgeArea2" to="BridgeArea2" method="_on_body_entered"] +[connection signal="animation_finished" from="BridgeArea2/AnimationPlayer" to="BridgeArea2" method="_on_animation_player_animation_finished"] +[connection signal="timeout" from="BridgeArea2/Timer" to="BridgeArea2" method="_on_timer_timeout"] +[connection signal="body_entered" from="EnemyMachine" to="EnemyMachine" method="_on_body_entered"] +[connection signal="timeout" from="EnemyMachine/cooldown" to="EnemyMachine" method="_on_cooldown_timeout"] +[connection signal="screen_entered" from="EnemyMachine/VisibleOnScreenNotifier2D" to="EnemyMachine" method="_on_visible_on_screen_notifier_2d_screen_entered"] +[connection signal="body_entered" from="EnemyMachine2" to="EnemyMachine2" method="_on_body_entered"] +[connection signal="timeout" from="EnemyMachine2/cooldown" to="EnemyMachine2" method="_on_cooldown_timeout"] +[connection signal="screen_entered" from="EnemyMachine2/VisibleOnScreenNotifier2D" to="EnemyMachine2" method="_on_visible_on_screen_notifier_2d_screen_entered"] +[connection signal="body_entered" from="EnemyMachine3" to="EnemyMachine3" method="_on_body_entered"] +[connection signal="timeout" from="EnemyMachine3/cooldown" to="EnemyMachine3" method="_on_cooldown_timeout"] +[connection signal="screen_entered" from="EnemyMachine3/VisibleOnScreenNotifier2D" to="EnemyMachine3" method="_on_visible_on_screen_notifier_2d_screen_entered"] +[connection signal="body_entered" from="Boss/Gun" to="Boss" method="_on_gun_body_entered"] +[connection signal="body_entered" from="Boss/Gun2" to="Boss" method="_on_gun_2_body_entered"] +[connection signal="body_entered" from="Boss/Core" to="Boss" method="_on_core_body_entered"] +[connection signal="screen_entered" from="Boss/VisibleOnScreenNotifier2D" to="Boss" method="_on_visible_on_screen_notifier_2d_screen_entered"] +[connection signal="timeout" from="Boss/Timer" to="Boss" method="_on_timer_timeout"] +[connection signal="body_entered" from="DeadZone" to="." method="_on_dead_zone_body_entered"] diff --git a/scenes/mainmenu.gd b/scenes/mainmenu.gd new file mode 100644 index 0000000..31cfcbf --- /dev/null +++ b/scenes/mainmenu.gd @@ -0,0 +1,17 @@ +extends Node2D + +var currentOpt = 1 +var maxOpt = 2 + +func _ready(): + pass # Replace with function body. + +func _process(delta): + if(Input.is_action_just_pressed("p1_select")): + currentOpt += 1 + if(currentOpt > maxOpt): + currentOpt = 1 + $UI/arrow.global_position.y = get_node("UI/Op"+str(currentOpt)).global_position.y + Singleton.playerNumbers = currentOpt + elif(Input.is_action_just_pressed("p1_start")): + get_tree().change_scene_to_file("res://scenes/game.tscn") diff --git a/scenes/mainmenu.tscn b/scenes/mainmenu.tscn new file mode 100644 index 0000000..57bc81a --- /dev/null +++ b/scenes/mainmenu.tscn @@ -0,0 +1,74 @@ +[gd_scene load_steps=8 format=3 uid="uid://bexxxqqu31ta2"] + +[ext_resource type="Texture2D" uid="uid://tbg10oyv2eqg" path="res://Texturas/Texturas/mainmenu.png" id="1_bcb5b"] +[ext_resource type="Script" path="res://scenes/mainmenu.gd" id="1_ehfvg"] +[ext_resource type="Texture2D" uid="uid://c1ofyarf58t3y" path="res://Texturas/Texturas/mainmenucursor.png" id="2_f3sdk"] +[ext_resource type="AudioStream" uid="uid://c6xdocgeumijg" path="res://BGM-SFX/01_-_Contra_-_NES_-_Title.ogg" id="4_kqsqh"] + +[sub_resource type="Animation" id="Animation_hlj5h"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("bkg:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(1161, 0)] +} + +[sub_resource type="Animation" id="Animation_x33mt"] +resource_name = "intro" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("bkg:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(1161, 0), Vector2(178, -3)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_2lvrt"] +_data = { +"RESET": SubResource("Animation_hlj5h"), +"intro": SubResource("Animation_x33mt") +} + +[node name="mainmenu" type="Node2D"] +script = ExtResource("1_ehfvg") + +[node name="UI" type="CanvasLayer" parent="."] + +[node name="bkg" type="TextureRect" parent="UI"] +offset_left = 1161.0 +offset_right = 1927.0 +offset_bottom = 651.0 +texture = ExtResource("1_bcb5b") + +[node name="arrow" type="Sprite2D" parent="UI"] +position = Vector2(307, 449) +scale = Vector2(3.375, 3.1) +texture = ExtResource("2_f3sdk") + +[node name="Op1" type="Node2D" parent="UI"] +position = Vector2(308, 448) + +[node name="Op2" type="Node2D" parent="UI"] +position = Vector2(309, 494) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="UI"] +libraries = { +"": SubResource("AnimationLibrary_2lvrt") +} +autoplay = "intro" + +[node name="bgm" type="AudioStreamPlayer" parent="."] +stream = ExtResource("4_kqsqh") +autoplay = true diff --git a/scenes/player_1.tscn b/scenes/player_1.tscn new file mode 100644 index 0000000..a3146b9 --- /dev/null +++ b/scenes/player_1.tscn @@ -0,0 +1,1164 @@ +[gd_scene load_steps=26 format=3 uid="uid://56btpcgudij7"] + +[ext_resource type="Script" path="res://Scripts/player1.gd" id="1_xgg3e"] +[ext_resource type="Texture2D" uid="uid://b0x8mf13gbktm" path="res://Sprites/muerte_j1.png" id="2_ch8dh"] +[ext_resource type="Texture2D" uid="uid://42jbdfqg673e" path="res://Sprites/j1_run.png" id="3_2exr6"] +[ext_resource type="Texture2D" uid="uid://bxrthk1syjq0q" path="res://Sprites/j1_idle.png" id="4_pxyvc"] +[ext_resource type="Texture2D" uid="uid://ddjnqffxnohth" path="res://Sprites/j1_down.png" id="5_tfk26"] +[ext_resource type="Texture2D" uid="uid://bbmsw2jai28mv" path="res://Sprites/j1_salto.png" id="6_57iwh"] +[ext_resource type="Texture2D" uid="uid://87jobbti0q8i" path="res://Sprites/j1_water.png" id="7_jstvf"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_g1set"] +size = Vector2(10, 37) + +[sub_resource type="Animation" id="Animation_2x4p3"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:texture") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_2exr6")] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:hframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:vframes") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-2, 4)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="Animation" id="Animation_640c7"] +resource_name = "aim_up" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("4_pxyvc")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:frame") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xjjmu"] +size = Vector2(29, 12) + +[sub_resource type="Animation" id="Animation_7hd3j"] +resource_name = "crouch" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("5_tfk26")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 13)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:frame") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_xjjmu")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, 15)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xog2h"] +size = Vector2(29, 8) + +[sub_resource type="Animation" id="Animation_a6vsf"] +resource_name = "death" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("2_ch8dh")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_xog2h")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, 7)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:frame") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_hoqit"] +resource_name = "down_right" +length = 0.2 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_2exr6")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [10, 11, 12] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_u03d2"] +resource_name = "idle" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:texture") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("4_pxyvc")] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:hframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:vframes") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_hjqum"] +size = Vector2(13, 20) + +[sub_resource type="Animation" id="Animation_otdfs"] +resource_name = "jump" +length = 0.3 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("6_57iwh")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [4] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, -1)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:shape") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_hjqum")] +} + +[sub_resource type="Animation" id="Animation_imlca"] +resource_name = "run" +length = 0.4 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_2exr6")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3, 4] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-2, 4)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_5t8ep"] +size = Vector2(10, 11) + +[sub_resource type="Animation" id="Animation_t3hum"] +resource_name = "swim" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_jstvf")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_8n0wd"] +resource_name = "swim_hide" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_jstvf")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_orrd8"] +resource_name = "swim_idle" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_jstvf")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_f80r4"] +resource_name = "up_right" +length = 0.2 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_2exr6")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [5, 6, 7] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_mip2x"] +_data = { +"RESET": SubResource("Animation_2x4p3"), +"aim_up": SubResource("Animation_640c7"), +"crouch": SubResource("Animation_7hd3j"), +"death": SubResource("Animation_a6vsf"), +"down_right": SubResource("Animation_hoqit"), +"idle": SubResource("Animation_u03d2"), +"jump": SubResource("Animation_otdfs"), +"run": SubResource("Animation_imlca"), +"swim": SubResource("Animation_t3hum"), +"swim_hide": SubResource("Animation_8n0wd"), +"swim_idle": SubResource("Animation_orrd8"), +"up_right": SubResource("Animation_f80r4") +} + +[node name="Player1" type="Node2D"] +position = Vector2(51, 84) + +[node name="char" type="CharacterBody2D" parent="." groups=["player"]] +position = Vector2(3, 0) +collision_layer = 49153 +collision_mask = 49153 +script = ExtResource("1_xgg3e") + +[node name="spr" type="Sprite2D" parent="char"] +texture = ExtResource("3_2exr6") +offset = Vector2(-2, 4) +flip_h = true +hframes = 5 +vframes = 3 +region_rect = Rect2(29.5086, 2.32607, 17.2802, 40.571) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="char"] +position = Vector2(-1.25, 2.5) +shape = SubResource("RectangleShape2D_g1set") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="char"] +root_node = NodePath("../..") +autoplay = "idle" +libraries = { +"": SubResource("AnimationLibrary_mip2x") +} + +[node name="SpawnPositions" type="Node2D" parent="char"] + +[node name="Aim_Right" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(8, 0) + +[node name="Aim_RightUp" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(10, -15) + +[node name="Aim_RightDown" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(10, 11) + +[node name="Aim_Left" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, 0) + +[node name="Aim_LeftUp" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, -15) + +[node name="Aim_LeftDown" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, 11) + +[node name="Aim_Up" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(0, -24) + +[node name="Aim_Down" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(0, 24) + +[node name="Timer" type="Timer" parent="char"] +wait_time = 0.5 +one_shot = true + +[node name="Respawn" type="Timer" parent="char"] +wait_time = 2.0 +one_shot = true + +[connection signal="timeout" from="char/Timer" to="char" method="_on_timer_timeout"] +[connection signal="timeout" from="char/Respawn" to="char" method="_on_respawn_timeout"] diff --git a/scenes/player_2.tscn b/scenes/player_2.tscn new file mode 100644 index 0000000..c2bf1a6 --- /dev/null +++ b/scenes/player_2.tscn @@ -0,0 +1,1169 @@ +[gd_scene load_steps=28 format=3 uid="uid://bth213upfjf6v"] + +[ext_resource type="Script" path="res://Scripts/player2.gd" id="1_80sl5"] +[ext_resource type="Texture2D" uid="uid://b0x8mf13gbktm" path="res://Sprites/muerte_j1.png" id="2_2hgd2"] +[ext_resource type="Shader" path="res://Shaders/player_2.gdshader" id="2_h3jl0"] +[ext_resource type="Texture2D" uid="uid://42jbdfqg673e" path="res://Sprites/j1_run.png" id="3_cjo6p"] +[ext_resource type="Texture2D" uid="uid://bxrthk1syjq0q" path="res://Sprites/j1_idle.png" id="4_vl7tr"] +[ext_resource type="Texture2D" uid="uid://ddjnqffxnohth" path="res://Sprites/j1_down.png" id="5_8706f"] +[ext_resource type="Texture2D" uid="uid://bbmsw2jai28mv" path="res://Sprites/j1_salto.png" id="6_meigp"] +[ext_resource type="Texture2D" uid="uid://87jobbti0q8i" path="res://Sprites/j1_water.png" id="7_abxeo"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_tm5da"] +shader = ExtResource("2_h3jl0") + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_g1set"] +size = Vector2(10, 37) + +[sub_resource type="Animation" id="Animation_2x4p3"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:texture") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_cjo6p")] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:hframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:vframes") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-2, 4)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="Animation" id="Animation_640c7"] +resource_name = "aim_up" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("4_vl7tr")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:frame") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xjjmu"] +size = Vector2(29, 12) + +[sub_resource type="Animation" id="Animation_7hd3j"] +resource_name = "crouch" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("5_8706f")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 13)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:frame") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_xjjmu")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, 15)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xog2h"] +size = Vector2(29, 8) + +[sub_resource type="Animation" id="Animation_a6vsf"] +resource_name = "death" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("2_2hgd2")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:offset") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_xog2h")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, 7)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:frame") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_hoqit"] +resource_name = "down_right" +length = 0.2 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_cjo6p")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [10, 11, 12] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_u03d2"] +resource_name = "idle" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:texture") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("4_vl7tr")] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:hframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:vframes") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_hjqum"] +size = Vector2(13, 20) + +[sub_resource type="Animation" id="Animation_otdfs"] +resource_name = "jump" +length = 0.3 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("6_meigp")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [4] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-0.5, -1)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:shape") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_hjqum")] +} + +[sub_resource type="Animation" id="Animation_imlca"] +resource_name = "run" +length = 0.4 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_cjo6p")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1), +"update": 1, +"values": [0, 1, 2, 3, 4] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/spr:offset") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-2, 4)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:shape") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/CollisionShape2D:position") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_5t8ep"] +size = Vector2(10, 11) + +[sub_resource type="Animation" id="Animation_t3hum"] +resource_name = "swim" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_abxeo")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_8n0wd"] +resource_name = "swim_hide" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_abxeo")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [2] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_orrd8"] +resource_name = "swim_idle" +length = 0.1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("7_abxeo")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [1] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_5t8ep")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, -0.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_f80r4"] +resource_name = "up_right" +length = 0.2 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("char/spr:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_cjo6p")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("char/spr:hframes") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [5] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("char/spr:vframes") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [3] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("char/spr:frame") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 0.1, 0.2), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [5, 6, 7] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("char/CollisionShape2D:shape") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [SubResource("RectangleShape2D_g1set")] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("char/CollisionShape2D:position") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-1.25, 2.5)] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("char/spr:offset") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_mip2x"] +_data = { +"RESET": SubResource("Animation_2x4p3"), +"aim_up": SubResource("Animation_640c7"), +"crouch": SubResource("Animation_7hd3j"), +"death": SubResource("Animation_a6vsf"), +"down_right": SubResource("Animation_hoqit"), +"idle": SubResource("Animation_u03d2"), +"jump": SubResource("Animation_otdfs"), +"run": SubResource("Animation_imlca"), +"swim": SubResource("Animation_t3hum"), +"swim_hide": SubResource("Animation_8n0wd"), +"swim_idle": SubResource("Animation_orrd8"), +"up_right": SubResource("Animation_f80r4") +} + +[node name="Player2" type="Node2D"] +position = Vector2(51, 84) + +[node name="char" type="CharacterBody2D" parent="." groups=["player"]] +position = Vector2(3, 0) +collision_layer = 49153 +collision_mask = 49153 +script = ExtResource("1_80sl5") + +[node name="spr" type="Sprite2D" parent="char"] +material = SubResource("ShaderMaterial_tm5da") +texture = ExtResource("3_cjo6p") +offset = Vector2(-2, 4) +flip_h = true +hframes = 5 +vframes = 3 +region_rect = Rect2(29.5086, 2.32607, 17.2802, 40.571) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="char"] +position = Vector2(-1.25, 2.5) +shape = SubResource("RectangleShape2D_g1set") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="char"] +root_node = NodePath("../..") +autoplay = "idle" +libraries = { +"": SubResource("AnimationLibrary_mip2x") +} + +[node name="SpawnPositions" type="Node2D" parent="char"] + +[node name="Aim_Right" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(8, 0) + +[node name="Aim_RightUp" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(10, -15) + +[node name="Aim_RightDown" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(10, 11) + +[node name="Aim_Left" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, 0) + +[node name="Aim_LeftUp" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, -15) + +[node name="Aim_LeftDown" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(-13, 11) + +[node name="Aim_Up" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(0, -24) + +[node name="Aim_Down" type="Node2D" parent="char/SpawnPositions"] +position = Vector2(0, 24) + +[node name="Timer" type="Timer" parent="char"] +wait_time = 0.5 +one_shot = true + +[node name="Respawn" type="Timer" parent="char"] +wait_time = 2.0 +one_shot = true + +[connection signal="timeout" from="char/Timer" to="char" method="_on_timer_timeout" flags=18] +[connection signal="timeout" from="char/Respawn" to="char" method="_on_respawn_timeout" flags=18] diff --git a/scenes/power_up_1.tscn b/scenes/power_up_1.tscn new file mode 100644 index 0000000..237c701 --- /dev/null +++ b/scenes/power_up_1.tscn @@ -0,0 +1,19 @@ +[gd_scene load_steps=4 format=3 uid="uid://c5yqfaprkyq00"] + +[ext_resource type="Script" path="res://Scripts/PowerUp1.gd" id="1_yxcdl"] +[ext_resource type="Texture2D" uid="uid://bmo543wawjitd" path="res://Sprites/powerup.png" id="2_7ripb"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_n4uet"] +size = Vector2(23, 11) + +[node name="PowerUp1" type="CharacterBody2D" groups=["powerup"]] +script = ExtResource("1_yxcdl") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_7ripb") +hframes = 10 +frame = 1 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(-0.5, 0.5) +shape = SubResource("RectangleShape2D_n4uet") diff --git a/scenes/power_up_container.tscn b/scenes/power_up_container.tscn new file mode 100644 index 0000000..dc93165 --- /dev/null +++ b/scenes/power_up_container.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=4 format=3 uid="uid://cg45aibxjyrpy"] + +[ext_resource type="Script" path="res://Scripts/PowerUpContainer.gd" id="1_jveoh"] +[ext_resource type="Texture2D" uid="uid://bmo543wawjitd" path="res://Sprites/powerup.png" id="2_15ji1"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_gu67h"] +size = Vector2(18, 10) + +[node name="PowerUpContainer" type="CharacterBody2D" groups=["powerupcontainer"]] +position = Vector2(295, 30) +collision_layer = 2 +collision_mask = 2 +script = ExtResource("1_jveoh") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_15ji1") +hframes = 10 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("RectangleShape2D_gu67h") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] + +[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/scenes/sfx.gd b/scenes/sfx.gd new file mode 100644 index 0000000..c2f96d9 --- /dev/null +++ b/scenes/sfx.gd @@ -0,0 +1,4 @@ +extends AudioStreamPlayer + +func _on_finished(): + queue_free() diff --git a/scenes/sfx.tscn b/scenes/sfx.tscn new file mode 100644 index 0000000..88d11b9 --- /dev/null +++ b/scenes/sfx.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=3 uid="uid://7ubao8j83sb4"] + +[ext_resource type="Script" path="res://scenes/sfx.gd" id="1_k8iol"] + +[node name="SFX" type="AudioStreamPlayer"] +script = ExtResource("1_k8iol") + +[connection signal="finished" from="." to="." method="_on_finished"]