Merged with main and fixed merge conflicts

This commit is contained in:
VoidTwo committed 2021-11-29 13:53:26 -06:00
commit 9d2a15985c
161 files changed
+2347 -778

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
extends Node2D
func _ready() -> void:
$YSort/Player.load_hud($HUD)
return
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Levels/Hub World.gd" type="Script" id=2]
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=3]
[ext_resource path="res://GUI/Pause Screen.tscn" type="PackedScene" id=4]
[node name="Hub World" type="Node2D"]
script = ExtResource( 2 )
[node name="YSort" type="YSort" parent="."]
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
position = Vector2( 160, 90 )
[node name="HUD" parent="." instance=ExtResource( 3 )]
[node name="Pause Screen" parent="." instance=ExtResource( 4 )]
+6
View File
@@ -0,0 +1,6 @@
extends Node2D
func _ready() -> void:
$YSort/Player.position = get_viewport_rect().size / 2
$YSort/Player.load_hud($HUD)
return
+198
View File
@@ -0,0 +1,198 @@
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Levels/Level 2.gd" type="Script" id=2]
[ext_resource path="res://Sprites/Assets/Grass.png" type="Texture" id=3]
[ext_resource path="res://Sprites/Assets/Plants and Trees.png" type="Texture" id=4]
[ext_resource path="res://GUI/Pause Screen.tscn" type="PackedScene" id=5]
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=8]
[ext_resource path="res://Levels/Objects/forestHouse.tscn" type="PackedScene" id=9]
[ext_resource path="res://Sprites/Assets/Door.png" type="Texture" id=10]
[sub_resource type="TileSet" id=1]
0/name = "Grass.png 0"
0/texture = ExtResource( 3 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 80, 48 )
0/tile_mode = 1
0/autotile/bitmask_mode = 0
0/autotile/bitmask_flags = [ Vector2( 0, 0 ), 325, Vector2( 0, 1 ), 325, Vector2( 0, 2 ), 325, Vector2( 1, 0 ), 325, Vector2( 1, 2 ), 325, Vector2( 2, 0 ), 325, Vector2( 2, 1 ), 325, Vector2( 2, 2 ), 325, Vector2( 3, 0 ), 256, Vector2( 3, 1 ), 4, Vector2( 4, 0 ), 64, Vector2( 4, 1 ), 1, Vector2( 4, 2 ), 325 ]
0/autotile/icon_coordinate = Vector2( 0, 0 )
0/autotile/tile_size = Vector2( 16, 16 )
0/autotile/spacing = 0
0/autotile/occluder_map = [ ]
0/autotile/navpoly_map = [ ]
0/autotile/priority_map = [ ]
0/autotile/z_index_map = [ ]
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0
[sub_resource type="TileSet" id=2]
0/name = "Grass.png 0"
0/texture = ExtResource( 3 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 80, 48 )
0/tile_mode = 1
0/autotile/bitmask_mode = 1
0/autotile/bitmask_flags = [ Vector2( 0, 0 ), 255, Vector2( 0, 1 ), 219, Vector2( 0, 2 ), 507, Vector2( 1, 0 ), 63, Vector2( 1, 2 ), 504, Vector2( 2, 0 ), 447, Vector2( 2, 1 ), 438, Vector2( 2, 2 ), 510, Vector2( 3, 0 ), 432, Vector2( 3, 1 ), 54, Vector2( 4, 0 ), 216, Vector2( 4, 1 ), 27, Vector2( 4, 2 ), 511 ]
0/autotile/icon_coordinate = Vector2( 0, 0 )
0/autotile/tile_size = Vector2( 16, 16 )
0/autotile/spacing = 0
0/autotile/occluder_map = [ ]
0/autotile/navpoly_map = [ ]
0/autotile/priority_map = [ ]
0/autotile/z_index_map = [ ]
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0
[sub_resource type="ConvexPolygonShape2D" id=3]
points = PoolVector2Array( 33.0868, 45.5302, 15.4222, 45.5302, 15.4222, 39.0812, 33.0868, 39.0812 )
[sub_resource type="StreamTexture" id=4]
[sub_resource type="TileSet" id=5]
1/name = "Plants and Trees.png 1"
1/texture = ExtResource( 4 )
1/tex_offset = Vector2( 0, 0 )
1/modulate = Color( 1, 1, 1, 1 )
1/region = Rect2( 0, 0, 48, 48 )
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape = SubResource( 3 )
1/shape_one_way = false
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 3 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
1/z_index = 4
3/name = "Plants and Trees.png 3"
3/texture = ExtResource( 4 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 0, 48, 48, 48 )
3/tile_mode = 2
3/autotile/icon_coordinate = Vector2( 0, 0 )
3/autotile/tile_size = Vector2( 16, 16 )
3/autotile/spacing = 0
3/autotile/occluder_map = [ ]
3/autotile/navpoly_map = [ ]
3/autotile/priority_map = [ ]
3/autotile/z_index_map = [ ]
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 0, 0 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
3/shape_one_way = false
3/shape_one_way_margin = 0.0
3/shapes = [ ]
3/z_index = 1
4/name = "TX Props.png 4"
4/texture = SubResource( 4 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 96, 16, 32, 48 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 0, 0 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
4/shape_one_way = false
4/shape_one_way_margin = 0.0
4/shapes = [ ]
4/z_index = 0
5/name = "TX Props.png 5"
5/texture = SubResource( 4 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 16, 96, 64, 64 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 0, 0 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
5/shape_one_way = false
5/shape_one_way_margin = 0.0
5/shapes = [ ]
5/z_index = 0
[node name="World" type="Node2D"]
script = ExtResource( 2 )
[node name="YSort" type="YSort" parent="."]
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
z_index = 2
[node name="Camera2D" type="Camera2D" parent="YSort/Player"]
current = true
[node name="Ground" type="TileMap" parent="."]
tile_set = SubResource( 1 )
cell_size = Vector2( 16, 16 )
cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 )
cell_tile_origin = 1
cell_y_sort = true
format = 1
tile_data = PoolIntArray( -720892, 0, 3, -720891, 0, 131073, -720890, 0, 131073, -720889, 0, 131073, -720888, 0, 131073, -720887, 0, 131073, -720886, 0, 131073, -720885, 0, 131073, -720884, 0, 131073, -720883, 0, 131073, -720882, 0, 131073, -720881, 0, 131073, -720880, 0, 131073, -720879, 0, 131073, -720878, 0, 4, -655356, 0, 65538, -655355, 0, 131076, -655354, 0, 131076, -655353, 0, 131076, -655352, 0, 131076, -655351, 0, 131076, -655350, 0, 131076, -655349, 0, 131076, -655348, 0, 131076, -655347, 0, 131076, -655346, 0, 131076, -655345, 0, 131076, -655344, 0, 131076, -655343, 0, 131076, -655342, 0, 131072, -655341, 0, 4, -589822, 0, 3, -589821, 0, 131073, -589820, 0, 131074, -589819, 0, 131076, -589818, 0, 131076, -589817, 0, 131076, -589816, 0, 131076, -589815, 0, 131076, -589814, 0, 131076, -589813, 0, 131076, -589812, 0, 131076, -589811, 0, 131076, -589810, 0, 131076, -589809, 0, 131076, -589808, 0, 131076, -589807, 0, 131076, -589806, 0, 131076, -589805, 0, 131072, -589804, 0, 4, -524286, 0, 65538, -524285, 0, 131076, -524284, 0, 131076, -524283, 0, 131076, -524282, 0, 131076, -524281, 0, 131076, -524280, 0, 131076, -524279, 0, 131076, -524278, 0, 131076, -524277, 0, 131076, -524276, 0, 131076, -524275, 0, 131076, -524274, 0, 131076, -524273, 0, 131076, -524272, 0, 131076, -524271, 0, 131076, -524270, 0, 131076, -524269, 0, 131076, -524268, 0, 65536, -458750, 0, 65538, -458749, 0, 131076, -458748, 0, 131076, -458747, 0, 131076, -458746, 0, 131076, -458745, 0, 131076, -458744, 0, 131076, -458743, 0, 131076, -458742, 0, 131076, -458741, 0, 131076, -458740, 0, 131076, -458739, 0, 131076, -458738, 0, 131076, -458737, 0, 131076, -458736, 0, 131076, -458735, 0, 131076, -458734, 0, 131076, -458733, 0, 131076, -458732, 0, 65536, -393215, 0, 3, -393214, 0, 131074, -393213, 0, 131076, -393212, 0, 131076, -393211, 0, 131076, -393210, 0, 131076, -393209, 0, 131076, -393208, 0, 131076, -393207, 0, 131076, -393206, 0, 131076, -393205, 0, 131076, -393204, 0, 131076, -393203, 0, 131076, -393202, 0, 131076, -393201, 0, 131076, -393200, 0, 131076, -393199, 0, 131076, -393198, 0, 131076, -393197, 0, 131076, -393196, 0, 65536, -327680, 0, 3, -327679, 0, 131074, -327678, 0, 131076, -327677, 0, 131076, -327676, 0, 131076, -327675, 0, 131076, -327674, 0, 131076, -327673, 0, 131076, -327672, 0, 131076, -327671, 0, 131076, -327670, 0, 131076, -327669, 0, 131076, -327668, 0, 131076, -327667, 0, 131076, -327666, 0, 131076, -327665, 0, 131076, -327664, 0, 131076, -327663, 0, 131076, -327662, 0, 131076, -327661, 0, 131076, -327660, 0, 65536, -196609, 0, 3, -262144, 0, 131074, -262143, 0, 131076, -262142, 0, 131076, -262141, 0, 131076, -262140, 0, 131076, -262139, 0, 131076, -262138, 0, 131076, -262137, 0, 131076, -262136, 0, 131076, -262135, 0, 131076, -262134, 0, 131076, -262133, 0, 131076, -262132, 0, 131076, -262131, 0, 131076, -262130, 0, 131076, -262129, 0, 131076, -262128, 0, 131076, -262127, 0, 131076, -262126, 0, 131076, -262125, 0, 131076, -262124, 0, 65536, -131074, 0, 3, -131073, 0, 131074, -196608, 0, 131076, -196607, 0, 131076, -196606, 0, 131076, -196605, 0, 131076, -196604, 0, 131076, -196603, 0, 131076, -196602, 0, 131076, -196601, 0, 131076, -196600, 0, 131076, -196599, 0, 131076, -196598, 0, 131076, -196597, 0, 131076, -196596, 0, 131076, -196595, 0, 131076, -196594, 0, 131076, -196593, 0, 131076, -196592, 0, 131076, -196591, 0, 131076, -196590, 0, 131076, -196589, 0, 131076, -196588, 0, 131072, -196587, 0, 4, -65538, 0, 65538, -65537, 0, 131076, -131072, 0, 131076, -131071, 0, 131076, -131070, 0, 131076, -131069, 0, 131076, -131068, 0, 131076, -131067, 0, 131076, -131066, 0, 131076, -131065, 0, 131076, -131064, 0, 131076, -131063, 0, 131076, -131062, 0, 131076, -131061, 0, 131076, -131060, 0, 131076, -131059, 0, 131076, -131058, 0, 131076, -131057, 0, 131076, -131056, 0, 131076, -131055, 0, 131076, -131054, 0, 131076, -131053, 0, 131076, -131052, 0, 131076, -131051, 0, 65536, -2, 0, 65538, -1, 0, 131076, -65536, 0, 131076, -65535, 0, 131076, -65534, 0, 131076, -65533, 0, 131076, -65532, 0, 131076, -65531, 0, 131076, -65530, 0, 131076, -65529, 0, 131076, -65528, 0, 131076, -65527, 0, 131076, -65526, 0, 131076, -65525, 0, 131076, -65524, 0, 131076, -65523, 0, 131076, -65522, 0, 131076, -65521, 0, 131076, -65520, 0, 131076, -65519, 0, 131076, -65518, 0, 131076, -65517, 0, 131076, -65516, 0, 131076, -65515, 0, 65536, 65534, 0, 65538, 65535, 0, 131076, 0, 0, 131076, 1, 0, 131076, 2, 0, 131076, 3, 0, 131076, 4, 0, 131076, 5, 0, 131076, 6, 0, 131076, 7, 0, 131076, 8, 0, 131076, 9, 0, 131076, 10, 0, 131076, 11, 0, 131076, 12, 0, 131076, 13, 0, 131076, 14, 0, 131076, 15, 0, 131076, 16, 0, 131076, 17, 0, 131076, 18, 0, 131076, 19, 0, 131076, 20, 0, 131076, 21, 0, 65536, 131070, 0, 65538, 131071, 0, 131076, 65536, 0, 131076, 65537, 0, 131076, 65538, 0, 131076, 65539, 0, 131076, 65540, 0, 131076, 65541, 0, 131076, 65542, 0, 131076, 65543, 0, 131076, 65544, 0, 131076, 65545, 0, 131076, 65546, 0, 131076, 65547, 0, 131076, 65Line truncated
[node name="forestHouse" parent="." instance=ExtResource( 9 )]
visible = false
position = Vector2( 35.4162, -76.797 )
[node name="TileMap" type="TileMap" parent="."]
modulate = Color( 0.745098, 0.498039, 0.498039, 1 )
tile_set = SubResource( 2 )
cell_size = Vector2( 16, 16 )
cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 )
format = 1
tile_data = PoolIntArray( -589809, 0, 3, -589808, 0, 4, -524273, 0, 65538, -524272, 0, 65536, -458739, 0, 3, -458738, 0, 131073, -458737, 0, 131074, -458736, 0, 65536, -393203, 0, 65538, -393202, 0, 0, -393201, 0, 1, -393200, 0, 65540, -327669, 0, 3, -327668, 0, 131073, -327667, 0, 131074, -327666, 0, 65536, -262134, 0, 3, -262133, 0, 131074, -262132, 0, 0, -262131, 0, 1, -262130, 0, 65540, -196601, 0, 3, -196600, 0, 131073, -196599, 0, 131073, -196598, 0, 131074, -196597, 0, 0, -196596, 0, 65540, -131065, 0, 65538, -131064, 0, 0, -131063, 0, 1, -131062, 0, 1, -131061, 0, 65540, -131054, 0, 131076, -2, 0, 3, -1, 0, 131073, -65536, 0, 131073, -65535, 0, 131073, -65534, 0, 131073, -65533, 0, 131073, -65532, 0, 131073, -65531, 0, 131073, -65530, 0, 131073, -65529, 0, 131074, -65528, 0, 65536, -65517, 0, 131076, 65534, 0, 65539, 65535, 0, 1, 0, 0, 1, 1, 0, 1, 2, 0, 1, 3, 0, 1, 4, 0, 1, 5, 0, 1, 6, 0, 1, 7, 0, 2, 8, 0, 65536, 65543, 0, 65538, 65544, 0, 131072, 65545, 0, 131073, 65546, 0, 131073, 65547, 0, 131073, 65548, 0, 131073, 65549, 0, 131073, 65550, 0, 4, 131079, 0, 65538, 131080, 0, 0, 131081, 0, 1, 131082, 0, 1, 131083, 0, 1, 131084, 0, 2, 131085, 0, 131076, 131086, 0, 65536, 196615, 0, 65538, 196616, 0, 65536, 196620, 0, 65539, 196621, 0, 2, 196622, 0, 65536, 262150, 0, 3, 262151, 0, 131074, 262152, 0, 65536, 262157, 0, 65538, 262158, 0, 65536, 327683, 0, 3, 327684, 0, 131073, 327685, 0, 131073, 327686, 0, 131074, 327687, 0, 0, 327688, 0, 65540, 327693, 0, 65538, 327694, 0, 65536, 458749, 0, 3, 458750, 0, 131073, 458751, 0, 131073, 393216, 0, 131073, 393217, 0, 131073, 393218, 0, 131073, 393219, 0, 131074, 393220, 0, 0, 393221, 0, 1, 393222, 0, 1, 393223, 0, 65540, 393227, 0, 3, 393228, 0, 131073, 393229, 0, 131074, 393230, 0, 65536, 524285, 0, 65539, 524286, 0, 1, 524287, 0, 1, 458752, 0, 1, 458753, 0, 1, 458754, 0, 1, 458755, 0, 1, 458756, 0, 65540, 458762, 0, 3, 458763, 0, 131074, 458764, 0, 131076, 458765, 0, 131076, 458766, 0, 65536, 524298, 0, 65538, 524299, 0, 131076, 524300, 0, 0, 524301, 0, 1, 524302, 0, 65540, 589833, 0, 3, 589834, 0, 131074, 589835, 0, 131076, 589836, 0, 65536, 655369, 0, 65538, 655370, 0, 0, 655371, 0, 1, 655372, 0, 65540, 720901, 0, 3, 720902, 0, 131073, 720903, 0, 131073, 720904, 0, 131073, 720905, 0, 131074, 720906, 0, 65536, 786435, 0, 3, 786436, 0, 131073, 786437, 0, 131074, 786438, 0, 0, 786439, 0, 1, 786440, 0, 1, 786441, 0, 2, 786442, 0, 65536, 851971, 0, 65539, 851972, 0, 1, 851973, 0, 1, 851974, 0, 65540, 851977, 0, 65539, 851978, 0, 65540 )
[node name="Objects" type="TileMap" parent="."]
tile_set = SubResource( 5 )
cell_size = Vector2( 16, 16 )
cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 )
cell_y_sort = true
format = 1
tile_data = PoolIntArray( -393211, 1, 0, -393199, 1, 0, -327677, 1, 0, -327665, 1, 0, -262144, 1, 0, -262142, 1, 0, -262139, 1, 0, -262127, 1, 0, -131057, 1, 0, -131054, 1, 0, -65527, 3, 0, -65523, 3, 65537, 4, 1, 0, 11, 3, 65538, 17, 1, 0, 65536, 1, 0, 65537, 3, 1, 65551, 1, 0, 65552, 3, 65538, 131074, 1, 0, 131082, 1, 0, 131089, 1, 0, 196608, 1, 0, 196614, 3, 65536, 262147, 3, 0, 262153, 0, 4, 327682, 0, 3, 327687, 0, 3, 327688, 0, 131074, 327689, 0, 65536, 327692, 3, 131073, 393217, 0, 3, 393218, 0, 131074, 393219, 0, 131072, 393222, 0, 131073, 393223, 0, 131074, 393224, 0, 0, 393225, 0, 65540, 393233, 3, 131074, 458753, 1, 0, 458754, 0, 1, 458755, 3, 2, 458758, 0, 1, 458759, 0, 1, 458760, 0, 65540, 458761, 3, 2, 524291, 0, 65539, 524292, 0, 65540, 524295, 3, 131072, 524303, 3, 2, 524305, 1, 0, 589828, 3, 131074, 655368, 3, 65537 )
[node name="Entrance" type="Node2D" parent="."]
position = Vector2( 256, -143 )
scale = Vector2( 0.6, 0.6 )
[node name="Door" type="Sprite" parent="Entrance"]
texture = ExtResource( 10 )
[node name="Chest" type="Node2D" parent="."]
[node name="Treasure Chest" type="Sprite" parent="Chest"]
[node name="Key" type="Sprite" parent="Chest"]
[node name="Collectible" type="Node2D" parent="."]
[node name="Journal Scrap" type="Sprite" parent="Collectible"]
[node name="HUD" parent="." instance=ExtResource( 8 )]
[node name="Pause Screen" parent="." instance=ExtResource( 5 )]
+6
View File
@@ -0,0 +1,6 @@
extends Node2D
func _ready() -> void:
$YSort/Player.load_hud($HUD)
return
+71
View File
@@ -0,0 +1,71 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Levels/Level 5.gd" type="Script" id=2]
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=3]
[ext_resource path="res://Resources/Level_5_Floor_Tileset.tres" type="TileSet" id=4]
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=5]
[ext_resource path="res://Music/Level_5.mp3" type="AudioStream" id=6]
[ext_resource path="res://GUI/Pause Screen.tscn" type="PackedScene" id=7]
[ext_resource path="res://Resources/Level_5_Walls_Tileset.tres" type="TileSet" id=8]
[ext_resource path="res://Enemies/Glowing Ghost.tscn" type="PackedScene" id=9]
[ext_resource path="res://Levels/Traps/Spawn Trap.tscn" type="PackedScene" id=10]
[node name="Void Level" type="Node2D"]
script = ExtResource( 2 )
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color( 0, 0, 0, 1 )
[node name="Floor" type="TileMap" parent="."]
self_modulate = Color( 0.627451, 0.627451, 0.627451, 1 )
tile_set = ExtResource( 4 )
cell_size = Vector2( 16, 16 )
format = 1
tile_data = PoolIntArray( -393225, 0, 0, -393224, 0, 1, -393223, 0, 1, -393222, 0, 1, -393221, 0, 1, -393220, 0, 1, -393219, 0, 1, -393218, 0, 1, -393217, 0, 1, -458752, 0, 1, -458751, 0, 1, -458750, 0, 1, -458749, 0, 1, -458748, 0, 1, -458747, 0, 1, -458746, 0, 1, -458745, 0, 1, -458744, 0, 1, -458743, 0, 1, -458742, 0, 1, -458741, 0, 1, -458740, 0, 1, -458739, 0, 1, -458738, 0, 1, -458737, 0, 1, -458736, 0, 1, -458735, 0, 1, -458734, 0, 1, -458733, 0, 1, -458732, 0, 1, -458731, 0, 1, -458730, 0, 1, -458729, 0, 1, -458728, 0, 1, -458727, 0, 1, -458726, 0, 1, -458725, 0, 1, -458724, 0, 1, -458723, 0, 1, -458722, 0, 1, -458721, 0, 1, -458720, 0, 1, -458719, 0, 1, -458718, 0, 1, -458717, 0, 1, -458716, 0, 2, -327689, 0, 65536, -327688, 0, 65537, -327687, 0, 65537, -327686, 0, 65537, -327685, 0, 65537, -327684, 0, 65537, -327683, 0, 65537, -327682, 0, 65537, -327681, 0, 65537, -393216, 0, 65537, -393215, 0, 65537, -393214, 0, 65537, -393213, 0, 65537, -393212, 0, 65537, -393211, 0, 65537, -393210, 0, 65537, -393209, 0, 65537, -393208, 0, 65537, -393207, 0, 65537, -393206, 0, 65537, -393205, 0, 65537, -393204, 0, 65537, -393203, 0, 65537, -393202, 0, 65537, -393201, 0, 65537, -393200, 0, 65537, -393199, 0, 65537, -393198, 0, 65537, -393197, 0, 65537, -393196, 0, 65537, -393195, 0, 65537, -393194, 0, 65537, -393193, 0, 65537, -393192, 0, 65537, -393191, 0, 65537, -393190, 0, 65537, -393189, 0, 65537, -393188, 0, 65537, -393187, 0, 65537, -393186, 0, 65537, -393185, 0, 65537, -393184, 0, 65537, -393183, 0, 65537, -393182, 0, 65537, -393181, 0, 65537, -393180, 0, 65538, -262153, 0, 65536, -262152, 0, 65537, -262151, 0, 65537, -262150, 0, 65537, -262149, 0, 65537, -262148, 0, 65537, -262147, 0, 65537, -262146, 0, 65537, -262145, 0, 65537, -327680, 0, 65537, -327679, 0, 65537, -327678, 0, 65537, -327677, 0, 65537, -327676, 0, 65537, -327675, 0, 65537, -327674, 0, 65537, -327673, 0, 65537, -327672, 0, 65537, -327671, 0, 65537, -327670, 0, 65537, -327669, 0, 65537, -327668, 0, 65537, -327667, 0, 65537, -327666, 0, 65537, -327665, 0, 65537, -327664, 0, 65537, -327663, 0, 65537, -327662, 0, 65537, -327661, 0, 65537, -327660, 0, 65537, -327659, 0, 65537, -327658, 0, 65537, -327657, 0, 65537, -327656, 0, 65537, -327655, 0, 65537, -327654, 0, 65537, -327653, 0, 65537, -327652, 0, 65537, -327651, 0, 65537, -327650, 0, 65537, -327649, 0, 65537, -327648, 0, 65537, -327647, 0, 65537, -327646, 0, 65537, -327645, 0, 65537, -327644, 0, 65538, -196617, 0, 65536, -196616, 0, 65537, -196615, 0, 65537, -196614, 0, 65537, -196613, 0, 65537, -196612, 0, 65537, -196611, 0, 65537, -196610, 0, 65537, -196609, 0, 65537, -262144, 0, 65537, -262143, 0, 65537, -262142, 0, 65537, -262141, 0, 65537, -262140, 0, 65537, -262139, 0, 65537, -262138, 0, 65537, -262137, 0, 65537, -262136, 0, 65537, -262135, 0, 65537, -262134, 0, 65537, -262133, 0, 65537, -262132, 0, 65537, -262131, 0, 65537, -262130, 0, 65537, -262129, 0, 65537, -262128, 0, 65537, -262127, 0, 65537, -262126, 0, 65537, -262125, 0, 65537, -262124, 0, 65537, -262123, 0, 65537, -262122, 0, 65537, -262121, 0, 65537, -262120, 0, 65537, -262119, 0, 65537, -262118, 0, 65537, -262117, 0, 65537, -262116, 0, 65537, -262115, 0, 65537, -262114, 0, 65537, -262113, 0, 65537, -262112, 0, 65537, -262111, 0, 65537, -262110, 0, 65537, -262109, 0, 65537, -262108, 0, 65538, -131081, 0, 65536, -131080, 0, 65537, -131079, 0, 65537, -131078, 0, 65537, -131077, 0, 65537, -131076, 0, 65537, -131075, 0, 65537, -131074, 0, 65537, -131073, 0, 65537, -196608, 0, 65537, -196607, 0, 65537, -196606, 0, 65537, -196605, 0, 65537, -196604, 0, 65537, -196603, 0, 65537, -196602, 0, 65537, -196601, 0, 65537, -196600, 0, 65537, -196599, 0, 65537, -196598, 0, 65537, -196597, 0, 65537, -196596, 0, 65537, -196595, 0, 65537, -196594, 0, 65537, -196593, 0, 65537, -196592, 0, 65537, -196591, 0, 65537, -196590, 0, 65537, -196589, 0, 65537, -196588, 0, 65537, -196587, 0, 65537, -196586, 0, 65537, -196585, 0, 65537, -196584, 0, 65537, -196583, 0, 65537, -196582, 0, 65537, -196581, 0, 65537, -196580, 0, 65537, -196579, 0, 65537, -196578, 0, 65537, -196577, 0, 65537, -196576, 0, 65537, -196575, 0, 65537, -196574, 0, 65537, -196573, 0, 65537, -196572, 0, 65538, -65545, 0, 65536, -65544, 0, 65537, -65543, 0, 65537, -65542, 0, 65537, -65541, 0, 65537, -65540, 0, 65537, -65539, 0, 65537, -65538, 0, 65537, -65537, 0, 65537, -131072, 0, 65537, -131071, 0, 65537, -131070, 0, 65537, -131069, 0, 65537, -131068, 0, 65537, -131067, 0, 65537, -131066, 0, 65537, -131065, 0, 65537, -131064, 0, 65537, -131063, 0, 65537, -131062, 0, 65537, -131061, 0, 65537, -131060, 0, 65537, -131059, 0, 65537, -131058, 0, 65537, -131057, 0, 65537, -131056, 0, 65537, -131055, 0, 65537, -131054, 0, 65537, -131053, 0, 65537, -131052, 0, 65537, -131051, 0, 65537, -131050, 0, 65537, -131049, 0, 65537, -131048, 0, 65537, -131047, 0, 65537, -131046, 0, 65537, -131045, 0, 65537, -131044, 0, 65537, -131043, 0, 65537, -131042, 0, 65537, -131041, 0, 65537, -131040, 0, 65537Line truncated
[node name="Walls" type="TileMap" parent="."]
light_mask = 8
tile_set = ExtResource( 8 )
cell_size = Vector2( 16, 16 )
format = 1
tile_data = PoolIntArray( -196589, 0, 0, -196588, 0, 1, -196587, 0, 1, -196586, 0, 1, -196585, 0, 1, -196584, 0, 1, -196583, 0, 2, -131055, 0, 0, -131054, 0, 1, -131053, 0, 131078, -131052, 0, 65541, -131051, 0, 131073, -131050, 0, 131073, -131049, 0, 131073, -131048, 0, 65542, -131047, 0, 65538, -65524, 0, 0, -65523, 0, 1, -65522, 0, 1, -65521, 0, 1, -65520, 0, 1, -65519, 0, 65545, -65518, 0, 131073, -65517, 0, 131073, -65516, 0, 131074, -65512, 0, 65536, -65511, 0, 65538, 12, 0, 65536, 13, 0, 65541, 14, 0, 131073, 15, 0, 131073, 16, 0, 131073, 17, 0, 131074, 24, 0, 65536, 25, 0, 65538, 65548, 0, 65536, 65549, 0, 65538, 65560, 0, 65536, 65561, 0, 65538, 131078, 0, 0, 131079, 0, 1, 131080, 0, 1, 131081, 0, 1, 131082, 0, 1, 131083, 0, 1, 131084, 0, 131078, 131085, 0, 65538, 131089, 0, 3, 131096, 0, 65536, 131097, 0, 65538, 196614, 0, 65536, 196615, 0, 65541, 196616, 0, 131073, 196617, 0, 131073, 196618, 0, 131073, 196619, 0, 131073, 196620, 0, 65542, 196621, 0, 65538, 196625, 0, 65539, 196632, 0, 65536, 196633, 0, 65538, 262150, 0, 65536, 262151, 0, 65538, 262156, 0, 65536, 262157, 0, 65538, 262161, 0, 65539, 262163, 0, 0, 262164, 0, 2, 262167, 0, 0, 262168, 0, 131078, 262169, 0, 65538, 327686, 0, 65536, 327687, 0, 65538, 327692, 0, 65536, 327693, 0, 65538, 327696, 0, 4, 327697, 0, 196615, 327699, 0, 131072, 327700, 0, 65543, 327703, 0, 65536, 327704, 0, 65541, 327705, 0, 131074, 393222, 0, 65536, 393223, 0, 65538, 393228, 0, 65536, 393229, 0, 131077, 393230, 0, 5, 393231, 0, 196609, 393232, 0, 196615, 393236, 0, 131075, 393239, 0, 65536, 393240, 0, 65538, 458758, 0, 131072, 458759, 0, 131074, 458761, 0, 0, 458762, 0, 2, 458764, 0, 131072, 458765, 0, 131073, 458766, 0, 131074, 458774, 0, 0, 458775, 0, 131078, 458776, 0, 65538, 524297, 0, 65536, 524298, 0, 65538, 524309, 0, 0, 524310, 0, 131078, 524311, 0, 65541, 524312, 0, 131074, 589833, 0, 65536, 589834, 0, 131077, 589835, 0, 1, 589836, 0, 1, 589837, 0, 1, 589838, 0, 1, 589839, 0, 1, 589840, 0, 1, 589841, 0, 1, 589842, 0, 1, 589843, 0, 1, 589844, 0, 1, 589845, 0, 131078, 589846, 0, 65541, 589847, 0, 131074, 655369, 0, 131072, 655370, 0, 131073, 655371, 0, 131073, 655372, 0, 131073, 655373, 0, 131073, 655374, 0, 131073, 655375, 0, 131073, 655376, 0, 131073, 655377, 0, 131073, 655378, 0, 131073, 655379, 0, 131073, 655380, 0, 131073, 655381, 0, 131073, 655382, 0, 131074 )
[node name="YSort" type="YSort" parent="."]
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
position = Vector2( 160, 90 )
[node name="Camera2D" type="Camera2D" parent="YSort/Player"]
current = true
[node name="Light2D" type="Light2D" parent="YSort/Player"]
texture = ExtResource( 5 )
range_item_cull_mask = 15
shadow_enabled = true
[node name="Enemies" type="YSort" parent="YSort"]
[node name="Glowing Ghost 0" parent="YSort/Enemies" instance=ExtResource( 9 )]
position = Vector2( 281, 109 )
[node name="Glowing Ghost 1" parent="YSort/Enemies" instance=ExtResource( 9 )]
position = Vector2( 328.5, 20 )
[node name="Traps" type="Node2D" parent="."]
[node name="Spawn Trap" parent="Traps" instance=ExtResource( 10 )]
position = Vector2( 256, 16 )
enemy_path = "res://Enemies/Glowing Ghost.tscn"
relative_x_tiles = -1
relative_y_tiles = 2
[node name="HUD" parent="." instance=ExtResource( 3 )]
[node name="Pause Screen" parent="." instance=ExtResource( 7 )]
[node name="BGM" type="AudioStreamPlayer" parent="."]
pause_mode = 2
stream = ExtResource( 6 )
volume_db = -10.0
autoplay = true
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Sprites/Assets/forestTreeBig.png" type="Texture" id=1]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.0
height = 10.0
[node name="Tree" type="Node2D"]
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 0.870588, 0.215686, 0.215686, 1 )
texture = ExtResource( 1 )
offset = Vector2( 0, -5 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
rotation = 1.5708
shape = SubResource( 1 )
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Sprites/Assets/Dead_Tree.png" type="Texture" id=1]
[sub_resource type="CapsuleShape2D" id=1]
radius = 3.0
height = 4.0
[node name="Dead Tree" type="Node2D"]
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -1.93028 )
scale = Vector2( 1, 1.48257 )
texture = ExtResource( 1 )
offset = Vector2( -1, -5 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource( 1 )
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Sprites/Assets/forestHouse.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 13, 10 )
[node name="forestHouse" type="Node2D"]
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
offset = Vector2( 0, -8 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource( 1 )
+18
View File
@@ -0,0 +1,18 @@
extends Area2D
export var enemy_path: String = 'res://Enemies/ENEMY.tscn'
export var relative_x_tiles: int
export var relative_y_tiles: int
func _on_spawn_trap_area_entered(_area: Area2D) -> void:
set_deferred('monitoring', false)
$Tile.set_deferred('disabled', true)
var enemy: KinematicBody2D = load(enemy_path).instance()
enemy.position.x = position.x + (relative_x_tiles * 16 + 8)
enemy.position.y = position.y + (relative_y_tiles * 16 + 8)
var enemies: YSort = get_tree().get_current_scene().get_node('YSort/Enemies')
enemies.call_deferred('add_child', enemy)
return
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Levels/Traps/Spawn Trap.gd" type="Script" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[node name="Spawn Trap" type="Area2D"]
light_mask = 0
collision_layer = 0
collision_mask = 2
input_pickable = false
monitorable = false
script = ExtResource( 1 )
[node name="Tile" type="CollisionShape2D" parent="."]
position = Vector2( 8, 8 )
shape = SubResource( 1 )
[connection signal="area_entered" from="." to="." method="_on_spawn_trap_area_entered"]