diff --git a/.DS_Store b/.DS_Store index c34e84e..cc73712 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.md5 b/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.md5 new file mode 100644 index 0000000..878408a --- /dev/null +++ b/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.md5 @@ -0,0 +1,3 @@ +source_md5="e2da17631bd29e02ddb405c78680875f" +dest_md5="7b1b0313fbf51eba577d838158c3fae0" + diff --git a/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.stex b/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.stex new file mode 100644 index 0000000..bd38427 Binary files /dev/null and b/.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.stex differ diff --git a/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.md5 b/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.md5 new file mode 100644 index 0000000..a8523b6 --- /dev/null +++ b/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.md5 @@ -0,0 +1,3 @@ +source_md5="c6c585a9aa284904c1102e50721324ec" +dest_md5="ee0d01ece7de555f1ceed92477e0eb63" + diff --git a/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.stex b/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.stex new file mode 100644 index 0000000..f6cb8b9 Binary files /dev/null and b/.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.stex differ diff --git a/.import/2.png-15f88d62d149a7779f0d26297a02d336.md5 b/.import/2.png-15f88d62d149a7779f0d26297a02d336.md5 new file mode 100644 index 0000000..0d1aa90 --- /dev/null +++ b/.import/2.png-15f88d62d149a7779f0d26297a02d336.md5 @@ -0,0 +1,3 @@ +source_md5="8b3adc308b371557c4ff3a183e95b60e" +dest_md5="7626025b22fd26cd49c23ca0752799e8" + diff --git a/.import/2.png-15f88d62d149a7779f0d26297a02d336.stex b/.import/2.png-15f88d62d149a7779f0d26297a02d336.stex new file mode 100644 index 0000000..47e1f1d Binary files /dev/null and b/.import/2.png-15f88d62d149a7779f0d26297a02d336.stex differ diff --git a/.import/3.png-4a5375587df651558bbc338ffb2cfb01.md5 b/.import/3.png-4a5375587df651558bbc338ffb2cfb01.md5 new file mode 100644 index 0000000..c38748f --- /dev/null +++ b/.import/3.png-4a5375587df651558bbc338ffb2cfb01.md5 @@ -0,0 +1,3 @@ +source_md5="ac9da88d3f9b0315369b344971f61b06" +dest_md5="dc28e1da0ddb24d536cd21156fc46347" + diff --git a/.import/3.png-4a5375587df651558bbc338ffb2cfb01.stex b/.import/3.png-4a5375587df651558bbc338ffb2cfb01.stex new file mode 100644 index 0000000..b5d787d Binary files /dev/null and b/.import/3.png-4a5375587df651558bbc338ffb2cfb01.stex differ diff --git a/.import/4.png-09e0f092240eb2d9468f21be9486657d.md5 b/.import/4.png-09e0f092240eb2d9468f21be9486657d.md5 new file mode 100644 index 0000000..9a08e34 --- /dev/null +++ b/.import/4.png-09e0f092240eb2d9468f21be9486657d.md5 @@ -0,0 +1,3 @@ +source_md5="189371fe126fad55c8c26f145cf82929" +dest_md5="d49cbffccc2a8946080dfc03e364bbb0" + diff --git a/.import/4.png-09e0f092240eb2d9468f21be9486657d.stex b/.import/4.png-09e0f092240eb2d9468f21be9486657d.stex new file mode 100644 index 0000000..122306d Binary files /dev/null and b/.import/4.png-09e0f092240eb2d9468f21be9486657d.stex differ diff --git a/.import/5.png-ec66112203f168ee3de7100303e2de0b.md5 b/.import/5.png-ec66112203f168ee3de7100303e2de0b.md5 new file mode 100644 index 0000000..7933b8c --- /dev/null +++ b/.import/5.png-ec66112203f168ee3de7100303e2de0b.md5 @@ -0,0 +1,3 @@ +source_md5="242f04fd392fadfd7766fafc1908d00a" +dest_md5="c91003c3b5d9cd6ee0fd3f493ac7b99f" + diff --git a/.import/5.png-ec66112203f168ee3de7100303e2de0b.stex b/.import/5.png-ec66112203f168ee3de7100303e2de0b.stex new file mode 100644 index 0000000..e97e913 Binary files /dev/null and b/.import/5.png-ec66112203f168ee3de7100303e2de0b.stex differ diff --git a/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.md5 b/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.md5 new file mode 100644 index 0000000..9bf126b --- /dev/null +++ b/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.md5 @@ -0,0 +1,3 @@ +source_md5="7f6bdd4378d7631ff4562bb9cb488d7d" +dest_md5="40543c712ec2b75bc4ff7d73d8df9b09" + diff --git a/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.stex b/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.stex new file mode 100644 index 0000000..02aeb6b Binary files /dev/null and b/.import/6.png-5a79a88483035d1fb01af017f01d1c6f.stex differ diff --git a/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.md5 b/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.md5 new file mode 100644 index 0000000..08fef94 --- /dev/null +++ b/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.md5 @@ -0,0 +1,3 @@ +source_md5="365bf6e42575d49927dea65ba6f64ca3" +dest_md5="6765dd8007acac805c32f5f0515e197d" + diff --git a/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.stex b/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.stex new file mode 100644 index 0000000..161d238 Binary files /dev/null and b/.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.stex differ diff --git a/.import/8.png-31d414e5c1310454626b40d250770a20.md5 b/.import/8.png-31d414e5c1310454626b40d250770a20.md5 new file mode 100644 index 0000000..04f2c74 --- /dev/null +++ b/.import/8.png-31d414e5c1310454626b40d250770a20.md5 @@ -0,0 +1,3 @@ +source_md5="c3e8a61003cb6712b086e49510b4f38f" +dest_md5="8fd0b56afce4950b6ba5113ca002c2f6" + diff --git a/.import/8.png-31d414e5c1310454626b40d250770a20.stex b/.import/8.png-31d414e5c1310454626b40d250770a20.stex new file mode 100644 index 0000000..8a75298 Binary files /dev/null and b/.import/8.png-31d414e5c1310454626b40d250770a20.stex differ diff --git a/.import/9.png-254047e41a5c87199d36886a007172c7.md5 b/.import/9.png-254047e41a5c87199d36886a007172c7.md5 new file mode 100644 index 0000000..3f75ab2 --- /dev/null +++ b/.import/9.png-254047e41a5c87199d36886a007172c7.md5 @@ -0,0 +1,3 @@ +source_md5="9b03085798890636f00a071453355288" +dest_md5="a310279f23e751ca79df40555cc7a478" + diff --git a/.import/9.png-254047e41a5c87199d36886a007172c7.stex b/.import/9.png-254047e41a5c87199d36886a007172c7.stex new file mode 100644 index 0000000..7debcb1 Binary files /dev/null and b/.import/9.png-254047e41a5c87199d36886a007172c7.stex differ diff --git a/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.md5 b/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.md5 index 2299a40..6092f11 100644 --- a/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.md5 +++ b/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.md5 @@ -1,3 +1,3 @@ source_md5="b82eea6dbb4771dd5e9cd1cd7dc39648" -dest_md5="153cd76df730e17cdf56c58ccffb2dc9" +dest_md5="76e564c70fb9e3d9d502c53466ed8bf3" diff --git a/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.stex b/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.stex index eae2440..3e75327 100644 Binary files a/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.stex and b/.import/gameover.png-7d1c3784afc9968335855b39872e18a4.stex differ diff --git a/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.md5 b/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.md5 new file mode 100644 index 0000000..ffe106e --- /dev/null +++ b/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.md5 @@ -0,0 +1,3 @@ +source_md5="1510aaa4c2200d4d6c39c79437cc852a" +dest_md5="e3b2e5a335b54397e36b59de336938ce" + diff --git a/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.stex b/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.stex new file mode 100644 index 0000000..f384f30 Binary files /dev/null and b/.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.stex differ diff --git a/fonts/pixeledFont.ttf b/fonts/pixeledFont.ttf new file mode 100755 index 0000000..14449ba Binary files /dev/null and b/fonts/pixeledFont.ttf differ diff --git a/fonts/pixeledfont.tres b/fonts/pixeledfont.tres new file mode 100644 index 0000000..c76c952 --- /dev/null +++ b/fonts/pixeledfont.tres @@ -0,0 +1,5 @@ +[gd_resource type="DynamicFontData" format=2] + +[resource] +antialiased = false +font_path = "res://fonts/pixeloidFont.ttf" diff --git a/fonts/pixeloidfontLarge.tres b/fonts/pixeloidfontLarge.tres index 2fa2557..7654ca4 100644 --- a/fonts/pixeloidfontLarge.tres +++ b/fonts/pixeloidfontLarge.tres @@ -4,4 +4,5 @@ [resource] size = 31 +use_mipmaps = true font_data = ExtResource( 1 ) diff --git a/images/.DS_Store b/images/.DS_Store index 2abf37c..7655fdc 100644 Binary files a/images/.DS_Store and b/images/.DS_Store differ diff --git a/images/buttons/restart_button.png b/images/buttons/restart_button.png new file mode 100644 index 0000000..0b3e1fd Binary files /dev/null and b/images/buttons/restart_button.png differ diff --git a/images/buttons/restart_button.png.import b/images/buttons/restart_button.png.import new file mode 100644 index 0000000..e1661a0 --- /dev/null +++ b/images/buttons/restart_button.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/buttons/restart_button.png" +dest_files=[ "res://.import/restart_button.png-d208d10b71ca12dfd0d08675f138e839.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/0.png b/images/smallLetters/0.png new file mode 100644 index 0000000..88bd16d Binary files /dev/null and b/images/smallLetters/0.png differ diff --git a/images/smallLetters/0.png.import b/images/smallLetters/0.png.import new file mode 100644 index 0000000..d4f694a --- /dev/null +++ b/images/smallLetters/0.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/0.png" +dest_files=[ "res://.import/0.png-1c92fbb14eb460b4ab81acccc359dca1.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/1.png b/images/smallLetters/1.png new file mode 100644 index 0000000..2fc392b Binary files /dev/null and b/images/smallLetters/1.png differ diff --git a/images/smallLetters/1.png.import b/images/smallLetters/1.png.import new file mode 100644 index 0000000..b630f17 --- /dev/null +++ b/images/smallLetters/1.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/1.png" +dest_files=[ "res://.import/1.png-795f8f52ac06800d96deb697f4a8ac1e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/2.png b/images/smallLetters/2.png new file mode 100644 index 0000000..2c4d9a4 Binary files /dev/null and b/images/smallLetters/2.png differ diff --git a/images/smallLetters/2.png.import b/images/smallLetters/2.png.import new file mode 100644 index 0000000..2e0b686 --- /dev/null +++ b/images/smallLetters/2.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/2.png-15f88d62d149a7779f0d26297a02d336.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/2.png" +dest_files=[ "res://.import/2.png-15f88d62d149a7779f0d26297a02d336.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/3.png b/images/smallLetters/3.png new file mode 100644 index 0000000..b7571cc Binary files /dev/null and b/images/smallLetters/3.png differ diff --git a/images/smallLetters/3.png.import b/images/smallLetters/3.png.import new file mode 100644 index 0000000..de96600 --- /dev/null +++ b/images/smallLetters/3.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/3.png-4a5375587df651558bbc338ffb2cfb01.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/3.png" +dest_files=[ "res://.import/3.png-4a5375587df651558bbc338ffb2cfb01.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/4.png b/images/smallLetters/4.png new file mode 100644 index 0000000..081bd33 Binary files /dev/null and b/images/smallLetters/4.png differ diff --git a/images/smallLetters/4.png.import b/images/smallLetters/4.png.import new file mode 100644 index 0000000..d2ec5e9 --- /dev/null +++ b/images/smallLetters/4.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/4.png-09e0f092240eb2d9468f21be9486657d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/4.png" +dest_files=[ "res://.import/4.png-09e0f092240eb2d9468f21be9486657d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/5.png b/images/smallLetters/5.png new file mode 100644 index 0000000..3749079 Binary files /dev/null and b/images/smallLetters/5.png differ diff --git a/images/smallLetters/5.png.import b/images/smallLetters/5.png.import new file mode 100644 index 0000000..7c46d86 --- /dev/null +++ b/images/smallLetters/5.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/5.png-ec66112203f168ee3de7100303e2de0b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/5.png" +dest_files=[ "res://.import/5.png-ec66112203f168ee3de7100303e2de0b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/6.png b/images/smallLetters/6.png new file mode 100644 index 0000000..89f8ecf Binary files /dev/null and b/images/smallLetters/6.png differ diff --git a/images/smallLetters/6.png.import b/images/smallLetters/6.png.import new file mode 100644 index 0000000..532ae99 --- /dev/null +++ b/images/smallLetters/6.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/6.png-5a79a88483035d1fb01af017f01d1c6f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/6.png" +dest_files=[ "res://.import/6.png-5a79a88483035d1fb01af017f01d1c6f.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/7.png b/images/smallLetters/7.png new file mode 100644 index 0000000..fdbb033 Binary files /dev/null and b/images/smallLetters/7.png differ diff --git a/images/smallLetters/7.png.import b/images/smallLetters/7.png.import new file mode 100644 index 0000000..93f77a0 --- /dev/null +++ b/images/smallLetters/7.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/7.png" +dest_files=[ "res://.import/7.png-88bedb10d7945c1d58f8d2efe48bb849.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/8.png b/images/smallLetters/8.png new file mode 100644 index 0000000..88c38de Binary files /dev/null and b/images/smallLetters/8.png differ diff --git a/images/smallLetters/8.png.import b/images/smallLetters/8.png.import new file mode 100644 index 0000000..7255e4a --- /dev/null +++ b/images/smallLetters/8.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/8.png-31d414e5c1310454626b40d250770a20.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/8.png" +dest_files=[ "res://.import/8.png-31d414e5c1310454626b40d250770a20.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/smallLetters/9.png b/images/smallLetters/9.png new file mode 100644 index 0000000..b3db4e5 Binary files /dev/null and b/images/smallLetters/9.png differ diff --git a/images/smallLetters/9.png.import b/images/smallLetters/9.png.import new file mode 100644 index 0000000..d6b58c5 --- /dev/null +++ b/images/smallLetters/9.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/9.png-254047e41a5c87199d36886a007172c7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/smallLetters/9.png" +dest_files=[ "res://.import/9.png-254047e41a5c87199d36886a007172c7.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/images/text/gameover.png.import b/images/text/gameover.png.import index 75024e1..b2d5eaa 100644 --- a/images/text/gameover.png.import +++ b/images/text/gameover.png.import @@ -20,7 +20,7 @@ compress/hdr_mode=0 compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 -flags/filter=true +flags/filter=false flags/mipmaps=false flags/anisotropic=false flags/srgb=2 diff --git a/project.godot b/project.godot index 2ff88a7..bd30f73 100644 --- a/project.godot +++ b/project.godot @@ -21,6 +21,11 @@ boot_splash/bg_color=Color( 0, 0, 0, 1 ) config/icon="res://icon.png" config/windows_native_icon="res://favicon.ico" +[autoload] + +GameOverStorage="*res://scenes/GameOverStorage.tscn" +TransitionScene="*res://scenes/TransitionScene.tscn" + [display] window/size/width=1200 diff --git a/scenes/GameOverPanel.tscn b/scenes/GameOverPanel.tscn new file mode 100644 index 0000000..5298dfc --- /dev/null +++ b/scenes/GameOverPanel.tscn @@ -0,0 +1,173 @@ +[gd_scene load_steps=14 format=2] + +[ext_resource path="res://images/backgrounds/background-day-loop.png" type="Texture" id=1] +[ext_resource path="res://images/text/gameover.png" type="Texture" id=2] +[ext_resource path="res://scenes/animations/gameOverLogo.tres" type="Animation" id=3] +[ext_resource path="res://scripts/gameoverScript.gd" type="Script" id=4] +[ext_resource path="res://images/buttons/menu_button.png" type="Texture" id=5] +[ext_resource path="res://images/buttons/restart_button.png" type="Texture" id=6] +[ext_resource path="res://images/backgrounds/gameover_board.png" type="Texture" id=7] +[ext_resource path="res://scripts/scorePanel.gd" type="Script" id=8] +[ext_resource path="res://images/smallLetters/0.png" type="Texture" id=10] + +[sub_resource type="Animation" id=2] +resource_name = "RESET" +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ) ] +} + +[sub_resource type="Animation" id=1] +resource_name = "buttonAnimation" +length = 2.0 +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 1.1, 2 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ] +} + +[sub_resource type="Animation" id=3] +resource_name = "RESET" +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ) ] +} + +[sub_resource type="Animation" id=4] +resource_name = "showPanel" +length = 2.3 +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 1.2, 2.3 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ] +} + +[node name="GameOverPanel" type="Node2D"] +script = ExtResource( 4 ) + +[node name="background" type="Sprite" parent="."] +position = Vector2( 600, 400 ) +scale = Vector2( 1.6317, 1.6317 ) +texture = ExtResource( 1 ) +region_enabled = true +region_rect = Rect2( 0, 0, 800, 500 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="gameOver" type="Sprite" parent="."] +visible = false +position = Vector2( 600, 400 ) +scale = Vector2( 4, 4 ) +texture = ExtResource( 2 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="AnimationPlayer" type="AnimationPlayer" parent="gameOver"] +anims/gameOverAnimation = ExtResource( 3 ) + +[node name="buttonContainer" type="HBoxContainer" parent="."] +modulate = Color( 1, 1, 1, 0 ) +margin_left = 350.0 +margin_top = 600.0 +margin_right = 850.0 +margin_bottom = 750.0 +alignment = 1 + +[node name="menuButton" type="TextureButton" parent="buttonContainer"] +margin_right = 248.0 +margin_bottom = 150.0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +texture_normal = ExtResource( 5 ) +expand = true +stretch_mode = 5 + +[node name="restartButton" type="TextureButton" parent="buttonContainer"] +margin_left = 252.0 +margin_right = 500.0 +margin_bottom = 150.0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +texture_normal = ExtResource( 6 ) +expand = true +stretch_mode = 5 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="buttonContainer"] +anims/RESET = SubResource( 2 ) +anims/buttonAnimation = SubResource( 1 ) + +[node name="scorePanel" type="Sprite" parent="."] +modulate = Color( 1, 1, 1, 0 ) +position = Vector2( 600, 400 ) +scale = Vector2( 3.5, 3.5 ) +texture = ExtResource( 7 ) +script = ExtResource( 8 ) + +[node name="scoreCounter" type="Control" parent="scorePanel"] +margin_left = 28.5 +margin_top = -12.0 +margin_right = 43.5 +margin_bottom = -3.0 + +[node name="digit1" type="Sprite" parent="scorePanel/scoreCounter"] +texture = ExtResource( 10 ) +centered = false + +[node name="digit2" type="Sprite" parent="scorePanel/scoreCounter"] +position = Vector2( 7, 0 ) +texture = ExtResource( 10 ) +centered = false + +[node name="highscoreCounter" type="Control" parent="scorePanel"] +margin_left = 28.5 +margin_top = 9.0 +margin_right = 43.5 +margin_bottom = 18.0 + +[node name="digit1" type="Sprite" parent="scorePanel/highscoreCounter"] +texture = ExtResource( 10 ) +centered = false + +[node name="digit2" type="Sprite" parent="scorePanel/highscoreCounter"] +position = Vector2( 7, 0 ) +texture = ExtResource( 10 ) +centered = false + +[node name="AnimationPlayer" type="AnimationPlayer" parent="scorePanel"] +anims/RESET = SubResource( 3 ) +anims/showPanel = SubResource( 4 ) + +[connection signal="pressed" from="buttonContainer/menuButton" to="." method="_on_menuButton_pressed"] +[connection signal="pressed" from="buttonContainer/restartButton" to="." method="_on_restartButton_pressed"] diff --git a/scenes/GameOverStorage.tscn b/scenes/GameOverStorage.tscn new file mode 100644 index 0000000..1725015 --- /dev/null +++ b/scenes/GameOverStorage.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scripts/GameOverStorage.gd" type="Script" id=1] + +[node name="GameOverStorage" type="Node"] +script = ExtResource( 1 ) diff --git a/scenes/TransitionScene.tscn b/scenes/TransitionScene.tscn new file mode 100644 index 0000000..7175169 --- /dev/null +++ b/scenes/TransitionScene.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://scenes/animations/transitionRESET.tres" type="Animation" id=1] +[ext_resource path="res://scripts/switchScene.gd" type="Script" id=2] +[ext_resource path="res://scenes/animations/scenesfadeOut.tres" type="Animation" id=3] +[ext_resource path="res://scenes/animations/scenesfadeIn.tres" type="Animation" id=4] + +[node name="TransitionScene" type="CanvasLayer"] +script = ExtResource( 2 ) + +[node name="ColorRect" type="ColorRect" parent="."] +modulate = Color( 1, 1, 1, 0 ) +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 2 +color = Color( 0, 0, 0, 1 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="ColorRect"] +anims/RESET = ExtResource( 1 ) +anims/fadeIn = ExtResource( 4 ) +anims/fadeOut = ExtResource( 3 ) + +[connection signal="animation_finished" from="ColorRect/AnimationPlayer" to="." method="_on_finished"] diff --git a/scenes/animations/gameOverLogo.tres b/scenes/animations/gameOverLogo.tres new file mode 100644 index 0000000..07b1621 --- /dev/null +++ b/scenes/animations/gameOverLogo.tres @@ -0,0 +1,29 @@ +[gd_resource type="Animation" format=2] + +[resource] +resource_name = "gameOverAnimation" +length = 3.0 +tracks/0/type = "value" +tracks/0/path = NodePath(".:position") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 1.2, 2.5 ), +"transitions": PoolRealArray( 1, 0.35, 1 ), +"update": 0, +"values": [ Vector2( 600, 400 ), Vector2( 600, 400 ), Vector2( 600, 150 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath(".:scale") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 0.7 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 0, +"values": [ Vector2( 4, 4 ), Vector2( 2, 2 ) ] +} diff --git a/scenes/animations/scenesfadeIn.tres b/scenes/animations/scenesfadeIn.tres new file mode 100644 index 0000000..2b732fc --- /dev/null +++ b/scenes/animations/scenesfadeIn.tres @@ -0,0 +1,17 @@ +[gd_resource type="Animation" format=2] + +[resource] +resource_name = "fadeIn" +length = 0.5 +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.5 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ] +} diff --git a/scenes/animations/scenesfadeOut.tres b/scenes/animations/scenesfadeOut.tres new file mode 100644 index 0000000..a0d149a --- /dev/null +++ b/scenes/animations/scenesfadeOut.tres @@ -0,0 +1,17 @@ +[gd_resource type="Animation" format=2] + +[resource] +resource_name = "fadeOut" +length = 0.5 +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.5 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} diff --git a/scenes/animations/transitionRESET.tres b/scenes/animations/transitionRESET.tres new file mode 100644 index 0000000..8b371b5 --- /dev/null +++ b/scenes/animations/transitionRESET.tres @@ -0,0 +1,16 @@ +[gd_resource type="Animation" format=2] + +[resource] +resource_name = "RESET" +tracks/0/type = "value" +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ) ] +} diff --git a/scripts/GameOverStorage.gd b/scripts/GameOverStorage.gd new file mode 100644 index 0000000..b26eecd --- /dev/null +++ b/scripts/GameOverStorage.gd @@ -0,0 +1,8 @@ +extends Node + +export var score = 0 +export var highScore = 0 +export var newHighScore = false + +func _ready(): + pass diff --git a/scripts/gameoverScript.gd b/scripts/gameoverScript.gd new file mode 100644 index 0000000..98964a0 --- /dev/null +++ b/scripts/gameoverScript.gd @@ -0,0 +1,21 @@ +extends Node2D + +export var score = 0 +export var highScore = 0 + +func _ready(): + $gameOver.visible = true + $buttonContainer.visible = true + $buttonContainer.add_constant_override("separation",20) + + yield(get_tree().create_timer(0.5),"timeout") + $gameOver/AnimationPlayer.play("gameOverAnimation") + $buttonContainer/AnimationPlayer.play("buttonAnimation") + + +func _on_menuButton_pressed(): + TransitionScene.switchScene("menu") + + +func _on_restartButton_pressed(): + TransitionScene.switchScene("main") diff --git a/scripts/inGame.gd b/scripts/inGame.gd index c32ea00..a116a85 100644 --- a/scripts/inGame.gd +++ b/scripts/inGame.gd @@ -21,3 +21,6 @@ func _ready(): background.region_rect.position = bgLocation ground.region_rect.position = location yield(get_tree().create_timer(0.01),"timeout") + + yield(get_tree().create_timer(1.8),"timeout") + TransitionScene.switchScene("GameOverPanel") diff --git a/scripts/scorePanel.gd b/scripts/scorePanel.gd new file mode 100644 index 0000000..00cba3b --- /dev/null +++ b/scripts/scorePanel.gd @@ -0,0 +1,188 @@ +extends Sprite + +var defaultPath = "res://images/smallLetters/" +onready var t1 = load(defaultPath+"1.png") +onready var t2 = load(defaultPath+"2.png") +onready var t3 = load(defaultPath+"3.png") +onready var t4 = load(defaultPath+"4.png") +onready var t5 = load(defaultPath+"5.png") +onready var t6 = load(defaultPath+"6.png") +onready var t7 = load(defaultPath+"7.png") +onready var t8 = load(defaultPath+"8.png") +onready var t9 = load(defaultPath+"9.png") +onready var t0 = load(defaultPath+"0.png") + +func _ready(): + yield(get_tree().create_timer(1),"timeout") + $AnimationPlayer.play("showPanel") + var score = GameOverStorage.score + var highScore = GameOverStorage.highScore + + scoreCounter(score) + highscoreCounter(highScore) + +func scoreCounter(points: float): + var digit1 = get_node("scoreCounter/digit1") + var digit2 = get_node("scoreCounter/digit2") + + var pointString = String(points) + + if pointString.length() > 1: + var score10 = float(pointString[0]) + var score1 = float(pointString[1]) + + #DIGIT 1 + if score10 == 0: + digit1.texture = t0 + elif score10 == 1: + digit1.texture = t1 + elif score10 == 2: + digit1.texture = t2 + elif score10 == 3: + digit1.texture = t3 + elif score10 == 4: + digit1.texture = t4 + elif score10 == 5: + digit1.texture = t5 + elif score10 == 6: + digit1.texture = t6 + elif score10 == 7: + digit1.texture = t7 + elif score10 == 8: + digit1.texture = t8 + elif score10 == 9: + digit1.texture = t9 + + #DIGIT 2 + if score1 == 0: + digit2.texture = t0 + elif score1 == 1: + digit2.texture = t1 + elif score1 == 2: + digit2.texture = t2 + elif score1 == 3: + digit2.texture = t3 + elif score1 == 4: + digit2.texture = t4 + elif score1 == 5: + digit2.texture = t5 + elif score1 == 6: + digit2.texture = t6 + elif score1 == 7: + digit2.texture = t7 + elif score1 == 8: + digit2.texture = t8 + elif score1 == 9: + digit2.texture = t9 + + else: + var score1 = float(pointString[0]) + + #DIGIT 1 + digit1.texture = t0 + + #DIGIT 2 + if score1 == 0: + digit2.texture = t0 + elif score1 == 1: + digit2.texture = t1 + elif score1 == 2: + digit2.texture = t2 + elif score1 == 3: + digit2.texture = t3 + elif score1 == 4: + digit2.texture = t4 + elif score1 == 5: + digit2.texture = t5 + elif score1 == 6: + digit2.texture = t6 + elif score1 == 7: + digit2.texture = t7 + elif score1 == 8: + digit2.texture = t8 + elif score1 == 9: + digit2.texture = t9 + + + +func highscoreCounter(points: float): + var digit1 = get_node("highscoreCounter/digit1") + var digit2 = get_node("highscoreCounter/digit2") + + var pointString = String(points) + + if pointString.length() > 1: + var score10 = float(pointString[0]) + var score1 = float(pointString[1]) + + #DIGIT 1 + if score10 == 0: + digit1.texture = t0 + elif score10 == 1: + digit1.texture = t1 + elif score10 == 2: + digit1.texture = t2 + elif score10 == 3: + digit1.texture = t3 + elif score10 == 4: + digit1.texture = t4 + elif score10 == 5: + digit1.texture = t5 + elif score10 == 6: + digit1.texture = t6 + elif score10 == 7: + digit1.texture = t7 + elif score10 == 8: + digit1.texture = t8 + elif score10 == 9: + digit1.texture = t9 + + #DIGIT 2 + if score1 == 0: + digit2.texture = t0 + elif score1 == 1: + digit2.texture = t1 + elif score1 == 2: + digit2.texture = t2 + elif score1 == 3: + digit2.texture = t3 + elif score1 == 4: + digit2.texture = t4 + elif score1 == 5: + digit2.texture = t5 + elif score1 == 6: + digit2.texture = t6 + elif score1 == 7: + digit2.texture = t7 + elif score1 == 8: + digit2.texture = t8 + elif score1 == 9: + digit2.texture = t9 + + else: + var score1 = float(pointString[0]) + + #DIGIT 1 + digit1.texture = t0 + + #DIGIT 2 + if score1 == 0: + digit2.texture = t0 + elif score1 == 1: + digit2.texture = t1 + elif score1 == 2: + digit2.texture = t2 + elif score1 == 3: + digit2.texture = t3 + elif score1 == 4: + digit2.texture = t4 + elif score1 == 5: + digit2.texture = t5 + elif score1 == 6: + digit2.texture = t6 + elif score1 == 7: + digit2.texture = t7 + elif score1 == 8: + digit2.texture = t8 + elif score1 == 9: + digit2.texture = t9 diff --git a/scripts/scoreboard.gd b/scripts/scoreboard.gd index a1e2632..90675e9 100644 --- a/scripts/scoreboard.gd +++ b/scripts/scoreboard.gd @@ -12,6 +12,7 @@ func _on_touch(area): print("points: "+String(points)) func _ready(): + var bird = get_node("/root/main/bird") var digit1 = get_node("digit1") var digit2 = get_node("digit2") var defaultPath = "res://images/letters/" @@ -39,7 +40,7 @@ func _ready(): var t0 = load(defaultPath+"0.png") #script - while true: + while bird.isGameRunning: yield(get_tree().create_timer(0.1),"timeout") var pointString = String(points) @@ -118,3 +119,9 @@ func _ready(): digit2.texture = t8 elif score1 == 9: digit2.texture = t9 + + var beforeScore = GameOverStorage.score + GameOverStorage.score = points + if beforeScore < points: + GameOverStorage.highScore = points + GameOverStorage.newHighScore = true diff --git a/scripts/switchScene.gd b/scripts/switchScene.gd new file mode 100644 index 0000000..2d07236 --- /dev/null +++ b/scripts/switchScene.gd @@ -0,0 +1,16 @@ +extends CanvasLayer + +var Gtarget = "" + +func switchScene(target:String): + var ap = get_node("ColorRect/AnimationPlayer") + ap.play("fadeIn") + Gtarget = target + + +func _on_finished(anim_name): + var ap = get_node("ColorRect/AnimationPlayer") + if (anim_name == "fadeIn"): + var target = Gtarget + get_tree().change_scene("res://scenes/"+target+".tscn") + ap.play("fadeOut")