hyper space

This commit is contained in:
Patrick Nueser 2024-06-28 15:30:44 +02:00
commit 1e4be7ba8d
75 changed files with 1813 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c34rv3eisv5gk"
path="res://.godot/imported/Explosion (16 x 16).png-f101e2e325694bd4d9e50b50e319d361.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Effects/Explosion (16 x 16).png"
dest_files=["res://.godot/imported/Explosion (16 x 16).png-f101e2e325694bd4d9e50b50e319d361.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dnud3g3nyigwr"
path="res://.godot/imported/Sparkle (16 x 16).png-e6a75d643222cd7e213639e41457e1b1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Effects/Sparkle (16 x 16).png"
dest_files=["res://.godot/imported/Sparkle (16 x 16).png-e6a75d643222cd7e213639e41457e1b1.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://tkqk4jl7xk2k"
path="res://.godot/imported/Alan (16 x 16).png-fb5d2ed04dfa5b6c23ccc982ea74e132.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Enemies/Alan (16 x 16).png"
dest_files=["res://.godot/imported/Alan (16 x 16).png-fb5d2ed04dfa5b6c23ccc982ea74e132.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dxs8nh8w0hl4r"
path="res://.godot/imported/Bon_Bon (16 x 16).png-e1a2f45dc512793e6cb78e419aebff92.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Enemies/Bon_Bon (16 x 16).png"
dest_files=["res://.godot/imported/Bon_Bon (16 x 16).png-e1a2f45dc512793e6cb78e419aebff92.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dk73wclyy13ow"
path="res://.godot/imported/Lips (16 x 16).png-520402a5d59cf05a3d91e5a071bf80b5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Enemies/Lips (16 x 16).png"
dest_files=["res://.godot/imported/Lips (16 x 16).png-520402a5d59cf05a3d91e5a071bf80b5.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://durukgq43gq1k"
path="res://.godot/imported/Circle_+_Square_+_Missile_pick-ups (16 x 16).png-c2aa892fbf71ca6f45e6b96df1dd0a0d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Items/Circle_+_Square_+_Missile_pick-ups (16 x 16).png"
dest_files=["res://.godot/imported/Circle_+_Square_+_Missile_pick-ups (16 x 16).png-c2aa892fbf71ca6f45e6b96df1dd0a0d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://brw15iefuhwm1"
path="res://.godot/imported/Power_item (16 x 16).png-3a2a23f6ce4d7f23b64b166f75f94870.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Items/Power_item (16 x 16).png"
dest_files=["res://.godot/imported/Power_item (16 x 16).png-3a2a23f6ce4d7f23b64b166f75f94870.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

3
assets/LICENSE.txt Normal file
View File

@ -0,0 +1,3 @@
GrafxKid's publicly released pixel art assets fall under the CC0 1.0 Universal Public Domain License.
CC0 1.0 terms - https://creativecommons.org/publicdomain/zero/1.0/

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2v2u7s7r8qsa"
path="res://.godot/imported/Boosters (16 x 16).png-c811611844ee5b372a6a9d5fc00dbcfd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Player ship/Boosters (16 x 16).png"
dest_files=["res://.godot/imported/Boosters (16 x 16).png-c811611844ee5b372a6a9d5fc00dbcfd.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dlj1rn2xxgyj2"
path="res://.godot/imported/Boosters_left (16 x 16).png-512248f638074820cc6ef955e64301c2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Player ship/Boosters_left (16 x 16).png"
dest_files=["res://.godot/imported/Boosters_left (16 x 16).png-512248f638074820cc6ef955e64301c2.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bha3rynxwdueg"
path="res://.godot/imported/Boosters_right (16 x 16).png-e6f5faed4624814ec9781d9d674971de.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Player ship/Boosters_right (16 x 16).png"
dest_files=["res://.godot/imported/Boosters_right (16 x 16).png-e6f5faed4624814ec9781d9d674971de.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bhigo5rya0wic"
path="res://.godot/imported/Player_ship (16 x 16).png-dd342e0e2db39bf9a5a7f58a3ef70b81.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Player ship/Player_ship (16 x 16).png"
dest_files=["res://.godot/imported/Player_ship (16 x 16).png-dd342e0e2db39bf9a5a7f58a3ef70b81.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dkbhiir1v8nq1"
path="res://.godot/imported/Enemy_projectile (16 x 16).png-c2dc73915ad9f1e6b0de034ce5e80197.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Enemy_projectile (16 x 16).png"
dest_files=["res://.godot/imported/Enemy_projectile (16 x 16).png-c2dc73915ad9f1e6b0de034ce5e80197.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://mthnkgr8to8n"
path="res://.godot/imported/Player_beam (16 x 16).png-b143e8049566ffcd530884c472386d2a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_beam (16 x 16).png"
dest_files=["res://.godot/imported/Player_beam (16 x 16).png-b143e8049566ffcd530884c472386d2a.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://7girakt7lpra"
path="res://.godot/imported/Player_charged_beam (16 x 16).png-c0995a5a568f36b0d913dfd8c1c19c4e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_charged_beam (16 x 16).png"
dest_files=["res://.godot/imported/Player_charged_beam (16 x 16).png-c0995a5a568f36b0d913dfd8c1c19c4e.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://di1csdeqgnnei"
path="res://.godot/imported/Player_charged_donut_shot (16 x 16).png-f27abc0854e1d1c3c1c2a79da407961b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_charged_donut_shot (16 x 16).png"
dest_files=["res://.godot/imported/Player_charged_donut_shot (16 x 16).png-f27abc0854e1d1c3c1c2a79da407961b.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ci6phtn8ggt7b"
path="res://.godot/imported/Player_charged_square_shot (16 x 16).png-ae42493a92a384c0a096040566ba9b0a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_charged_square_shot (16 x 16).png"
dest_files=["res://.godot/imported/Player_charged_square_shot (16 x 16).png-ae42493a92a384c0a096040566ba9b0a.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://xyd4nmocquy5"
path="res://.godot/imported/Player_donut_shot (16 x 16).png-6e9a2b574bb69a221de98e85270a7f1d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_donut_shot (16 x 16).png"
dest_files=["res://.godot/imported/Player_donut_shot (16 x 16).png-6e9a2b574bb69a221de98e85270a7f1d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cnrnytfbl5w7r"
path="res://.godot/imported/Player_missile_shots (16 x 16).png-997e4d14dfb0a00654c980dfc7afea40.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_missile_shots (16 x 16).png"
dest_files=["res://.godot/imported/Player_missile_shots (16 x 16).png-997e4d14dfb0a00654c980dfc7afea40.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dhk5wcv3x2yi1"
path="res://.godot/imported/Player_square_shot (16 x 16).png-e43f145a0c486c875b2905d8289455b7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Projectiles/Player_square_shot (16 x 16).png"
dest_files=["res://.godot/imported/Player_square_shot (16 x 16).png-e43f145a0c486c875b2905d8289455b7.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cd2w7gbytga05"
path="res://.godot/imported/Space_BG (2 frames) (64 x 64).png-dc07f4b4c0fecb280cf1666acf6b47e2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Space_BG (2 frames) (64 x 64).png"
dest_files=["res://.godot/imported/Space_BG (2 frames) (64 x 64).png-dc07f4b4c0fecb280cf1666acf6b47e2.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://3yqtv6s02201"
path="res://.godot/imported/GAME_OVER (72 x 8).png-059e1b177f29c14789d6a8ea1db68e48.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/GAME_OVER (72 x 8).png"
dest_files=["res://.godot/imported/GAME_OVER (72 x 8).png-059e1b177f29c14789d6a8ea1db68e48.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fy6xrc87ha4k"
path="res://.godot/imported/Item_held_box (16 x 16).png-5ea21882e55b3dcf4bff24b97398c62a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/Item_held_box (16 x 16).png"
dest_files=["res://.godot/imported/Item_held_box (16 x 16).png-5ea21882e55b3dcf4bff24b97398c62a.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dq5w04k1dvsx7"
path="res://.godot/imported/Number_font (8 x 8).png-03128ac4d92bc285ba6812194f66b91d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/Number_font (8 x 8).png"
dest_files=["res://.godot/imported/Number_font (8 x 8).png-03128ac4d92bc285ba6812194f66b91d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckgvbkcl7s4vu"
path="res://.godot/imported/Player_life_icon (16 x 16).png-328888af62874ec16611bedff1ba1264.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/Player_life_icon (16 x 16).png"
dest_files=["res://.godot/imported/Player_life_icon (16 x 16).png-328888af62874ec16611bedff1ba1264.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dvjr41ivyorln"
path="res://.godot/imported/Power_+_charge_bars (full + empty) (32 x 16).png-36e5a50029d7187ea460ae45a358ef87.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/Power_+_charge_bars (full + empty) (32 x 16).png"
dest_files=["res://.godot/imported/Power_+_charge_bars (full + empty) (32 x 16).png-36e5a50029d7187ea460ae45a358ef87.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwr1n1387fvel"
path="res://.godot/imported/START (48 x 8).png-b6fa4845d6c3565bc6864c8e01193c6b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/START (48 x 8).png"
dest_files=["res://.godot/imported/START (48 x 8).png-b6fa4845d6c3565bc6864c8e01193c6b.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bufp3nx5nbfac"
path="res://.godot/imported/bar_background.png-43835d4490eb6ce358e7dee1e529299f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/bar_background.png"
dest_files=["res://.godot/imported/bar_background.png-43835d4490eb6ce358e7dee1e529299f.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cl57s76eyq8e6"
path="res://.godot/imported/bar_foreground.png-97614e3ef89da55c7aa8056048615598.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/UI objects/bar_foreground.png"
dest_files=["res://.godot/imported/bar_foreground.png-97614e3ef89da55c7aa8056048615598.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

19
bullet/bullet.gd Normal file
View File

@ -0,0 +1,19 @@
extends Area2D
@export var speed = -250
func start(pos):
position = pos
func _process(delta):
position.y += speed * delta
func _on_area_entered(area):
if area.is_in_group("enemies"):
area.explode()
queue_free()
func _on_visible_on_screen_notifier_2d_screen_exited():
queue_free() # Replace with function body.

22
bullet/bullet.tscn Normal file
View File

@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=3 uid="uid://bts6qcq761ji2"]
[ext_resource type="Texture2D" uid="uid://7girakt7lpra" path="res://assets/Projectiles/Player_charged_beam (16 x 16).png" id="1_buxg7"]
[ext_resource type="Script" path="res://bullet/bullet.gd" id="1_mfone"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_px3ut"]
size = Vector2(12, 12)
[node name="Bullet" type="Area2D"]
script = ExtResource("1_mfone")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_buxg7")
hframes = 2
[node name="CollisionShape2DLeft" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_px3ut")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

46
enemy/enemy.gd Normal file
View File

@ -0,0 +1,46 @@
extends Area2D
signal died
var start_pos = Vector2.ZERO
var speed = 0
var bullet_scene = preload("res://enemy_bullet/enemy_bullet.tscn")
@onready var screensize = get_viewport_rect().size
func start(pos):
speed = 0
position = Vector2(pos.x, -pos.y)
start_pos = pos
await get_tree().create_timer(randf_range(0.25, 0.55)).timeout
var tween = create_tween().set_trans(Tween.TRANS_BACK)
tween.tween_property(self, "position:y", start_pos.y, 1.4)
await tween.finished
$MoveTimer.wait_time = randf_range(5, 20)
$MoveTimer.start()
$ShootTimer.wait_time = randf_range(4, 20)
$ShootTimer.start()
func explode():
speed = 0
$AnimationPlayer.play("explode")
set_deferred("monitoring", false)
died.emit(5)
await $AnimationPlayer.animation_finished
queue_free()
func _process(delta):
position.y += speed * delta
if position.y > screensize.y + 32:
start(start_pos)
func _on_move_timer_timeout():
speed = randf_range(75, 100)
func _on_shoot_timer_timeout():
var b = bullet_scene.instantiate()
get_tree().root.add_child(b)
b.start(position)
$ShootTimer.wait_time = randf_range(4, 20)
$ShootTimer.start()

162
enemy/enemy.tscn Normal file
View File

@ -0,0 +1,162 @@
[gd_scene load_steps=9 format=3 uid="uid://u30xbqx1txm"]
[ext_resource type="Script" path="res://enemy/enemy.gd" id="1_1a4e0"]
[ext_resource type="Texture2D" uid="uid://dxs8nh8w0hl4r" path="res://assets/Enemies/Bon_Bon (16 x 16).png" id="1_cy4xy"]
[ext_resource type="Texture2D" uid="uid://c34rv3eisv5gk" path="res://assets/Effects/Explosion (16 x 16).png" id="1_mobcm"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bvs7u"]
size = Vector2(2.8, 1.6)
[sub_resource type="Animation" id="Animation_bwcbs"]
resource_name = "bounce"
loop_mode = 1
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ship:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.35),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [2, 1, 0, 3, 0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ship:texture")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("1_cy4xy")]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("ship:hframes")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [4]
}
[sub_resource type="Animation" id="Animation_n8avp"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ship: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("ship:texture")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("1_cy4xy")]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("ship:hframes")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [4]
}
[sub_resource type="Animation" id="Animation_mxmxa"]
resource_name = "explode"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ship:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("1_mobcm")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("ship:hframes")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [6]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("ship:frame")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tma75"]
_data = {
"RESET": SubResource("Animation_n8avp"),
"bounce": SubResource("Animation_bwcbs"),
"explode": SubResource("Animation_mxmxa")
}
[node name="enemy" type="Area2D" groups=["enemies"]]
script = ExtResource("1_1a4e0")
[node name="ship" type="Sprite2D" parent="."]
texture = ExtResource("1_cy4xy")
hframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -7.15256e-07)
scale = Vector2(5, 5.03082)
shape = SubResource("RectangleShape2D_bvs7u")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_tma75")
}
autoplay = "bounce"
[node name="MoveTimer" type="Timer" parent="."]
one_shot = true
[node name="ShootTimer" type="Timer" parent="."]
one_shot = true
[connection signal="timeout" from="MoveTimer" to="." method="_on_move_timer_timeout"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_shoot_timer_timeout"]

View File

@ -0,0 +1,19 @@
extends Area2D
@export var speed = 150
func start(pos):
position = pos
func _process(delta):
position.y += speed * delta
func _on_visible_on_screen_notifier_2d_screen_exited():
queue_free() # Replace with function body.
func _on_area_entered(area):
if area.name == "Player":
queue_free()
area.shield -= 1

View File

@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=3 uid="uid://cd4vk0l8luwvx"]
[ext_resource type="Texture2D" uid="uid://dkbhiir1v8nq1" path="res://assets/Projectiles/Enemy_projectile (16 x 16).png" id="1_wjdji"]
[ext_resource type="Script" path="res://enemy_bullet/enemy_bullet.gd" id="1_y73ek"]
[sub_resource type="CircleShape2D" id="CircleShape2D_4410i"]
radius = 3.0
[node name="enemy_bullet" type="Area2D"]
script = ExtResource("1_y73ek")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_wjdji")
hframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_4410i")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

51
main/main.gd Normal file
View File

@ -0,0 +1,51 @@
extends Node2D
@onready var start_button = $CanvasLayer/CenterContainer/Start
@onready var game_over = $CanvasLayer/CenterContainer/GameOver
var enemy: PackedScene = preload("res://enemy/enemy.tscn")
var score: int = 0
var enemies_count: int = 0
func _ready():
game_over.hide()
start_button.show()
func new_game():
score = 0
$CanvasLayer/UI.update_score(score)
$Player.start()
spawn_enemies()
func spawn_enemies():
for x in range(9):
for y in range(3):
var e = enemy.instantiate()
var pos = Vector2(x * (16 + 8) + 24, 16 * 4 + y * 16)
add_child(e)
e.start(pos)
e.died.connect(_on_enemy_died)
func _on_enemy_died(value):
score += value
$CanvasLayer/UI.update_score(score)
func _on_start_pressed():
start_button.hide()
new_game()
func _on_player_died():
get_tree().call_group("enemies", "queue_free")
game_over.show()
await get_tree().create_timer(2).timeout
game_over.hide()
start_button.show()
func _on_child_entered_tree(node):
if node.is_in_group("enemies"):
enemies_count += 1
func _on_child_exiting_tree(node):
if node.is_in_group("enemies"):
enemies_count -= 1

91
main/main.tscn Normal file
View File

@ -0,0 +1,91 @@
[gd_scene load_steps=10 format=3 uid="uid://ch7v0qydi26a4"]
[ext_resource type="Script" path="res://main/main.gd" id="1_1ejc6"]
[ext_resource type="Texture2D" uid="uid://cd2w7gbytga05" path="res://assets/Space_BG (2 frames) (64 x 64).png" id="1_jkmwa"]
[ext_resource type="PackedScene" uid="uid://bp5q1dm5nm1q7" path="res://player/player.tscn" id="2_bnyct"]
[ext_resource type="Texture2D" uid="uid://dwr1n1387fvel" path="res://assets/UI objects/START (48 x 8).png" id="3_ib0lp"]
[ext_resource type="Texture2D" uid="uid://3yqtv6s02201" path="res://assets/UI objects/GAME_OVER (72 x 8).png" id="4_6ors6"]
[ext_resource type="PackedScene" uid="uid://c78q4a2j7gjow" path="res://ui/ui.tscn" id="4_fs4vk"]
[sub_resource type="Animation" id="Animation_g3nlb"]
resource_name = "bg"
length = 2.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("background:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Rect2(2.08165e-12, 2.08165e-12, 240, 320), Rect2(2.08165e-12, 64, 240, 320)]
}
[sub_resource type="Animation" id="Animation_bhcu2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("background:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(2.08165e-12, 2.08165e-12, 240, 320)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1ooqy"]
_data = {
"RESET": SubResource("Animation_bhcu2"),
"bg": SubResource("Animation_g3nlb")
}
[node name="main" type="Node2D"]
script = ExtResource("1_1ejc6")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="UI" parent="CanvasLayer" instance=ExtResource("4_fs4vk")]
[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Start" type="TextureButton" parent="CanvasLayer/CenterContainer"]
layout_mode = 2
texture_normal = ExtResource("3_ib0lp")
[node name="GameOver" type="TextureRect" parent="CanvasLayer/CenterContainer"]
layout_mode = 2
texture = ExtResource("4_6ors6")
[node name="background" type="Sprite2D" parent="."]
texture_repeat = 2
position = Vector2(1, 0)
texture = ExtResource("1_jkmwa")
centered = false
region_enabled = true
region_rect = Rect2(2.08165e-12, 2.08165e-12, 240, 320)
[node name="Player" parent="." instance=ExtResource("2_bnyct")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_1ooqy")
}
autoplay = "bg"
[connection signal="child_entered_tree" from="." to="." method="_on_child_entered_tree"]
[connection signal="child_exiting_tree" from="." to="." method="_on_child_exiting_tree"]
[connection signal="pressed" from="CanvasLayer/CenterContainer/Start" to="." method="_on_start_pressed"]
[connection signal="area_entered" from="Player" to="." method="_on_player_area_entered"]
[connection signal="died" from="Player" to="." method="_on_player_died"]
[connection signal="shield_changed" from="Player" to="CanvasLayer/UI" method="update_shield"]

76
player/player.gd Normal file
View File

@ -0,0 +1,76 @@
extends Area2D
signal died
signal shield_changed
@onready var screensize = get_viewport_rect().size
@export var speed = 150
@export var cooldown = 0.25
@export var bullet_scene: PackedScene
@export var max_shield = 10
var shield = max_shield:
set = set_shield
var can_shoot = true
func _ready():
start()
func _process(delta):
var input = Input.get_vector("left", "right", "up", "down")
if input.x > 0:
$Ship.frame = 2
$Ship/Boosters.animation = "right"
elif input.x < 0:
$Ship.frame = 0
$Ship/Boosters.animation = "left"
else:
$Ship.frame = 1
$Ship/Boosters.animation = "forward"
position += input * speed * delta
position = position.clamp(Vector2(8, 8), screensize-Vector2(8, 8))
if Input.is_action_pressed("shoot"):
shoot()
func start():
show()
shield = max_shield
position = Vector2(screensize.x / 2, screensize.y - 64)
$GunCooldown.wait_time = cooldown
func shoot():
if not can_shoot:
return
can_shoot = false
$GunCooldown.start()
var b = bullet_scene.instantiate()
get_tree().root.add_child(b)
b.start(position + Vector2(0, -8))
func set_shield(value):
shield = min(max_shield, value)
shield_changed.emit(max_shield, shield)
if shield <= 0:
hide()
died.emit()
func _on_gun_cooldown_timeout():
can_shoot = true
func _on_player_area_entered(area):
if area.is_in_group("enemies"):
area.explode()
shield -= max_shield / 2 # Replace with function body.
func _on_area_entered(area):
if area.is_in_group("enemies"):
area.explode()
shield -= max_shield / 2 # Replace with function body.

95
player/player.tscn Normal file
View File

@ -0,0 +1,95 @@
[gd_scene load_steps=15 format=3 uid="uid://bp5q1dm5nm1q7"]
[ext_resource type="Texture2D" uid="uid://bhigo5rya0wic" path="res://assets/Player ship/Player_ship (16 x 16).png" id="1_jhnuv"]
[ext_resource type="Script" path="res://player/player.gd" id="1_s8ptw"]
[ext_resource type="PackedScene" uid="uid://bts6qcq761ji2" path="res://bullet/bullet.tscn" id="2_rlc4m"]
[ext_resource type="Texture2D" uid="uid://c2v2u7s7r8qsa" path="res://assets/Player ship/Boosters (16 x 16).png" id="3_4r7rv"]
[ext_resource type="Texture2D" uid="uid://dlj1rn2xxgyj2" path="res://assets/Player ship/Boosters_left (16 x 16).png" id="4_a5ggp"]
[ext_resource type="Texture2D" uid="uid://bha3rynxwdueg" path="res://assets/Player ship/Boosters_right (16 x 16).png" id="5_txrj4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_0v0l2"]
atlas = ExtResource("3_4r7rv")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_r8out"]
atlas = ExtResource("3_4r7rv")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_vyuqh"]
atlas = ExtResource("4_a5ggp")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_aeky0"]
atlas = ExtResource("4_a5ggp")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_822yu"]
atlas = ExtResource("5_txrj4")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_uauq2"]
atlas = ExtResource("5_txrj4")
region = Rect2(16, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_dfu82"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_0v0l2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r8out")
}],
"loop": true,
"name": &"forward",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vyuqh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aeky0")
}],
"loop": true,
"name": &"left",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_822yu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uauq2")
}],
"loop": true,
"name": &"right",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_t7btk"]
radius = 8.0
[node name="Player" type="Area2D"]
script = ExtResource("1_s8ptw")
bullet_scene = ExtResource("2_rlc4m")
[node name="Ship" type="Sprite2D" parent="."]
texture = ExtResource("1_jhnuv")
hframes = 3
frame = 1
[node name="Boosters" type="AnimatedSprite2D" parent="Ship"]
position = Vector2(0, 15)
sprite_frames = SubResource("SpriteFrames_dfu82")
animation = &"forward"
autoplay = "forward"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_t7btk")
[node name="GunCooldown" type="Timer" parent="."]
one_shot = true
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="timeout" from="GunCooldown" to="." method="_on_gun_cooldown_timeout"]

64
project.godot Normal file
View File

@ -0,0 +1,64 @@
; 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="HyperSpace"
run/main_scene="res://player/player.tscn"
config/features=PackedStringArray("4.2", "Mobile")
[autoload]
GameManager="*res://singletons/game_manager.gd"
[display]
window/size/viewport_width=240
window/size/viewport_height=320
window/size/window_width_override=480
window/size/window_height_override=640
window/stretch/mode="canvas_items"
[input]
left={
"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":97,"echo":false,"script":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":4194321,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
right={
"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":100,"echo":false,"script":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":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
up={
"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":119,"echo":false,"script":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":4194320,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
down={
"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":115,"echo":false,"script":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":4194322,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
shoot={
"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":32,"key_label":0,"unicode":32,"echo":false,"script":null)
]
}
[rendering]
textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="mobile"

View File

@ -0,0 +1,20 @@
extends HBoxContainer
var digit_coords = {
1: Vector2(0, 0),
2: Vector2(8, 0),
3: Vector2(16, 0),
4: Vector2(24, 0),
5: Vector2(32, 0),
6: Vector2(0, 8),
7: Vector2(8, 8),
8: Vector2(16, 8),
9: Vector2(24, 8),
0: Vector2(32, 8)
}
func display_digits(n):
var s = "%08d" % n
for i in 8:
get_child(i).texture.region = Rect2(digit_coords[int(s[i])],
Vector2(8, 8))

View File

@ -0,0 +1,103 @@
[gd_scene load_steps=13 format=3 uid="uid://csdfxrgu1qmd5"]
[ext_resource type="Script" path="res://score_counter/score_counter.gd" id="1_8d4cn"]
[ext_resource type="Texture2D" uid="uid://dq5w04k1dvsx7" path="res://assets/UI objects/Number_font (8 x 8).png" id="1_yrwju"]
[sub_resource type="AtlasTexture" id="AtlasTexture_jhns6"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_o00fo"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_55rno"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_7rjkr"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_f671c"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_e6aeh"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_5vge4"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_pl1ts"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_8l445"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_xkrqf"]
atlas = ExtResource("1_yrwju")
region = Rect2(32, 8, 8, 8)
[node name="ScoreCounter" type="HBoxContainer"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 8.0
grow_horizontal = 2
size_flags_horizontal = 8
theme_override_constants/separation = 0
script = ExtResource("1_8d4cn")
[node name="Digit0" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_jhns6")
stretch_mode = 5
[node name="Digit1" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_o00fo")
stretch_mode = 5
[node name="Digit2" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_55rno")
stretch_mode = 5
[node name="Digit3" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_7rjkr")
stretch_mode = 5
[node name="Digit4" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_f671c")
stretch_mode = 5
[node name="Digit5" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_e6aeh")
stretch_mode = 5
[node name="Digit6" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_5vge4")
stretch_mode = 5
[node name="Digit7" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_pl1ts")
stretch_mode = 5
[node name="Digit8" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_8l445")
stretch_mode = 5
[node name="Digit9" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("AtlasTexture_xkrqf")
stretch_mode = 5

View File

@ -0,0 +1,16 @@
extends Node
var enemy: PackedScene = preload("res://enemy/enemy.tscn")
var score: int = 0;
func spawn_enemies():
for x in range(9):
for y in range(3):
var e = enemy.instantiate()
var pos = Vector2(x * (16 + 8) + 24, 16 * 4 + y * 16)
add_child(e)
e.start(pos)
e.died.connect(_on_enemy_died)
func _on_enemy_died(value):
score += value

11
ui/ui.gd Normal file
View File

@ -0,0 +1,11 @@
extends MarginContainer
@onready var shield_bar = $HBoxContainer/ShieldBar
@onready var score_counter = $HBoxContainer/ScoreCounter
func update_score(value):
score_counter.display_digits(value)
func update_shield(max_value, value):
shield_bar.max_value = max_value
shield_bar.value = value

37
ui/ui.tscn Normal file
View File

@ -0,0 +1,37 @@
[gd_scene load_steps=5 format=3 uid="uid://c78q4a2j7gjow"]
[ext_resource type="Script" path="res://ui/ui.gd" id="1_nfyhk"]
[ext_resource type="Texture2D" uid="uid://bufp3nx5nbfac" path="res://assets/UI objects/bar_background.png" id="1_p1vxi"]
[ext_resource type="Texture2D" uid="uid://cl57s76eyq8e6" path="res://assets/UI objects/bar_foreground.png" id="2_ioryv"]
[ext_resource type="PackedScene" uid="uid://csdfxrgu1qmd5" path="res://score_counter/score_counter.tscn" id="4_wngna"]
[node name="UI" type="MarginContainer"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 20.0
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 4
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
script = ExtResource("1_nfyhk")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="ShieldBar" type="TextureProgressBar" parent="HBoxContainer"]
custom_minimum_size = Vector2(80, 16)
layout_mode = 2
value = 100.0
nine_patch_stretch = true
stretch_margin_left = 3
stretch_margin_top = 3
stretch_margin_right = 3
stretch_margin_bottom = 3
texture_under = ExtResource("1_p1vxi")
texture_progress = ExtResource("2_ioryv")
[node name="ScoreCounter" parent="HBoxContainer" instance=ExtResource("4_wngna")]
layout_mode = 2