Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9448311064 | ||
|
|
cdb1b5d632 | ||
|
|
5930d37049 | ||
|
|
4559b154a1 | ||
|
|
ac67579888 | ||
|
|
bb9f58ae08 | ||
|
|
5fb367e082 | ||
|
|
4eb6966ef1 | ||
|
|
17a077d186 | ||
|
|
404f518ddd | ||
|
|
b4bae4bb14 |
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
Week 5:
|
||||||
|
Coin collection, bad guys, dealing damage
|
||||||
|
|
||||||
|
In this lesson, we get some enemies in the game, and along the way w
|
||||||
|
learn some valuable principles.
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://2ovhbun1d00s"
|
||||||
|
path="res://.godot/imported/crate.png-3c788bb24b8188e6f11d4ace2d9118d8.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/destructibles/crate.png"
|
||||||
|
dest_files=["res://.godot/imported/crate.png-3c788bb24b8188e6f11d4ace2d9118d8.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 908 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bj3ccpqo3t7pv"
|
||||||
|
path="res://.godot/imported/slime_green.png-e5d60b3e093812754197fdd9edfc7bf5.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/enemies/slime/slime_green.png"
|
||||||
|
dest_files=["res://.godot/imported/slime_green.png-e5d60b3e093812754197fdd9edfc7bf5.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b6fqvrq70n5al"
|
||||||
|
path="res://.godot/imported/Terrain (32x32).png-7c65717e98f50801dcb0b6e4b7ea2dbc.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/Terrain (32x32).png"
|
||||||
|
dest_files=["res://.godot/imported/Terrain (32x32).png-7c65717e98f50801dcb0b6e4b7ea2dbc.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bhr2gp8fktmd7"
|
||||||
|
path="res://.godot/imported/foreground.png-3151a7c34530c015b33a4ea37acc5e2f.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/bg/foreground.png"
|
||||||
|
dest_files=["res://.godot/imported/foreground.png-3151a7c34530c015b33a4ea37acc5e2f.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bfhtipeqja1da"
|
||||||
|
path="res://.godot/imported/midground.png-03eab17df5ff63383933587ac063d6c8.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/bg/midground.png"
|
||||||
|
dest_files=["res://.godot/imported/midground.png-03eab17df5ff63383933587ac063d6c8.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dfikkb3kxl5vf"
|
||||||
|
path="res://.godot/imported/sky.png-86cc6f428916ab8e3e1824da6ccc3df5.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/bg/sky.png"
|
||||||
|
dest_files=["res://.godot/imported/sky.png-86cc6f428916ab8e3e1824da6ccc3df5.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://er1mfomleylu"
|
||||||
|
path="res://.godot/imported/plane_512x512.png-d829dffdb6fbf8fcd999f98a3b97a20e.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/flavour/plane_512x512.png"
|
||||||
|
dest_files=["res://.godot/imported/plane_512x512.png-d829dffdb6fbf8fcd999f98a3b97a20e.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cewk7bgu5elop"
|
||||||
|
path="res://.godot/imported/mushroom_32x64.png-b1dbb217db4b1cc7fe723fa9cbf9622b.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/veggies/mushroom_32x64.png"
|
||||||
|
dest_files=["res://.godot/imported/mushroom_32x64.png-b1dbb217db4b1cc7fe723fa9cbf9622b.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 675 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bcgol8iru1j5n"
|
||||||
|
path="res://.godot/imported/veg_32x32.png-1a23bbefe425ba5c243b7f4852257a1b.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/environment/veggies/veg_32x32.png"
|
||||||
|
dest_files=["res://.godot/imported/veg_32x32.png-1a23bbefe425ba5c243b7f4852257a1b.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 500 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://brsknqptomuux"
|
||||||
|
path="res://.godot/imported/coin.png-f4453cae0c71d6ed2110d4ba8123634d.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/pickups/coin.png"
|
||||||
|
dest_files=["res://.godot/imported/coin.png-f4453cae0c71d6ed2110d4ba8123634d.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dngnhx41kw3mw"
|
||||||
|
path="res://.godot/imported/Player Punch 64x64.png-e81d95f7286a1f82c2b84ff5ac90cdcb.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/charging/Player Punch 64x64.png"
|
||||||
|
dest_files=["res://.godot/imported/Player Punch 64x64.png-e81d95f7286a1f82c2b84ff5ac90cdcb.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://k0r4u3odrun4"
|
||||||
|
path="res://.godot/imported/Player Death 64x64.png-4a0ce04f5d26e871d084fcfc48e67d00.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/death/Player Death 64x64.png"
|
||||||
|
dest_files=["res://.godot/imported/Player Death 64x64.png-4a0ce04f5d26e871d084fcfc48e67d00.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c7ike4q1xl2gy"
|
||||||
|
path="res://.godot/imported/Player Hurt 48x48.png-4f3bee63f7b077a423955d655b236738.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/hurt/Player Hurt 48x48.png"
|
||||||
|
dest_files=["res://.godot/imported/Player Hurt 48x48.png-4f3bee63f7b077a423955d655b236738.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b1ai5l50rwv4u"
|
||||||
|
path="res://.godot/imported/Player Idle 48x48.png-f4dc4a776c51960ade42b56516ebdf44.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/idle/Player Idle 48x48.png"
|
||||||
|
dest_files=["res://.godot/imported/Player Idle 48x48.png-f4dc4a776c51960ade42b56516ebdf44.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 1021 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cgyc5mlhrd472"
|
||||||
|
path="res://.godot/imported/player jump 48x48.png-76072e8defb6fa3b97cc972a34149281.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/jump_fall/player jump 48x48.png"
|
||||||
|
dest_files=["res://.godot/imported/player jump 48x48.png-76072e8defb6fa3b97cc972a34149281.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://di17x5ovjtvtt"
|
||||||
|
path="res://.godot/imported/player run 48x48.png-88a3d854902c0e89fc61b644954350dd.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/player/run/player run 48x48.png"
|
||||||
|
dest_files=["res://.godot/imported/player run 48x48.png-88a3d854902c0e89fc61b644954350dd.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cl142hwp38td6"
|
||||||
|
path="res://.godot/imported/pixel_bullet.png-20ba33e0a261e4601930c0fd8abb422a.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/projectiles/pixel_bullet.png"
|
||||||
|
dest_files=["res://.godot/imported/pixel_bullet.png-20ba33e0a261e4601930c0fd8abb422a.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cmobbopn07ooi"
|
||||||
|
path="res://.godot/imported/plane_00.png-715574c35ac58427959c768c95980a6f.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/source/plane_00.png"
|
||||||
|
dest_files=["res://.godot/imported/plane_00.png-715574c35ac58427959c768c95980a6f.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://74b6xr74ylk0"
|
||||||
|
path="res://.godot/imported/plane_01.png-78095a15e23617810bded5bfa5f5ebae.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/source/plane_01.png"
|
||||||
|
dest_files=["res://.godot/imported/plane_01.png-78095a15e23617810bded5bfa5f5ebae.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 23 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://djdtyvgn5noje"
|
||||||
|
path="res://.godot/imported/plane_02.png-8b33a4b74ab76c2899e86cb37ed79d24.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/source/plane_02.png"
|
||||||
|
dest_files=["res://.godot/imported/plane_02.png-8b33a4b74ab76c2899e86cb37ed79d24.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bh3jkggvx0spp"
|
||||||
|
path="res://.godot/imported/plane_03.png-511bd1045c45b614ee2bbad36f4dd30b.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/source/plane_03.png"
|
||||||
|
dest_files=["res://.godot/imported/plane_03.png-511bd1045c45b614ee2bbad36f4dd30b.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
@@ -15,6 +15,14 @@ run/main_scene="uid://ch6sfehmsskcs"
|
|||||||
config/features=PackedStringArray("4.6", "Forward Plus")
|
config/features=PackedStringArray("4.6", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
[display]
|
||||||
|
|
||||||
|
window/size/viewport_width=480
|
||||||
|
window/size/viewport_height=270
|
||||||
|
window/size/window_width_override=960
|
||||||
|
window/size/window_height_override=540
|
||||||
|
window/stretch/mode="viewport"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
shove={
|
shove={
|
||||||
@@ -27,6 +35,11 @@ shoot={
|
|||||||
"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":90,"key_label":0,"unicode":122,"location":0,"echo":false,"script":null)
|
"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":90,"key_label":0,"unicode":122,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
fire={
|
||||||
|
"deadzone": 0.2,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":67,"key_label":0,"unicode":99,"location":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[physics]
|
[physics]
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
[gd_scene format=3 uid="uid://bp51pocvj7p3x"]
|
[gd_scene format=3 uid="uid://bp51pocvj7p3x"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bvy43aky6y3er" path="res://scripts/bullet.gd" id="1_mkf8s"]
|
[ext_resource type="Script" uid="uid://bvy43aky6y3er" path="res://scripts/bullet.gd" id="1_mkf8s"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cl142hwp38td6" path="res://assets/projectiles/pixel_bullet.png" id="2_y25gk"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h1aey"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y25gk"]
|
||||||
size = Vector2(8, 3)
|
size = Vector2(10, 4)
|
||||||
|
|
||||||
[node name="Bullet" type="Area2D" unique_id=1728947011]
|
[node name="Bullet" type="Area2D" unique_id=397024757]
|
||||||
script = ExtResource("1_mkf8s")
|
script = ExtResource("1_mkf8s")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=791301971]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1862785605]
|
||||||
position = Vector2(0, 0.5)
|
shape = SubResource("RectangleShape2D_y25gk")
|
||||||
shape = SubResource("RectangleShape2D_h1aey")
|
debug_color = Color(0.92602646, 0.20405883, 0.46076977, 0.41960785)
|
||||||
debug_color = Color(0.9348346, 0.10724712, 0.5768572, 0.41960785)
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1465228846]
|
||||||
|
texture_filter = 1
|
||||||
|
position = Vector2(-2.9999998, -1.9999998)
|
||||||
|
rotation = -3.1367095
|
||||||
|
scale = Vector2(0.07999989, 0.08039169)
|
||||||
|
texture = ExtResource("2_y25gk")
|
||||||
|
|
||||||
|
[connection signal="area_entered" from="." to="." method="_on_body_entered"]
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
[gd_scene format=3 uid="uid://cfmbd0jdbrvd1"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://d2sc7mlvheh7m" path="res://scripts/coin.gd" id="1_i64fm"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://brsknqptomuux" path="res://assets/pickups/coin.png" id="1_rwqht"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_i64fm"]
|
||||||
|
radius = 6.0
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_11l1o"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(0, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d14el"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(16, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1ikuy"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(32, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wnlwo"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(48, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jig8b"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(64, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xmuha"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(80, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kfxoj"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(96, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jsmju"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(112, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_s0mny"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(128, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7cc30"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(144, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rojmm"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(160, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ls27i"]
|
||||||
|
atlas = ExtResource("1_rwqht")
|
||||||
|
region = Rect2(176, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ssuvv"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_11l1o")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_d14el")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_1ikuy")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_wnlwo")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jig8b")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_xmuha")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_kfxoj")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jsmju")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_s0mny")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_7cc30")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_rojmm")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ls27i")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"default",
|
||||||
|
"speed": 12.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[node name="Coin" type="Area2D" unique_id=354461121]
|
||||||
|
script = ExtResource("1_i64fm")
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=151276741]
|
||||||
|
shape = SubResource("CircleShape2D_i64fm")
|
||||||
|
debug_color = Color(0.6971114, 0.4832114, 0.29441354, 0.41960785)
|
||||||
|
|
||||||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=221062566]
|
||||||
|
texture_filter = 1
|
||||||
|
sprite_frames = SubResource("SpriteFrames_ssuvv")
|
||||||
|
autoplay = "default"
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
@@ -1,13 +1,19 @@
|
|||||||
[gd_scene format=3 uid="uid://b6cmg0k8qjoxi"]
|
[gd_scene format=3 uid="uid://b6cmg0k8qjoxi"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cxgsqwmbd0c8q" path="res://scripts/crate.gd" id="1_b66cd"]
|
[ext_resource type="Script" uid="uid://cxgsqwmbd0c8q" path="res://scripts/crate.gd" id="1_b66cd"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://2ovhbun1d00s" path="res://assets/destructibles/crate.png" id="2_dwt0d"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
|
||||||
|
|
||||||
[node name="Crate" type="RigidBody2D" unique_id=1609374030]
|
[node name="Crate" type="RigidBody2D" unique_id=1609374030 groups=["shootable"]]
|
||||||
script = ExtResource("1_b66cd")
|
script = ExtResource("1_b66cd")
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1887853406]
|
||||||
|
position = Vector2(0, 2)
|
||||||
|
scale = Vector2(0.08, 0.08)
|
||||||
|
texture = ExtResource("2_dwt0d")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1778772587]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1778772587]
|
||||||
shape = SubResource("RectangleShape2D_uwrxv")
|
shape = SubResource("RectangleShape2D_uwrxv")
|
||||||
debug_color = Color(0.83607924, 0.38220474, 0.18172199, 0.41960785)
|
debug_color = Color(0.83607924, 0.38220474, 0.18172199, 0.41960785)
|
||||||
@@ -1,10 +1,404 @@
|
|||||||
[gd_scene format=3 uid="uid://ch6sfehmsskcs"]
|
[gd_scene format=4 uid="uid://ch6sfehmsskcs"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dtv434qd1rfmu" path="res://scripts/game.gd" id="1_lnu2h"]
|
[ext_resource type="Script" uid="uid://dtv434qd1rfmu" path="res://scripts/game.gd" id="1_lnu2h"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dfikkb3kxl5vf" path="res://assets/environment/bg/sky.png" id="2_0tnpc"]
|
||||||
[ext_resource type="Script" uid="uid://b5c00ybml8rj" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
[ext_resource type="Script" uid="uid://b5c00ybml8rj" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b6fqvrq70n5al" path="res://assets/environment/Terrain (32x32).png" id="2_p57ef"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bcgol8iru1j5n" path="res://assets/environment/veggies/veg_32x32.png" id="3_gee14"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bfhtipeqja1da" path="res://assets/environment/bg/midground.png" id="3_vtaks"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cewk7bgu5elop" path="res://assets/environment/veggies/mushroom_32x64.png" id="4_0tnpc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://byl4bdrupii3k" path="res://scenes/player.tscn" id="4_iywne"]
|
[ext_resource type="PackedScene" uid="uid://byl4bdrupii3k" path="res://scenes/player.tscn" id="4_iywne"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bhr2gp8fktmd7" path="res://assets/environment/bg/foreground.png" id="4_kvpfn"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://er1mfomleylu" path="res://assets/environment/flavour/plane_512x512.png" id="5_dinhu"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b6cmg0k8qjoxi" path="res://scenes/crate.tscn" id="5_iywne"]
|
[ext_resource type="PackedScene" uid="uid://b6cmg0k8qjoxi" path="res://scenes/crate.tscn" id="5_iywne"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b3hgbbmb0nohj" path="res://scenes/trigger.tscn" id="5_p57ef"]
|
[ext_resource type="PackedScene" uid="uid://b3hgbbmb0nohj" path="res://scenes/trigger.tscn" id="5_p57ef"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cfmbd0jdbrvd1" path="res://scenes/coin.tscn" id="13_kvuet"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b23q2ppkeamyh" path="res://scenes/slime.tscn" id="14_trtic"]
|
||||||
|
|
||||||
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_u5sy4"]
|
||||||
|
texture = ExtResource("2_p57ef")
|
||||||
|
texture_region_size = Vector2i(32, 32)
|
||||||
|
0:0/0 = 0
|
||||||
|
0:0/0/terrain_set = 0
|
||||||
|
0:0/0/terrain = 0
|
||||||
|
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
0:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
0:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
0:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
1:0/0 = 0
|
||||||
|
1:0/0/terrain_set = 0
|
||||||
|
1:0/0/terrain = 0
|
||||||
|
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -2.5490456, -16, -1.593153)
|
||||||
|
1:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
1:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
1:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
1:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
1:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
2:0/0 = 0
|
||||||
|
2:0/0/terrain_set = 0
|
||||||
|
2:0/0/terrain = 0
|
||||||
|
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
2:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
2:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
2:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
4:0/0 = 0
|
||||||
|
4:0/0/terrain_set = 0
|
||||||
|
4:0/0/terrain = 0
|
||||||
|
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
4:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
6:0/0 = 0
|
||||||
|
6:0/0/terrain_set = 0
|
||||||
|
6:0/0/terrain = 0
|
||||||
|
6:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
6:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
6:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
6:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
6:0/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
6:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
6:0/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
7:0/0 = 0
|
||||||
|
7:0/0/terrain_set = 0
|
||||||
|
7:0/0/terrain = 0
|
||||||
|
7:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
7:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
7:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
7:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
7:0/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
7:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
7:0/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
9:0/0 = 0
|
||||||
|
9:0/0/terrain_set = 0
|
||||||
|
9:0/0/terrain = 0
|
||||||
|
9:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
9:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
9:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
9:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
9:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
9:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
10:0/0 = 0
|
||||||
|
10:0/0/terrain_set = 0
|
||||||
|
10:0/0/terrain = 0
|
||||||
|
10:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
10:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
10:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
10:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
10:0/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
10:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
12:0/0 = 0
|
||||||
|
12:0/0/terrain_set = 0
|
||||||
|
12:0/0/terrain = 0
|
||||||
|
12:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
12:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
12:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
12:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
12:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
12:0/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
13:0/0 = 0
|
||||||
|
13:0/0/terrain_set = 0
|
||||||
|
13:0/0/terrain = 0
|
||||||
|
13:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
13:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
13:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
13:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
13:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
15:0/0 = 0
|
||||||
|
15:0/0/terrain_set = 0
|
||||||
|
15:0/0/terrain = 0
|
||||||
|
15:0/0/terrains_peering_bit/right_side = 0
|
||||||
|
15:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
15:0/0/terrains_peering_bit/left_side = 0
|
||||||
|
15:0/0/terrains_peering_bit/top_side = 0
|
||||||
|
0:1/0 = 0
|
||||||
|
0:1/0/terrain_set = 0
|
||||||
|
0:1/0/terrain = 0
|
||||||
|
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -1.5931549, -16, -0.63726044, 16, -16, 16)
|
||||||
|
0:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
0:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
0:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
0:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
0:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
1:1/0 = 0
|
||||||
|
2:1/0 = 0
|
||||||
|
2:1/0/terrain_set = 0
|
||||||
|
2:1/0/terrain = 0
|
||||||
|
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(0.95589066, -16, 16, -16, 16, 16, 0.31863022, 16)
|
||||||
|
2:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
2:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
2:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
2:1/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
2:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
4:1/0 = 0
|
||||||
|
4:1/0/terrain_set = 0
|
||||||
|
4:1/0/terrain = 0
|
||||||
|
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
4:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
4:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
6:1/0 = 0
|
||||||
|
6:1/0/terrain_set = 0
|
||||||
|
6:1/0/terrain = 0
|
||||||
|
6:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
6:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
6:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
6:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
6:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
6:1/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
6:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
7:1/0 = 0
|
||||||
|
7:1/0/terrain_set = 0
|
||||||
|
7:1/0/terrain = 0
|
||||||
|
7:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
7:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
7:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
7:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
7:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
7:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
7:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
9:1/0 = 0
|
||||||
|
9:1/0/terrain_set = 0
|
||||||
|
9:1/0/terrain = 0
|
||||||
|
9:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
9:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
9:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
9:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
9:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
10:1/0 = 0
|
||||||
|
10:1/0/terrain_set = 0
|
||||||
|
10:1/0/terrain = 0
|
||||||
|
10:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
10:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
10:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
10:1/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
10:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
10:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
12:1/0 = 0
|
||||||
|
12:1/0/terrain_set = 0
|
||||||
|
12:1/0/terrain = 0
|
||||||
|
12:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
12:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
12:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
12:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
12:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
13:1/0 = 0
|
||||||
|
13:1/0/terrain_set = 0
|
||||||
|
13:1/0/terrain = 0
|
||||||
|
13:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
13:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
13:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
13:1/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
13:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
15:1/0 = 0
|
||||||
|
15:1/0/terrain_set = 0
|
||||||
|
15:1/0/terrain = 0
|
||||||
|
15:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
15:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
15:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
15:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
15:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
16:1/0 = 0
|
||||||
|
16:1/0/terrain_set = 0
|
||||||
|
16:1/0/terrain = 0
|
||||||
|
16:1/0/terrains_peering_bit/right_side = 0
|
||||||
|
16:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
16:1/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
16:1/0/terrains_peering_bit/left_side = 0
|
||||||
|
16:1/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
16:1/0/terrains_peering_bit/top_side = 0
|
||||||
|
16:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
0:2/0 = 0
|
||||||
|
0:2/0/terrain_set = 0
|
||||||
|
0:2/0/terrain = 0
|
||||||
|
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
0:2/0/terrains_peering_bit/right_side = 0
|
||||||
|
0:2/0/terrains_peering_bit/top_side = 0
|
||||||
|
0:2/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
1:2/0 = 0
|
||||||
|
1:2/0/terrain_set = 0
|
||||||
|
1:2/0/terrain = 0
|
||||||
|
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -0.31863022, 16, -0.63726044, 16, 16, -16, 16)
|
||||||
|
1:2/0/terrains_peering_bit/right_side = 0
|
||||||
|
1:2/0/terrains_peering_bit/left_side = 0
|
||||||
|
1:2/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
1:2/0/terrains_peering_bit/top_side = 0
|
||||||
|
1:2/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
2:2/0 = 0
|
||||||
|
2:2/0/terrain_set = 0
|
||||||
|
2:2/0/terrain = 0
|
||||||
|
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
2:2/0/terrains_peering_bit/left_side = 0
|
||||||
|
2:2/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
2:2/0/terrains_peering_bit/top_side = 0
|
||||||
|
4:2/0 = 0
|
||||||
|
4:2/0/terrain_set = 0
|
||||||
|
4:2/0/terrain = 0
|
||||||
|
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
4:2/0/terrains_peering_bit/top_side = 0
|
||||||
|
6:3/0 = 0
|
||||||
|
6:3/0/terrain_set = 0
|
||||||
|
6:3/0/terrain = 0
|
||||||
|
6:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -0.9558945, -16, -0.9558945, 16, -16, 16)
|
||||||
|
6:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
6:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
6:3/0/terrains_peering_bit/top_side = 0
|
||||||
|
6:3/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
7:3/0 = 0
|
||||||
|
7:3/0/terrain_set = 0
|
||||||
|
7:3/0/terrain = 0
|
||||||
|
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(0.95589066, -16, 16, -16, 16, 16, 1.5931549, 16)
|
||||||
|
7:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
7:3/0/terrains_peering_bit/left_side = 0
|
||||||
|
7:3/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
7:3/0/terrains_peering_bit/top_side = 0
|
||||||
|
9:3/0 = 0
|
||||||
|
9:3/0/terrain_set = 0
|
||||||
|
9:3/0/terrain = 0
|
||||||
|
9:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -1.2745228, -16, -1.2745228)
|
||||||
|
9:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
9:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
9:3/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
9:3/0/terrains_peering_bit/left_side = 0
|
||||||
|
10:3/0 = 0
|
||||||
|
10:3/0/terrain_set = 0
|
||||||
|
10:3/0/terrain = 0
|
||||||
|
10:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -1.2745228, -16, -1.2745228)
|
||||||
|
10:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
10:3/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
10:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
10:3/0/terrains_peering_bit/left_side = 0
|
||||||
|
12:3/0 = 0
|
||||||
|
12:3/0/terrain_set = 0
|
||||||
|
12:3/0/terrain = 0
|
||||||
|
12:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
12:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
12:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
12:3/0/terrains_peering_bit/top_side = 0
|
||||||
|
12:3/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
13:3/0 = 0
|
||||||
|
13:3/0/terrain_set = 0
|
||||||
|
13:3/0/terrain = 0
|
||||||
|
13:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
13:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
13:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
13:3/0/terrains_peering_bit/left_side = 0
|
||||||
|
15:3/0 = 0
|
||||||
|
15:3/0/terrain_set = 0
|
||||||
|
15:3/0/terrain = 0
|
||||||
|
15:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
15:3/0/terrains_peering_bit/right_side = 0
|
||||||
|
15:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
16:3/0 = 0
|
||||||
|
16:3/0/terrain_set = 0
|
||||||
|
16:3/0/terrain = 0
|
||||||
|
16:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
16:3/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
16:3/0/terrains_peering_bit/left_side = 0
|
||||||
|
0:4/0 = 0
|
||||||
|
0:4/0/terrain_set = 0
|
||||||
|
0:4/0/terrain = 0
|
||||||
|
0:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
0:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
1:4/0 = 0
|
||||||
|
1:4/0/terrain_set = 0
|
||||||
|
1:4/0/terrain = 0
|
||||||
|
1:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
1:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
1:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
2:4/0 = 0
|
||||||
|
2:4/0/terrain_set = 0
|
||||||
|
2:4/0/terrain = 0
|
||||||
|
2:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
2:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
4:4/0 = 0
|
||||||
|
4:4/0/terrain_set = 0
|
||||||
|
4:4/0/terrain = 0
|
||||||
|
4:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
6:4/0 = 0
|
||||||
|
6:4/0/terrain_set = 0
|
||||||
|
6:4/0/terrain = 0
|
||||||
|
6:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -0.9558945, -16, -0.9558945, 16, -16, 16)
|
||||||
|
6:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
6:4/0/terrains_peering_bit/bottom_right_corner = 0
|
||||||
|
6:4/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
6:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
7:4/0 = 0
|
||||||
|
7:4/0/terrain_set = 0
|
||||||
|
7:4/0/terrain = 0
|
||||||
|
7:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(0.95589066, -16, 16, -16, 16, 16, 1.5931549, 16)
|
||||||
|
7:4/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
7:4/0/terrains_peering_bit/bottom_left_corner = 0
|
||||||
|
7:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
7:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
9:4/0 = 0
|
||||||
|
9:4/0/terrain_set = 0
|
||||||
|
9:4/0/terrain = 0
|
||||||
|
9:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -1.593153, 16, -1.9117851, 16, 16, -16, 16)
|
||||||
|
9:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
9:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
9:4/0/terrains_peering_bit/top_left_corner = 0
|
||||||
|
9:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
10:4/0 = 0
|
||||||
|
10:4/0/terrain_set = 0
|
||||||
|
10:4/0/terrain = 0
|
||||||
|
10:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -1.593153, 16, -1.9117851, 16, 16, -16, 16)
|
||||||
|
10:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
10:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
10:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
10:4/0/terrains_peering_bit/top_right_corner = 0
|
||||||
|
12:4/0 = 0
|
||||||
|
12:4/0/terrain_set = 0
|
||||||
|
12:4/0/terrain = 0
|
||||||
|
12:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
12:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
12:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
12:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
13:4/0 = 0
|
||||||
|
13:4/0/terrain_set = 0
|
||||||
|
13:4/0/terrain = 0
|
||||||
|
13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
13:4/0/terrains_peering_bit/bottom_side = 0
|
||||||
|
13:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
13:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
15:4/0 = 0
|
||||||
|
15:4/0/terrain_set = 0
|
||||||
|
15:4/0/terrain = 0
|
||||||
|
15:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
15:4/0/terrains_peering_bit/right_side = 0
|
||||||
|
15:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
16:4/0 = 0
|
||||||
|
16:4/0/terrain_set = 0
|
||||||
|
16:4/0/terrain = 0
|
||||||
|
16:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||||
|
16:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
16:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
|
||||||
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_vtaks"]
|
||||||
|
texture = ExtResource("3_gee14")
|
||||||
|
texture_region_size = Vector2i(32, 32)
|
||||||
|
0:0/0 = 0
|
||||||
|
0:0/0/terrain_set = 0
|
||||||
|
0:0/0/terrain = 1
|
||||||
|
|
||||||
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kvpfn"]
|
||||||
|
texture = ExtResource("4_0tnpc")
|
||||||
|
texture_region_size = Vector2i(32, 32)
|
||||||
|
0:0/0 = 0
|
||||||
|
0:0/0/terrain_set = 0
|
||||||
|
0:0/0/terrains_peering_bit/bottom_side = 1
|
||||||
|
0:1/0 = 0
|
||||||
|
0:1/0/terrain_set = 0
|
||||||
|
0:1/0/terrain = 1
|
||||||
|
0:1/0/terrains_peering_bit/top_side = 1
|
||||||
|
|
||||||
|
[sub_resource type="TileSet" id="TileSet_gee14"]
|
||||||
|
tile_size = Vector2i(32, 32)
|
||||||
|
physics_layer_0/collision_layer = 1
|
||||||
|
terrain_set_0/mode = 0
|
||||||
|
terrain_set_0/terrain_0/name = "LeafyGreen"
|
||||||
|
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||||
|
terrain_set_0/terrain_1/name = "Veg"
|
||||||
|
terrain_set_0/terrain_1/color = Color(0.5, 0.4375, 0.25, 1)
|
||||||
|
sources/0 = SubResource("TileSetAtlasSource_u5sy4")
|
||||||
|
sources/1 = SubResource("TileSetAtlasSource_vtaks")
|
||||||
|
sources/2 = SubResource("TileSetAtlasSource_kvpfn")
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
||||||
|
|
||||||
@@ -13,40 +407,81 @@
|
|||||||
[node name="Game" type="Node2D" unique_id=981419409]
|
[node name="Game" type="Node2D" unique_id=981419409]
|
||||||
script = ExtResource("1_lnu2h")
|
script = ExtResource("1_lnu2h")
|
||||||
|
|
||||||
|
[node name="bg" type="Node2D" parent="." unique_id=2006279143]
|
||||||
|
|
||||||
|
[node name="sky" type="Parallax2D" parent="bg" unique_id=96096944]
|
||||||
|
repeat_size = Vector2(480, 270)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="bg/sky" unique_id=8390549]
|
||||||
|
texture = ExtResource("2_0tnpc")
|
||||||
|
offset = Vector2(240, 135)
|
||||||
|
|
||||||
|
[node name="midgfround" type="Parallax2D" parent="bg" unique_id=698172308]
|
||||||
|
scroll_scale = Vector2(1.05, 1)
|
||||||
|
repeat_size = Vector2(480, 0)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="bg/midgfround" unique_id=603045131]
|
||||||
|
texture_filter = 1
|
||||||
|
texture = ExtResource("3_vtaks")
|
||||||
|
centered = false
|
||||||
|
offset = Vector2(0, 200)
|
||||||
|
|
||||||
|
[node name="foreground" type="Parallax2D" parent="bg" unique_id=991647999]
|
||||||
|
scroll_scale = Vector2(1.1, 1)
|
||||||
|
repeat_size = Vector2(480, 0)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="bg/foreground" unique_id=1856428018]
|
||||||
|
texture_filter = 1
|
||||||
|
texture = ExtResource("4_kvpfn")
|
||||||
|
offset = Vector2(240, 330)
|
||||||
|
|
||||||
|
[node name="plane" type="Sprite2D" parent="bg" unique_id=2025512082]
|
||||||
|
texture_filter = 1
|
||||||
|
position = Vector2(944, 322)
|
||||||
|
texture = ExtResource("5_dinhu")
|
||||||
|
|
||||||
|
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=1253342998]
|
||||||
|
texture_filter = 1
|
||||||
|
tile_map_data = PackedByteArray("AAARAA0AAAAQAAQAAAARAAwAAAAPAAMAAAASAAwAAAABAAQAAAATAAwAAAAQAAQAAAATAAsAAAAEAAAAAAAUAAkAAAAAAAQAAAAVAAkAAAABAAQAAAAWAAkAAAACAAQAAAAXABEAAAAAAAQAAAAYABEAAAAQAAQAAAAYABAAAAAPAAMAAAAZABAAAAABAAQAAAAaABAAAAABAAQAAAAbABAAAAAQAAQAAAAbAA8AAAAEAAAAAAAbAAwAAAAAAAIAAAAbAAsAAAAAAAAAAAAcAAsAAAABAAAAAAAcAAwAAAABAAIAAAAdAAwAAAACAAIAAAAdAAsAAAAJAAMAAAAeAAsAAAACAAQAAAANAA0AAAAAAAQAAAAOAA0AAAABAAQAAAAPAA0AAAABAAQAAAAQAA0AAAABAAQAAAAKAA8AAAAAAAQAAAALAA8AAAABAAQAAAAMAA8AAAABAAQAAAANAA8AAAAKAAMAAAAOAA8AAAABAAAAAAAPAA8AAAABAAAAAAAQAA8AAAACAAAAAAAQABAAAAACAAEAAAAPABAAAAAGAAAAAAAOABAAAAAGAAAAAAANABAAAAAJAAEAAAANABEAAAAAAAIAAAAOABEAAAABAAIAAAAPABEAAAABAAIAAAAQABEAAAAJAAQAAAARABEAAAABAAQAAAASABEAAAAMAAQAAAASABAAAAAEAAAAAAATABEAAAACAAQAAAANAAwAAQAAAAAAAAAWAAgAAQAAAAAAAAAKAA4AAgAAAAEAAAAKAA0AAgAAAAAAAAA=")
|
||||||
|
tile_set = SubResource("TileSet_gee14")
|
||||||
|
|
||||||
[node name="SceneManager" type="Node2D" parent="." unique_id=323246552]
|
[node name="SceneManager" type="Node2D" parent="." unique_id=323246552]
|
||||||
script = ExtResource("2_lbhrr")
|
script = ExtResource("2_lbhrr")
|
||||||
|
|
||||||
[node name="Player" parent="." unique_id=1254268479 instance=ExtResource("4_iywne")]
|
[node name="Player" parent="." unique_id=2145223914 instance=ExtResource("4_iywne")]
|
||||||
position = Vector2(440.00006, 375.00003)
|
position = Vector2(446.00003, 465.00003)
|
||||||
|
|
||||||
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
|
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
|
||||||
|
|
||||||
[node name="Crate" parent="Crates" unique_id=1609374030 instance=ExtResource("5_iywne")]
|
[node name="Crate" parent="Crates" unique_id=1609374030 instance=ExtResource("5_iywne")]
|
||||||
position = Vector2(508, 373)
|
position = Vector2(916, 337)
|
||||||
|
|
||||||
|
[node name="Crate3" parent="Crates" unique_id=249514132 instance=ExtResource("5_iywne")]
|
||||||
|
position = Vector2(690, 263)
|
||||||
|
|
||||||
[node name="Crate2" parent="Crates" unique_id=1603366376 instance=ExtResource("5_iywne")]
|
[node name="Crate2" parent="Crates" unique_id=1603366376 instance=ExtResource("5_iywne")]
|
||||||
position = Vector2(1098, 323)
|
position = Vector2(458, 355)
|
||||||
|
|
||||||
[node name="Walls" type="Node2D" parent="." unique_id=1895909883]
|
[node name="Walls" type="Node2D" parent="." unique_id=80334518]
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="Walls" unique_id=1863997109]
|
[node name="StaticBody2D" type="StaticBody2D" parent="Walls" unique_id=1863997109]
|
||||||
position = Vector2(446.00006, 404)
|
position = Vector2(1143, 277)
|
||||||
scale = Vector2(3.4000025, 1)
|
scale = Vector2(3.4000025, 1)
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D" unique_id=1910670137]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D" unique_id=1910670137]
|
||||||
shape = SubResource("RectangleShape2D_8cj0n")
|
shape = SubResource("RectangleShape2D_8cj0n")
|
||||||
|
|
||||||
[node name="StaticBody2D4" type="StaticBody2D" parent="Walls" unique_id=575340316]
|
[node name="StaticBody2D4" type="StaticBody2D" parent="Walls" unique_id=823918434]
|
||||||
position = Vector2(516, 404)
|
position = Vector2(857, 608)
|
||||||
scale = Vector2(3.4000025, 1)
|
scale = Vector2(3.4000025, 1)
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D4" unique_id=522720352]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D4" unique_id=1243761990]
|
||||||
shape = SubResource("RectangleShape2D_8cj0n")
|
shape = SubResource("RectangleShape2D_8cj0n")
|
||||||
|
|
||||||
[node name="StaticBody2D3" type="StaticBody2D" parent="Walls" unique_id=2089762008]
|
[node name="StaticBody2D3" type="StaticBody2D" parent="Walls" unique_id=2089762008]
|
||||||
position = Vector2(734.00006, 377)
|
position = Vector2(1125, 128.00002)
|
||||||
scale = Vector2(3.4000025, 1)
|
scale = Vector2(3.4000025, 1)
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
@@ -54,7 +489,7 @@ metadata/_edit_group_ = true
|
|||||||
shape = SubResource("RectangleShape2D_8cj0n")
|
shape = SubResource("RectangleShape2D_8cj0n")
|
||||||
|
|
||||||
[node name="StaticBody2D2" type="StaticBody2D" parent="Walls" unique_id=2038269484]
|
[node name="StaticBody2D2" type="StaticBody2D" parent="Walls" unique_id=2038269484]
|
||||||
position = Vector2(681.00006, 398)
|
position = Vector2(1160.0001, 202)
|
||||||
rotation = -0.7375178
|
rotation = -0.7375178
|
||||||
scale = Vector2(3.4000025, 1)
|
scale = Vector2(3.4000025, 1)
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
@@ -62,25 +497,44 @@ metadata/_edit_group_ = true
|
|||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D2" unique_id=1636593491]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D2" unique_id=1636593491]
|
||||||
shape = SubResource("RectangleShape2D_8cj0n")
|
shape = SubResource("RectangleShape2D_8cj0n")
|
||||||
|
|
||||||
[node name="StaticBody2D5" type="StaticBody2D" parent="Walls" unique_id=1787748242]
|
[node name="StaticBody2D5" type="StaticBody2D" parent="Walls" unique_id=564687476]
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D5" unique_id=1244109335]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D5" unique_id=1147447008]
|
||||||
position = Vector2(0, 554)
|
position = Vector2(0, 588)
|
||||||
shape = SubResource("WorldBoundaryShape2D_iywne")
|
shape = SubResource("WorldBoundaryShape2D_iywne")
|
||||||
|
|
||||||
[node name="Triggers" type="Node2D" parent="." unique_id=193669081]
|
[node name="Triggers" type="Node2D" parent="." unique_id=1195236992]
|
||||||
|
|
||||||
[node name="Trigger" parent="Triggers" unique_id=1050615345 instance=ExtResource("5_p57ef")]
|
[node name="Trigger" parent="Triggers" unique_id=229441825 instance=ExtResource("5_p57ef")]
|
||||||
position = Vector2(621.00006, 465.00006)
|
position = Vector2(712, 463)
|
||||||
|
|
||||||
[node name="Trigger2" parent="Triggers" unique_id=1114882050 instance=ExtResource("5_p57ef")]
|
[node name="Trigger2" parent="Triggers" unique_id=1474950249 instance=ExtResource("5_p57ef")]
|
||||||
position = Vector2(829, 464)
|
position = Vector2(817, 445)
|
||||||
intent = "fan"
|
intent = "fan"
|
||||||
|
|
||||||
[node name="Trigger3" parent="Triggers" unique_id=400578019 instance=ExtResource("5_p57ef")]
|
[node name="Trigger3" parent="Triggers" unique_id=205623468 instance=ExtResource("5_p57ef")]
|
||||||
position = Vector2(1097, 462.99997)
|
position = Vector2(953.99994, 442.99997)
|
||||||
intent = "teleport"
|
intent = "teleport"
|
||||||
|
|
||||||
|
[node name="Coins" type="Node2D" parent="." unique_id=2040053188]
|
||||||
|
position = Vector2(459, 408)
|
||||||
|
|
||||||
|
[node name="Coin" parent="Coins" unique_id=354461121 instance=ExtResource("13_kvuet")]
|
||||||
|
|
||||||
|
[node name="Coin2" parent="Coins" unique_id=987971109 instance=ExtResource("13_kvuet")]
|
||||||
|
position = Vector2(116, -31)
|
||||||
|
|
||||||
|
[node name="Coin3" parent="Coins" unique_id=1071266659 instance=ExtResource("13_kvuet")]
|
||||||
|
position = Vector2(164, -65)
|
||||||
|
|
||||||
|
[node name="Enemies" type="Node2D" parent="." unique_id=791989786]
|
||||||
|
|
||||||
|
[node name="Slime" parent="Enemies" unique_id=822623820 instance=ExtResource("14_trtic")]
|
||||||
|
position = Vector2(401, 470)
|
||||||
|
|
||||||
|
[node name="Slime2" parent="Enemies" unique_id=1058828655 instance=ExtResource("14_trtic")]
|
||||||
|
position = Vector2(654, 277)
|
||||||
|
|
||||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger" to="." method="_on_trigger"]
|
[connection signal="areaTriggerSignal" from="Triggers/Trigger" to="." method="_on_trigger"]
|
||||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger2" to="." method="_on_trigger"]
|
[connection signal="areaTriggerSignal" from="Triggers/Trigger2" to="." method="_on_trigger"]
|
||||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger3" to="." method="_on_trigger"]
|
[connection signal="areaTriggerSignal" from="Triggers/Trigger3" to="." method="_on_trigger"]
|
||||||
@@ -1,33 +1,360 @@
|
|||||||
[gd_scene format=3 uid="uid://byl4bdrupii3k"]
|
[gd_scene format=3 uid="uid://byl4bdrupii3k"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b1obldvd2etx7" path="res://scripts/player.gd" id="1_3vyb7"]
|
[ext_resource type="Script" uid="uid://b1obldvd2etx7" path="res://scripts/player.gd" id="1_3vyb7"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b1ai5l50rwv4u" path="res://assets/player/idle/Player Idle 48x48.png" id="2_g2els"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dngnhx41kw3mw" path="res://assets/player/charging/Player Punch 64x64.png" id="2_qlg0r"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cgyc5mlhrd472" path="res://assets/player/jump_fall/player jump 48x48.png" id="3_dqkch"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://k0r4u3odrun4" path="res://assets/player/death/Player Death 64x64.png" id="3_fjrip"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://di17x5ovjtvtt" path="res://assets/player/run/player run 48x48.png" id="3_qhqgy"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c7ike4q1xl2gy" path="res://assets/player/hurt/Player Hurt 48x48.png" id="5_smehm"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody2D" unique_id=1254268479]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l71n6"]
|
||||||
|
atlas = ExtResource("2_qlg0r")
|
||||||
|
region = Rect2(128, 0, 64, 64)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pf23h"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dt7fs"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wqfne"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wnwbv"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(144, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gl8cc"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(192, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_487ah"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(240, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_md1ol"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(288, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bj30b"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(336, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jc3p3"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(384, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hax0n"]
|
||||||
|
atlas = ExtResource("3_fjrip")
|
||||||
|
region = Rect2(432, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4ni07"]
|
||||||
|
atlas = ExtResource("3_dqkch")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t4otl"]
|
||||||
|
atlas = ExtResource("5_smehm")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_j2b1d"]
|
||||||
|
atlas = ExtResource("5_smehm")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cs1tg"]
|
||||||
|
atlas = ExtResource("5_smehm")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2dvfe"]
|
||||||
|
atlas = ExtResource("5_smehm")
|
||||||
|
region = Rect2(144, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(144, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(192, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(240, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(288, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(336, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(384, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"]
|
||||||
|
atlas = ExtResource("2_g2els")
|
||||||
|
region = Rect2(432, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"]
|
||||||
|
atlas = ExtResource("3_dqkch")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a38lo"]
|
||||||
|
atlas = ExtResource("3_dqkch")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f1ej7"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_oprun"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(144, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qfm1y"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(192, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fulsm"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(240, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4r5pv"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(288, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_60mlk"]
|
||||||
|
atlas = ExtResource("3_qhqgy")
|
||||||
|
region = Rect2(336, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ke2ow"]
|
||||||
|
atlas = ExtResource("2_qlg0r")
|
||||||
|
region = Rect2(192, 0, 64, 64)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ujl30"]
|
||||||
|
atlas = ExtResource("2_qlg0r")
|
||||||
|
region = Rect2(256, 0, 64, 64)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_31cv2"]
|
||||||
|
atlas = ExtResource("2_qlg0r")
|
||||||
|
region = Rect2(320, 0, 64, 64)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_jej6c"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_l71n6")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"charging",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_pf23h")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_dt7fs")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_wqfne")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_wnwbv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_gl8cc")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_487ah")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_md1ol")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_bj30b")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jc3p3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_hax0n")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"death",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_4ni07")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"falling",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_t4otl")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_j2b1d")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_cs1tg")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_2dvfe")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"hurt",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_qhqgy")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_dqkch")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_qlg0r")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_tuyoq")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_fjrip")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_smehm")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ur7pv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_y4r1p")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_d2wvv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_3v2ag")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"idle",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_i4ail")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_a38lo")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"jumping",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jej6c")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_f1ej7")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_oprun")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_a8ls1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_qfm1y")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_fulsm")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_4r5pv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_60mlk")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"running",
|
||||||
|
"speed": 12.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ke2ow")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ujl30")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_31cv2")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"shoving",
|
||||||
|
"speed": 12.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[node name="Player" type="CharacterBody2D" unique_id=2145223914]
|
||||||
scale = Vector2(1.4799998, 1.4799998)
|
scale = Vector2(1.4799998, 1.4799998)
|
||||||
script = ExtResource("1_3vyb7")
|
script = ExtResource("1_3vyb7")
|
||||||
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="." unique_id=712501367]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=775715684]
|
||||||
offset_left = -19.594597
|
|
||||||
offset_top = -36.486492
|
|
||||||
offset_right = 20.405403
|
|
||||||
offset_bottom = -13.486492
|
|
||||||
text = "label"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=771657224]
|
|
||||||
shape = SubResource("CircleShape2D_uwrxv")
|
shape = SubResource("CircleShape2D_uwrxv")
|
||||||
debug_color = Color(0.39731503, 0.48776567, 0.95015794, 0.41960785)
|
debug_color = Color(0.39731503, 0.48776567, 0.95015794, 0.41960785)
|
||||||
|
|
||||||
[node name="RightCast" type="RayCast2D" parent="." unique_id=1585175579]
|
[node name="RightCast" type="RayCast2D" parent="." unique_id=967990879]
|
||||||
target_position = Vector2(16.216217, -0.67567575)
|
target_position = Vector2(16.891893, 0)
|
||||||
|
|
||||||
[node name="LeftCast" type="RayCast2D" parent="." unique_id=544087242]
|
[node name="LeftCast" type="RayCast2D" parent="." unique_id=926020029]
|
||||||
target_position = Vector2(-15.540543, -0.67567575)
|
target_position = Vector2(-17.56757, -0.67567575)
|
||||||
|
|
||||||
[node name="RightTarget" type="Marker2D" parent="." unique_id=855125472]
|
[node name="RightSpawn" type="Marker2D" parent="." unique_id=72314368]
|
||||||
position = Vector2(15.540543, -8.783785)
|
position = Vector2(12.837839, 0)
|
||||||
|
|
||||||
[node name="LeftTarget" type="Marker2D" parent="." unique_id=1162416681]
|
[node name="LeftSpawn" type="Marker2D" parent="." unique_id=374152113]
|
||||||
position = Vector2(-14.864867, -8.783785)
|
position = Vector2(-12.837839, 0.6756754)
|
||||||
|
|
||||||
|
[node name="PlayerGraphic" type="AnimatedSprite2D" parent="." unique_id=174634956]
|
||||||
|
texture_filter = 1
|
||||||
|
position = Vector2(0, -6.081082)
|
||||||
|
sprite_frames = SubResource("SpriteFrames_jej6c")
|
||||||
|
animation = &"death"
|
||||||
|
autoplay = "idle"
|
||||||
|
|
||||||
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=839648774]
|
||||||
|
offset = Vector2(0, -60)
|
||||||
|
|
||||||
|
[connection signal="animation_finished" from="PlayerGraphic" to="." method="_on_animation_finished"]
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
[gd_scene format=3 uid="uid://do4vf0eh7ku01"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bv3ixqvmjrf8j" path="res://scripts/rocket.gd" id="1_3341w"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_00dr1"]
|
||||||
|
size = Vector2(12, 4)
|
||||||
|
|
||||||
|
[node name="Rocket" type="RigidBody2D" unique_id=2026133878]
|
||||||
|
contact_monitor = true
|
||||||
|
max_contacts_reported = 2
|
||||||
|
script = ExtResource("1_3341w")
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1980926328]
|
||||||
|
shape = SubResource("RectangleShape2D_00dr1")
|
||||||
|
debug_color = Color(0.63964945, 0.5193221, 0.22762358, 0.41960785)
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
[gd_scene format=3 uid="uid://b23q2ppkeamyh"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bj3ccpqo3t7pv" path="res://assets/enemies/slime/slime_green.png" id="1_371uh"]
|
||||||
|
[ext_resource type="Script" uid="uid://d215jspbbgtq6" path="res://scripts/slime.gd" id="1_p2gj0"]
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p2gj0"]
|
||||||
|
atlas = ExtResource("1_371uh")
|
||||||
|
region = Rect2(0, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"]
|
||||||
|
atlas = ExtResource("1_371uh")
|
||||||
|
region = Rect2(24, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"]
|
||||||
|
atlas = ExtResource("1_371uh")
|
||||||
|
region = Rect2(48, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
|
||||||
|
atlas = ExtResource("1_371uh")
|
||||||
|
region = Rect2(72, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_fd6lc"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_p2gj0")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_n6pvg")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_pjw23")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_2npkn")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"idle",
|
||||||
|
"speed": 12.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_gstla"]
|
||||||
|
|
||||||
|
[node name="Slime" type="Area2D" unique_id=822623820 groups=["shootable"]]
|
||||||
|
script = ExtResource("1_p2gj0")
|
||||||
|
|
||||||
|
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=610452905]
|
||||||
|
texture_filter = 1
|
||||||
|
position = Vector2(0, -1)
|
||||||
|
sprite_frames = SubResource("SpriteFrames_fd6lc")
|
||||||
|
animation = &"idle"
|
||||||
|
autoplay = "idle"
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1641996317]
|
||||||
|
shape = SubResource("CircleShape2D_gstla")
|
||||||
|
|
||||||
|
[node name="RightCast" type="RayCast2D" parent="." unique_id=460628221]
|
||||||
|
target_position = Vector2(16, 0)
|
||||||
|
|
||||||
|
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=1352799730]
|
||||||
|
position = Vector2(9, 0)
|
||||||
|
target_position = Vector2(1, 14)
|
||||||
|
|
||||||
|
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1378900976]
|
||||||
|
position = Vector2(-9, 0)
|
||||||
|
target_position = Vector2(1, 14)
|
||||||
|
|
||||||
|
[node name="LeftCast" type="RayCast2D" parent="." unique_id=1023073791]
|
||||||
|
target_position = Vector2(-16, 0)
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
@@ -4,23 +4,13 @@
|
|||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
||||||
|
|
||||||
[node name="Trigger" type="Area2D" unique_id=1050615345]
|
[node name="Trigger" type="Area2D" unique_id=229441825]
|
||||||
scale = Vector2(4.2, 4.2)
|
scale = Vector2(4.2, 4.2)
|
||||||
script = ExtResource("1_du5ex")
|
script = ExtResource("1_du5ex")
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=703121924]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1121443164]
|
||||||
shape = SubResource("CircleShape2D_8cj0n")
|
shape = SubResource("CircleShape2D_8cj0n")
|
||||||
debug_color = Color(0.3285461, 0.6189337, 0.22834331, 0.41960785)
|
debug_color = Color(0.3285461, 0.6189337, 0.22834331, 0.41960785)
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="." unique_id=1171382845]
|
|
||||||
texture_filter = 1
|
|
||||||
offset_left = -18.333336
|
|
||||||
offset_top = -8.333334
|
|
||||||
offset_right = 21.666664
|
|
||||||
offset_bottom = 2.666666
|
|
||||||
theme_override_font_sizes/font_size = 7
|
|
||||||
text = "trigger"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
@@ -1,19 +1,14 @@
|
|||||||
class_name Bullet extends Area2D
|
class_name Bullet extends Area2D
|
||||||
|
|
||||||
var speed:float = 700
|
var speed:float = 700
|
||||||
|
signal bulletHitSignal(body, bullet)
|
||||||
signal bulletDamageSignal(body, bullet)
|
func setSpeed(value)->void:
|
||||||
|
|
||||||
func setSpeed(value:int)->void:
|
|
||||||
speed = value
|
speed = value
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
position += transform.x * speed *delta
|
position += transform.x * speed * delta
|
||||||
|
|
||||||
|
|
||||||
func _on_body_entered(body: Node2D) -> void:
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
bulletDamageSignal.emit(body, self)
|
if body.is_in_group("shootable"):
|
||||||
|
print("bullet hit!")
|
||||||
|
bulletHitSignal.emit(body,self)
|
||||||
func _on_area_entered(area: Area2D) -> void:
|
|
||||||
bulletDamageSignal.emit(area, self)
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
class_name Coin extends Area2D
|
||||||
|
signal coinCollectedSignal(body,coin)
|
||||||
|
|
||||||
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
|
if body is Player:
|
||||||
|
print("you hit a coin")
|
||||||
|
coinCollectedSignal.emit(body,self)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://d2sc7mlvheh7m
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
class_name Crate extends RigidBody2D
|
class_name Crate extends RigidBody2D
|
||||||
|
|
||||||
var teleport_target: Vector2 = Vector2.ZERO
|
var teleport_target:Vector2 = Vector2.ZERO
|
||||||
var should_teleport: bool = false
|
var should_teleport:bool = false
|
||||||
|
|
||||||
func teleport_to(position:Vector2):
|
func teleport_to(position:Vector2):
|
||||||
teleport_target = position
|
teleport_target = position
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
extends Node2D
|
class_name GameController extends Node2D
|
||||||
|
signal destroySignal(body)
|
||||||
|
signal fanTriggerSignal(body, fanDirection)
|
||||||
|
signal teleportTriggerSignal(body)
|
||||||
|
signal playerDamagedSignal(currentHealth,maxHealth)
|
||||||
|
signal playerDeathSignal
|
||||||
|
|
||||||
var numberOfCrates = 2
|
var numberOfCrates = 2
|
||||||
var timeAvailable = 50
|
var timeAvailable = 50
|
||||||
|
|
||||||
signal destroySignal(body)
|
var totalCoinsCollected = 0
|
||||||
signal levelChangeSignal(level)
|
|
||||||
signal fanUpSignal(body,direction)
|
|
||||||
signal teleportSignal(body)
|
|
||||||
|
|
||||||
var timer = Timer.new()
|
var timer = Timer.new()
|
||||||
|
|
||||||
|
var enemiesDict={}
|
||||||
|
var playerStartingHealth = 100
|
||||||
|
var playerHealth = 100
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
get_window().grab_focus()
|
get_window().grab_focus()
|
||||||
@@ -23,27 +29,78 @@ func countdown()->void:
|
|||||||
timeAvailable-=1
|
timeAvailable-=1
|
||||||
if timeAvailable<=0 and numberOfCrates>0:
|
if timeAvailable<=0 and numberOfCrates>0:
|
||||||
print("LOOOOOSAH")
|
print("LOOOOOSAH")
|
||||||
levelChangeSignal.emit("res://scenes/game.tscn")
|
playerDeathSignal.emit()
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
func _on_trigger(body: Variant, trigger: Variant, intent:String) -> void:
|
func _on_trigger(body: Variant, trigger: Variant, intent:String) -> void:
|
||||||
print("GC knows trigger fired "+intent)
|
print("GC knows trigger fired")
|
||||||
match intent:
|
match intent:
|
||||||
"destroy":
|
"destroy":
|
||||||
print("GC sending destroy signal")
|
|
||||||
destroySignal.emit(body)
|
|
||||||
"fan":
|
|
||||||
if body is RigidBody2D:
|
if body is RigidBody2D:
|
||||||
fanUpSignal.emit(body,Vector2(0,-1)*100*9)
|
destroySignal.emit(body)
|
||||||
|
"fan":
|
||||||
|
print("do a fan effect")
|
||||||
|
fanTriggerSignal.emit(body,Vector2(0,-1)*100*9)
|
||||||
"teleport":
|
"teleport":
|
||||||
if body is Crate:
|
print("do a teleport")
|
||||||
teleportSignal.emit(body)
|
teleportTriggerSignal.emit(body)
|
||||||
#from scene manager
|
|
||||||
func crateTotal(howmany):
|
func crateTotal(howmany):
|
||||||
numberOfCrates = howmany
|
numberOfCrates = howmany
|
||||||
print("GC knows about crates: "+str(numberOfCrates))
|
print("GC knows about crates: "+str(numberOfCrates))
|
||||||
if numberOfCrates == 0:
|
if numberOfCrates == 0:
|
||||||
print("YOU WON!!!")
|
print("YOU WON!!!")
|
||||||
levelChangeSignal.emit("res://scenes/game.tscn")
|
get_tree().reload_current_scene()
|
||||||
|
func coinCollected(body,coin)->void:
|
||||||
|
totalCoinsCollected +=1
|
||||||
|
print("GC knows coin collected")
|
||||||
|
destroySignal.emit(coin)
|
||||||
|
|
||||||
|
func coinTotal(totalAmount)->void:
|
||||||
|
print("GC knows total coins remaining "+str(totalAmount))
|
||||||
|
|
||||||
|
func bulletDamage(body, _bullet)->void:
|
||||||
|
print("bullet hit")
|
||||||
|
if body.is_in_group("shootable"):
|
||||||
|
if body is Crate:
|
||||||
|
destroySignal.emit(body)
|
||||||
|
destroySignal.emit(_bullet)
|
||||||
|
if body is Slime:
|
||||||
|
enemiesDict[body]["health"] -= 10
|
||||||
|
if enemiesDict[body]["health"]<=0:
|
||||||
|
#kill the enemy
|
||||||
|
enemiesDict.erase(body)
|
||||||
|
destroySignal.emit(body)
|
||||||
|
destroySignal.emit(_bullet)
|
||||||
|
|
||||||
|
func rocketDamage(body, rocket)->void:
|
||||||
|
if body.is_in_group("shootable"):
|
||||||
|
print("Rocket strikes target!")
|
||||||
|
destroySignal.emit(body)
|
||||||
|
|
||||||
func bulletDamage()->void:
|
func addEnemyToLevel(enemy:Slime)->void:
|
||||||
print("bullet damage")
|
var enemyStat = {
|
||||||
|
"health": 30+randi_range(0,10),
|
||||||
|
"damage": 20+randi_range(0,10)
|
||||||
|
}
|
||||||
|
enemiesDict[enemy]=enemyStat
|
||||||
|
|
||||||
|
func _on_slime_damage(body, slime:Slime)->void:
|
||||||
|
#remove damage from player health
|
||||||
|
print("remove damage from player "+str(enemiesDict[slime]["damage"]))
|
||||||
|
playerHealth -= enemiesDict[slime]["damage"]
|
||||||
|
if playerHealth <=0:
|
||||||
|
print("You DED")
|
||||||
|
#send a signal about player death
|
||||||
|
playerDeathSignal.emit()
|
||||||
|
else:
|
||||||
|
print("You damaged")
|
||||||
|
#send a signal about player damage
|
||||||
|
playerDamagedSignal.emit(playerHealth,playerStartingHealth)
|
||||||
|
|
||||||
|
func loadLevel()->void:
|
||||||
|
get_tree().reload_current_scene()
|
||||||
@@ -1,101 +1,175 @@
|
|||||||
class_name Player extends CharacterBody2D
|
class_name Player extends CharacterBody2D
|
||||||
|
signal pushSignal(body, direction)
|
||||||
|
signal shootSignal(markerPosition, speed)
|
||||||
|
signal fireSignal(markerPosition, direction, speed)
|
||||||
|
signal deathAnimationCompleteSignal
|
||||||
|
|
||||||
@onready var label: Label = $Label
|
@onready var right_cast: RayCast2D = $RightCast
|
||||||
|
@onready var left_cast: RayCast2D = $LeftCast
|
||||||
|
@onready var right_spawn: Marker2D = $RightSpawn
|
||||||
|
@onready var left_spawn: Marker2D = $LeftSpawn
|
||||||
|
@onready var player_graphic: AnimatedSprite2D = $PlayerGraphic
|
||||||
|
|
||||||
@onready var rightRay: RayCast2D = $RightCast
|
var pushRightEnabled = false
|
||||||
@onready var leftRay: RayCast2D = $LeftCast
|
var pushLeftEnabled = false
|
||||||
@onready var right_target: Marker2D = $RightTarget
|
|
||||||
@onready var left_target: Marker2D = $LeftTarget
|
|
||||||
|
|
||||||
|
|
||||||
var pushRightEnabled:=false
|
|
||||||
var pushLeftEnabled := false
|
|
||||||
var pushTarget
|
var pushTarget
|
||||||
var pushTimer:int = 0
|
var pushTimer = 0
|
||||||
|
|
||||||
signal forcePushSignal(body,direction)
|
|
||||||
signal shootSignal(targetPosition, speed)
|
|
||||||
#track facing direction
|
|
||||||
enum FaceDirection {LEFT,RIGHT}
|
|
||||||
var facing:FaceDirection = FaceDirection.RIGHT
|
|
||||||
|
|
||||||
const SPEED = 300.0
|
const SPEED = 300.0
|
||||||
const JUMP_VELOCITY = -400.0
|
const JUMP_VELOCITY = -400.0
|
||||||
|
|
||||||
|
enum FaceDirection {RIGHT,LEFT}
|
||||||
func _physics_process(delta: float) -> void:
|
var facing:FaceDirection = FaceDirection.RIGHT
|
||||||
# Add the gravity.
|
|
||||||
if not is_on_floor():
|
|
||||||
velocity += get_gravity() * delta
|
|
||||||
|
|
||||||
|
enum PlayerStates {IDLE,RUNNING,JUMPING,FALLING,CHARGING,SHOVING,HURT,DEAD}
|
||||||
|
var current_player_state:PlayerStates = PlayerStates.IDLE
|
||||||
|
var upJump:bool = false
|
||||||
|
func hurt(health,maxhealth)->void:
|
||||||
|
print("player hurt")
|
||||||
|
current_player_state=PlayerStates.HURT
|
||||||
|
func kill()->void:
|
||||||
|
print("player killed")
|
||||||
|
current_player_state=PlayerStates.DEAD
|
||||||
|
|
||||||
|
func _physics_process(delta: float) -> void:
|
||||||
|
if current_player_state != PlayerStates.DEAD:
|
||||||
|
handle_input()
|
||||||
|
handle_movement(delta)
|
||||||
|
handle_states()
|
||||||
|
handle_animation()
|
||||||
|
move_and_slide()
|
||||||
|
handle_collisions()
|
||||||
|
|
||||||
|
func handle_input()->void:
|
||||||
# Handle jump.
|
# Handle jump.
|
||||||
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
|
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
|
||||||
velocity.y = JUMP_VELOCITY
|
velocity.y = JUMP_VELOCITY
|
||||||
|
current_player_state=PlayerStates.JUMPING
|
||||||
# Handle shove
|
upJump = true
|
||||||
|
# Handle shove.
|
||||||
if Input.is_action_just_pressed("shove"):
|
if Input.is_action_just_pressed("shove"):
|
||||||
pushTimer = Time.get_ticks_msec() #record start of build
|
if pushRightEnabled and facing==FaceDirection.RIGHT:
|
||||||
|
current_player_state= PlayerStates.CHARGING
|
||||||
#Handle shove
|
pushTimer = Time.get_ticks_msec()
|
||||||
|
if pushLeftEnabled and facing==FaceDirection.LEFT:
|
||||||
|
current_player_state= PlayerStates.CHARGING
|
||||||
|
pushTimer = Time.get_ticks_msec()
|
||||||
|
|
||||||
if Input.is_action_just_released("shove"):
|
if Input.is_action_just_released("shove"):
|
||||||
var pushForce = Time.get_ticks_msec() - pushTimer
|
var pushForce = Time.get_ticks_msec() - pushTimer
|
||||||
#do a maximium force value
|
|
||||||
if pushForce>4000:
|
if pushForce>4000:
|
||||||
pushForce = 4000
|
pushForce=4000
|
||||||
if pushRightEnabled and facing==FaceDirection.RIGHT:
|
if pushRightEnabled and facing==FaceDirection.RIGHT:
|
||||||
label.text = "shove"
|
#deliver the boom
|
||||||
forcePushSignal.emit(pushTarget, Vector2(1,0)*100*(pushForce/100))
|
pushSignal.emit(pushTarget, Vector2(1,0)*100*(pushForce/100))
|
||||||
|
current_player_state = PlayerStates.SHOVING
|
||||||
if pushLeftEnabled and facing==FaceDirection.LEFT:
|
if pushLeftEnabled and facing==FaceDirection.LEFT:
|
||||||
forcePushSignal.emit(pushTarget, Vector2(-1,0)*100*(pushForce/100))
|
pushSignal.emit(pushTarget, Vector2(-1,0)*100*(pushForce/100))
|
||||||
label.text = "shove"
|
current_player_state = PlayerStates.SHOVING
|
||||||
# Handle Shoot
|
#Handle Shoot Bullet
|
||||||
if Input.is_action_just_pressed("shoot"):
|
if Input.is_action_just_pressed("shoot"):
|
||||||
print("Player wants to shoot")
|
|
||||||
|
#marker postion, speed
|
||||||
match facing:
|
match facing:
|
||||||
FaceDirection.RIGHT:
|
FaceDirection.RIGHT:
|
||||||
print("Shoot to the right")
|
shootSignal.emit(right_spawn.global_transform, 800)
|
||||||
#%SceneManager.makeBullet(right_target.global_transform, 700)
|
|
||||||
shootSignal.emit(right_target.global_transform, 700)
|
|
||||||
FaceDirection.LEFT:
|
FaceDirection.LEFT:
|
||||||
print("Shoot to the left")
|
shootSignal.emit(left_spawn.global_transform, -800)
|
||||||
#%SceneManager.makeBullet(left_target.global_transform, -700)
|
#Handle fire rocket
|
||||||
shootSignal.emit(left_target.global_transform, -700)
|
if Input.is_action_just_pressed("fire"):
|
||||||
|
|
||||||
|
match facing:
|
||||||
|
FaceDirection.RIGHT:
|
||||||
|
fireSignal.emit(right_spawn.global_transform,Vector2(1,0), 800)
|
||||||
|
FaceDirection.LEFT:
|
||||||
|
fireSignal.emit(left_spawn.global_transform,Vector2(1,0), 800)
|
||||||
# Get the input direction and handle the movement/deceleration.
|
# Get the input direction and handle the movement/deceleration.
|
||||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
# As good practice, you should replace UI actions with custom gameplay actions.
|
||||||
var direction := Input.get_axis("ui_left", "ui_right")
|
var direction := Input.get_axis("ui_left", "ui_right")
|
||||||
if direction:
|
if direction:
|
||||||
velocity.x = direction * SPEED
|
velocity.x = direction * SPEED
|
||||||
if direction>0:
|
if direction >0:
|
||||||
facing = FaceDirection.RIGHT
|
facing = FaceDirection.RIGHT
|
||||||
|
player_graphic.flip_h = false
|
||||||
else:
|
else:
|
||||||
facing = FaceDirection.LEFT
|
facing = FaceDirection.LEFT
|
||||||
|
player_graphic.flip_h = true
|
||||||
else:
|
else:
|
||||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||||
|
|
||||||
move_and_slide()
|
func handle_movement(delta)->void:
|
||||||
#a loop
|
# Add the gravity.
|
||||||
for i in get_slide_collision_count():
|
if not is_on_floor():
|
||||||
var c = get_slide_collision(i)
|
velocity += get_gravity() * delta
|
||||||
#is this a bonkable thing?
|
func handle_collisions()->void:
|
||||||
if c.get_collider() is RigidBody2D:
|
if right_cast.is_colliding():
|
||||||
forcePushSignal.emit(c.get_collider(), -c.get_normal() * 100)
|
|
||||||
if rightRay.is_colliding():
|
var collider = right_cast.get_collider()
|
||||||
|
|
||||||
#get the thing causing the collision
|
|
||||||
var collider = rightRay.get_collider()
|
|
||||||
if collider is Node:
|
if collider is Node:
|
||||||
pushRightEnabled = true
|
pushRightEnabled = true
|
||||||
pushTarget = collider
|
pushTarget = collider
|
||||||
else:
|
else:
|
||||||
pushRightEnabled = false
|
pushRightEnabled = false
|
||||||
|
|
||||||
if leftRay.is_colliding():
|
|
||||||
|
|
||||||
#get the thing causing the collision
|
if left_cast.is_colliding():
|
||||||
var collider = leftRay.get_collider()
|
|
||||||
|
var collider = left_cast.get_collider()
|
||||||
if collider is Node:
|
if collider is Node:
|
||||||
pushLeftEnabled = true
|
pushLeftEnabled = true
|
||||||
pushTarget = collider
|
pushTarget = collider
|
||||||
else:
|
else:
|
||||||
pushLeftEnabled = false
|
pushLeftEnabled = false
|
||||||
|
|
||||||
|
#a loop
|
||||||
|
for i in get_slide_collision_count():
|
||||||
|
var c = get_slide_collision(i)
|
||||||
|
#is this a bonkable thing?
|
||||||
|
if c.get_collider() is RigidBody2D:
|
||||||
|
#c.get_collider().apply_central_impulse(-c.get_normal() * 100)
|
||||||
|
pushSignal.emit(c.get_collider(), -c.get_normal() * 100)
|
||||||
|
#Exciting new stuff
|
||||||
|
func handle_states()->void:
|
||||||
|
match current_player_state:
|
||||||
|
PlayerStates.IDLE when velocity.x !=0:
|
||||||
|
current_player_state = PlayerStates.RUNNING
|
||||||
|
PlayerStates.RUNNING when velocity.x ==0:
|
||||||
|
current_player_state = PlayerStates.IDLE
|
||||||
|
PlayerStates.JUMPING when velocity.y>0:
|
||||||
|
current_player_state = PlayerStates.FALLING
|
||||||
|
PlayerStates.FALLING when is_on_floor():
|
||||||
|
if velocity.x ==0:
|
||||||
|
current_player_state = PlayerStates.IDLE
|
||||||
|
else:
|
||||||
|
current_player_state = PlayerStates.RUNNING
|
||||||
|
func handle_animation()->void:
|
||||||
|
match current_player_state:
|
||||||
|
PlayerStates.RUNNING:
|
||||||
|
player_graphic.play("running")
|
||||||
|
PlayerStates.IDLE:
|
||||||
|
player_graphic.play("idle")
|
||||||
|
PlayerStates.JUMPING:
|
||||||
|
if upJump:
|
||||||
|
player_graphic.play("jumping")
|
||||||
|
PlayerStates.FALLING:
|
||||||
|
player_graphic.play("falling")
|
||||||
|
PlayerStates.CHARGING:
|
||||||
|
player_graphic.play("charging")
|
||||||
|
PlayerStates.SHOVING:
|
||||||
|
player_graphic.play("shoving")
|
||||||
|
PlayerStates.HURT:
|
||||||
|
player_graphic.play("hurt")
|
||||||
|
PlayerStates.DEAD:
|
||||||
|
player_graphic.play("death")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_animation_finished() -> void:
|
||||||
|
match current_player_state:
|
||||||
|
PlayerStates.JUMPING:
|
||||||
|
upJump = false
|
||||||
|
PlayerStates.SHOVING:
|
||||||
|
current_player_state = PlayerStates.IDLE
|
||||||
|
PlayerStates.HURT:
|
||||||
|
current_player_state = PlayerStates.IDLE
|
||||||
|
PlayerStates.DEAD:
|
||||||
|
#emit signal for end of death animation
|
||||||
|
deathAnimationCompleteSignal.emit()
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
class_name Rocket extends RigidBody2D
|
||||||
|
signal splodeSignal(rocket)
|
||||||
|
signal impactSignal(body, rocket)
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
#Rockets expolode in time
|
||||||
|
var timer = Timer.new()
|
||||||
|
add_child(timer)
|
||||||
|
timer.wait_time = 4
|
||||||
|
timer.one_shot = true
|
||||||
|
timer.connect("timeout", splode)
|
||||||
|
timer.start()
|
||||||
|
|
||||||
|
func _on_body_entered(body: Node) -> void:
|
||||||
|
print("Rocket hit a target")
|
||||||
|
impactSignal.emit(body, self)
|
||||||
|
|
||||||
|
#should i splode myself? No. Scene manager job.
|
||||||
|
func splode()->void:
|
||||||
|
splodeSignal.emit(self)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://bv3ixqvmjrf8j
|
||||||
@@ -1,72 +1,143 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
@onready var game: Node2D = $".."
|
@onready var game: GameController = $".."
|
||||||
@onready var crates: Node2D = $"../Crates"
|
@onready var crates: Node2D = $"../Crates"
|
||||||
@onready var player: CharacterBody2D = $"../Player"
|
@onready var player: Player = $"../Player"
|
||||||
|
@onready var coin: Coin = $"../Coins/Coin"
|
||||||
|
@onready var coins: Node2D = $"../Coins"
|
||||||
|
@onready var enemies: Node2D = $"../Enemies"
|
||||||
|
|
||||||
var bullet = preload("res://scenes/bullet.tscn")
|
var bullet = preload("res://scenes/bullet.tscn")
|
||||||
|
var rocket = preload("res://scenes/rocket.tscn")
|
||||||
|
|
||||||
var bulletArray:Array[Bullet] = []
|
var bulletArray:Array[Bullet] = []
|
||||||
var totalAllowedBullets:int = 7
|
var totalAllowedBullets:int = 7
|
||||||
|
var rocketDict:Dictionary = {}
|
||||||
|
var totalAllowedRockets:int = 3
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
#wire up view
|
#signals from the view
|
||||||
player.forcePushSignal.connect(push)
|
player.pushSignal.connect(pushTarget)
|
||||||
player.shootSignal.connect(makeBullet)
|
player.shootSignal.connect(makeBullet)
|
||||||
#wire up gamecontroller
|
player.fireSignal.connect(makeRocket)
|
||||||
|
player.deathAnimationCompleteSignal.connect(game.loadLevel)
|
||||||
|
|
||||||
|
#signals from the GameController
|
||||||
game.destroySignal.connect(destroy)
|
game.destroySignal.connect(destroy)
|
||||||
game.levelChangeSignal.connect(changeScene)
|
game.fanTriggerSignal.connect(pushTarget)
|
||||||
game.fanUpSignal.connect(push)
|
game.teleportTriggerSignal.connect(teleportTarget)
|
||||||
game.teleportSignal.connect(teleport)
|
game.playerDamagedSignal.connect(player.hurt)
|
||||||
|
game.playerDeathSignal.connect(player.kill)
|
||||||
|
|
||||||
|
#signals from pickups
|
||||||
|
coin.coinCollectedSignal.connect(game.coinCollected)
|
||||||
buildLevel()
|
buildLevel()
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
pass
|
||||||
|
|
||||||
func buildLevel()->void:
|
func buildLevel()->void:
|
||||||
|
#tell GC how many crates...
|
||||||
updateCrates()
|
updateCrates()
|
||||||
|
updateCoins()
|
||||||
|
updateEnemies()
|
||||||
|
|
||||||
|
func updateEnemies()->void:
|
||||||
|
if enemies:
|
||||||
|
for obj in enemies.get_children():
|
||||||
|
if obj is Slime:
|
||||||
|
game.addEnemyToLevel(obj)
|
||||||
|
#hook up to game controller
|
||||||
|
if not obj.slimeDamageSignal.is_connected(game._on_slime_damage):
|
||||||
|
obj.slimeDamageSignal.connect(game._on_slime_damage)
|
||||||
|
|
||||||
func updateCrates()->void:
|
func updateCrates()->void:
|
||||||
var _crateTotal:int = 0
|
var totalCrates = 0
|
||||||
if crates:
|
if crates:
|
||||||
for obj in crates.get_children():
|
for obj in crates.get_children():
|
||||||
if obj is Crate:
|
if obj is Crate:
|
||||||
if not obj.tree_exited.is_connected(updateCrates):
|
if not obj.tree_exited.is_connected(updateCrates):
|
||||||
obj.tree_exited.connect(updateCrates)
|
obj.tree_exited.connect(updateCrates)
|
||||||
_crateTotal +=1
|
totalCrates +=1
|
||||||
game.crateTotal(_crateTotal)
|
|
||||||
|
|
||||||
#applies impulse to rigidbodies
|
game.crateTotal(totalCrates)
|
||||||
func push(body, direction)->void:
|
|
||||||
body.apply_central_impulse(direction)
|
|
||||||
|
|
||||||
func teleport(body, _bodyposition=null)->void:
|
#any time a coin exits tree, game controller is updated
|
||||||
print("teleport a body")
|
func updateCoins()->void:
|
||||||
|
var totalCoins = 0
|
||||||
|
if coins:
|
||||||
|
for obj in coins.get_children():
|
||||||
|
if obj is Coin:
|
||||||
|
if not obj.coinCollectedSignal.is_connected(game.coinCollected):
|
||||||
|
obj.coinCollectedSignal.connect(game.coinCollected)
|
||||||
|
if not obj.tree_exited.is_connected(updateCoins):
|
||||||
|
obj.tree_exited.connect(updateCoins)
|
||||||
|
totalCoins +=1
|
||||||
|
game.coinTotal(totalCoins)
|
||||||
|
|
||||||
|
func pushTarget(body,pushDirection)->void:
|
||||||
|
if body is RigidBody2D:
|
||||||
|
body.apply_central_impulse(pushDirection)
|
||||||
|
func stashBullet(bullet:Bullet)->void:
|
||||||
|
#hide the bullet
|
||||||
|
var stashPosition:Vector2 = Vector2(-100,-100)
|
||||||
|
bullet.position = stashPosition
|
||||||
|
bullet.setSpeed(0)
|
||||||
|
bullet.set_process(false)
|
||||||
|
|
||||||
|
func destroy(body)->void:
|
||||||
|
match body:
|
||||||
|
var bod when bod is Bullet:
|
||||||
|
stashBullet(body)
|
||||||
|
var bod when bod is Crate:
|
||||||
|
body.queue_free()
|
||||||
|
_:
|
||||||
|
body.queue_free()
|
||||||
|
|
||||||
|
func teleportTarget(body)->void:
|
||||||
if body is Crate:
|
if body is Crate:
|
||||||
var viewport_size = get_viewport().get_visible_rect().size
|
var viewport_size = get_viewport().get_visible_rect().size
|
||||||
var random_x = randf_range(0, viewport_size.x)
|
var random_x = randf_range(0, viewport_size.x)
|
||||||
var random_y = randf_range(0, viewport_size.y)
|
var random_y = randf_range(0, viewport_size.y)
|
||||||
var newPosition = Vector2(random_x,random_y)
|
var newPosition = Vector2(random_x,random_y)
|
||||||
body.teleport_to(newPosition)
|
body.teleport_to(newPosition)
|
||||||
|
func bulletFactory()->Bullet:
|
||||||
func destroy(body)->void:
|
var myBullet:Bullet
|
||||||
body.queue_free()
|
#how many bullets have been produced?
|
||||||
|
if bulletArray.size() <= totalAllowedBullets:
|
||||||
func changeScene(level)->void:
|
#make a new bullet
|
||||||
get_tree().call_deferred("change_scene_to_file",level)
|
myBullet = bullet.instantiate()
|
||||||
|
add_sibling(myBullet)
|
||||||
func bulletFactory()->Bullet :
|
if not myBullet.bulletHitSignal.is_connected(game.bulletDamage):
|
||||||
var myBullet:Bullet
|
myBullet.bulletHitSignal.connect(game.bulletDamage)
|
||||||
#how many bullets have been made?
|
else:
|
||||||
if bulletArray.size() <= totalAllowedBullets:
|
myBullet = bulletArray.pop_back()
|
||||||
myBullet = bullet.instantiate()
|
|
||||||
if not myBullet.bulletDamageSignal.is_connected(game.bulletDamage):
|
bulletArray.push_front(myBullet)
|
||||||
myBullet.bulletDamageSignal.connect(game.bulletDamage)
|
return myBullet
|
||||||
add_sibling(myBullet)
|
func makeBullet(spawnPosition, speed)->void:
|
||||||
else:
|
print("make bullet")
|
||||||
myBullet = bulletArray.pop_back()
|
|
||||||
|
|
||||||
bulletArray.push_front(myBullet)
|
|
||||||
return myBullet
|
|
||||||
|
|
||||||
func makeBullet(targetPosition:Transform2D, speed:int)->void:
|
|
||||||
var myBullet:Bullet = bulletFactory()
|
var myBullet:Bullet = bulletFactory()
|
||||||
myBullet.transform = targetPosition
|
myBullet.transform = spawnPosition
|
||||||
myBullet.setSpeed(speed)
|
myBullet.setSpeed(speed)
|
||||||
myBullet.set_process(true)
|
myBullet.set_process(true)
|
||||||
|
|
||||||
|
func rocketFactory()->Rocket:
|
||||||
|
var myRocket:Rocket
|
||||||
|
myRocket = rocket.instantiate()
|
||||||
|
add_sibling(myRocket)
|
||||||
|
var rocketStat={
|
||||||
|
"damage": 10
|
||||||
|
}
|
||||||
|
rocketDict[myRocket]=rocketStat
|
||||||
|
return myRocket
|
||||||
|
|
||||||
|
func makeRocket(spawnPosition, direction, speed)->void:
|
||||||
|
print("make a rocket")
|
||||||
|
var myRocket:Rocket = rocketFactory()
|
||||||
|
myRocket.splodeSignal.connect(destroy)
|
||||||
|
myRocket.impactSignal.connect(game.rocketDamage)
|
||||||
|
myRocket.transform = spawnPosition
|
||||||
|
pushTarget(myRocket,direction*speed)
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
class_name Slime extends Area2D
|
||||||
|
@onready var right_cast: RayCast2D = $RightCast
|
||||||
|
@onready var right_down_cast: RayCast2D = $RightDownCast
|
||||||
|
@onready var left_down_cast: RayCast2D = $LeftDownCast
|
||||||
|
@onready var left_cast: RayCast2D = $LeftCast
|
||||||
|
@onready var slime_graphic: AnimatedSprite2D = $SlimeGraphic
|
||||||
|
|
||||||
|
var speed:int = 100
|
||||||
|
var direction = 1
|
||||||
|
|
||||||
|
signal slimeDamageSignal(body,slime)
|
||||||
|
|
||||||
|
#Animation code
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
if not right_down_cast.is_colliding():
|
||||||
|
direction = -1
|
||||||
|
slime_graphic.flip_h = true
|
||||||
|
if not left_down_cast.is_colliding():
|
||||||
|
direction = 1
|
||||||
|
slime_graphic.flip_h = false
|
||||||
|
if right_cast.is_colliding() && not right_cast.get_collider() is Player:
|
||||||
|
direction = -1
|
||||||
|
slime_graphic.flip_h = true
|
||||||
|
if left_cast.is_colliding() && not left_cast.get_collider() is Player:
|
||||||
|
direction = 1
|
||||||
|
slime_graphic.flip_h = false
|
||||||
|
position.x += direction * speed * delta
|
||||||
|
|
||||||
|
|
||||||
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
|
if body is Player:
|
||||||
|
slimeDamageSignal.emit(body, self)
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://d215jspbbgtq6
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
extends Area2D
|
class_name Trigger extends Area2D
|
||||||
|
|
||||||
|
@export var intent = "destroy"
|
||||||
|
|
||||||
signal areaTriggerSignal(body, trigger, intent)
|
signal areaTriggerSignal(body, trigger, intent)
|
||||||
@export var intent:String="destroy"
|
|
||||||
@onready var label: Label = $Label
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
print("Trigger is ready.")
|
print("Trigger is ready.")
|
||||||
label.text = str(intent)
|
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
|||||||