Skip to content

Commit

Permalink
Level 15 added
Browse files Browse the repository at this point in the history
  • Loading branch information
tnargy committed Dec 6, 2024
1 parent ae8c15d commit 7206f82
Show file tree
Hide file tree
Showing 9 changed files with 441 additions and 93 deletions.
1 change: 0 additions & 1 deletion components/door.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
size = Vector2(32, 32)

[node name="Door" type="Area2D"]
scale = Vector2(2, 2)
collision_layer = 8
collision_mask = 2
script = ExtResource("1_4fqmq")
Expand Down
1 change: 0 additions & 1 deletion components/item.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
size = Vector2(32, 32)

[node name="Item" type="Area2D"]
scale = Vector2(2, 2)
collision_mask = 2
script = ExtResource("1_ik8uw")

Expand Down
129 changes: 65 additions & 64 deletions scenes/levels/level1.tscn

Large diffs are not rendered by default.

269 changes: 269 additions & 0 deletions scenes/levels/level15.tscn

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions scenes/levels/level2.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ time_limit = 100
chips_needed = 4

[node name="HUD" parent="." node_paths=PackedStringArray("level") instance=ExtResource("2_ayuei")]
visible = false
level = NodePath("..")

[node name="Walls" type="TileMapLayer" parent="."]
Expand All @@ -29,22 +30,22 @@ tile_set = ExtResource("3_f43do")
[node name="Goal" parent="Walls" instance=ExtResource("5_v687u")]
position = Vector2(112, 464)

[node name="Chips" type="Node" parent="."]
[node name="Chips" type="Node2D" parent="."]

[node name="Chip" parent="Chips" instance=ExtResource("7_vihtw")]
position = Vector2(480, 672)
position = Vector2(240, 336)
item_type = "CHIP"

[node name="Chip2" parent="Chips" instance=ExtResource("7_vihtw")]
position = Vector2(480, 1184)
position = Vector2(240, 592)
item_type = "CHIP"

[node name="Chip3" parent="Chips" instance=ExtResource("7_vihtw")]
position = Vector2(1184, 992)
position = Vector2(592, 496)
item_type = "CHIP"

[node name="Chip4" parent="Chips" instance=ExtResource("7_vihtw")]
position = Vector2(1184, 864)
position = Vector2(592, 432)
item_type = "CHIP"

[node name="Gate" parent="." instance=ExtResource("4_sct32")]
Expand Down
53 changes: 32 additions & 21 deletions scenes/levels/level3.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ time_limit = 100
chips_needed = 4

[node name="HUD" parent="." node_paths=PackedStringArray("level") instance=ExtResource("2_3idf5")]
visible = false
level = NodePath("..")

[node name="Walls" type="TileMapLayer" parent="."]
Expand All @@ -27,55 +28,62 @@ tile_set = ExtResource("3_4pn41")
[node name="Goal" parent="Walls" instance=ExtResource("4_vm7yi")]
position = Vector2(368, 272)

[node name="Player" parent="." node_paths=PackedStringArray("walls") instance=ExtResource("8_jpmjn")]
position = Vector2(336, 560)
walls = NodePath("../Walls")
[node name="Door" parent="Walls" instance=ExtResource("6_lhlih")]
position = Vector2(368, 304)
scale = Vector2(1, 1)
door_color = "GATE"

[node name="Doors" type="Node2D" parent="."]

[node name="Chips" type="Node" parent="."]
[node name="Keys" type="Node2D" parent="."]

[node name="Trap" type="Node2D" parent="."]

[node name="Blocks" type="Node2D" parent="."]

[node name="Chips" type="Node2D" parent="."]

[node name="Chip" parent="Chips" instance=ExtResource("5_uhusq")]
position = Vector2(736, 864)
position = Vector2(368, 432)
item_type = "CHIP"

[node name="Chip2" parent="Chips" instance=ExtResource("5_uhusq")]
position = Vector2(480, 1120)
position = Vector2(240, 560)
item_type = "CHIP"

[node name="Chip3" parent="Chips" instance=ExtResource("5_uhusq")]
position = Vector2(672, 1376)
position = Vector2(336, 688)
item_type = "CHIP"

[node name="Chip4" parent="Chips" instance=ExtResource("5_uhusq")]
position = Vector2(928, 1120)
position = Vector2(464, 560)
item_type = "CHIP"

[node name="Door" parent="." instance=ExtResource("6_lhlih")]
position = Vector2(368, 304)
scale = Vector2(1, 1)
door_color = "GATE"

[node name="Shoes" type="Node" parent="."]
[node name="Shoes" type="Node2D" parent="."]

[node name="Flippers" parent="Shoes" instance=ExtResource("5_uhusq")]
position = Vector2(736, 1184)
position = Vector2(368, 592)
item_type = "FLIPPERS"

[node name="Suction" parent="Shoes" instance=ExtResource("5_uhusq")]
position = Vector2(928, 1056)
position = Vector2(464, 528)
item_type = "SUCTION"

[node name="Skates" parent="Shoes" instance=ExtResource("5_uhusq")]
position = Vector2(672, 864)
position = Vector2(336, 432)
item_type = "SKATES"

[node name="Fire" parent="Shoes" instance=ExtResource("5_uhusq")]
position = Vector2(480, 1056)
position = Vector2(240, 528)
item_type = "FIRESHOES"

[node name="Enemies" type="Node2D" parent="."]

[node name="Player" parent="." node_paths=PackedStringArray("walls") instance=ExtResource("8_jpmjn")]
position = Vector2(336, 560)
walls = NodePath("../Walls")

[connection signal="goal_complete" from="Walls/Goal" to="." method="_on_goal_complete"]
[connection signal="area_entered" from="Player" to="Player" method="_on_area_entered"]
[connection signal="death" from="Player" to="." method="_on_player_death"]
[connection signal="inventory_changed" from="Player" to="HUD" method="_on_player_inventory_changed"]
[connection signal="itemCollected" from="Chips/Chip" to="Player" method="_handle_item_collected"]
[connection signal="itemCollected" from="Chips/Chip2" to="Player" method="_handle_item_collected"]
[connection signal="itemCollected" from="Chips/Chip3" to="Player" method="_handle_item_collected"]
Expand All @@ -84,3 +92,6 @@ item_type = "FIRESHOES"
[connection signal="itemCollected" from="Shoes/Suction" to="Player" method="_handle_item_collected"]
[connection signal="itemCollected" from="Shoes/Skates" to="Player" method="_handle_item_collected"]
[connection signal="itemCollected" from="Shoes/Fire" to="Player" method="_handle_item_collected"]
[connection signal="area_entered" from="Player" to="Player" method="_on_area_entered"]
[connection signal="death" from="Player" to="." method="_on_player_death"]
[connection signal="inventory_changed" from="Player" to="HUD" method="_on_player_inventory_changed"]
52 changes: 52 additions & 0 deletions scenes/levels/level_template.tscn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/world.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends Node2D
@export var current_level: Level
@onready var timer = $Timer
var level: int
var max_level = 14
var max_level = 15


func _ready():
Expand Down
16 changes: 16 additions & 0 deletions ui/hud.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,22 @@ offset_bottom = 55.0
scale = Vector2(0.75, 0.75)
texture = ExtResource("10_k8ayi")

[node name="Level15" type="Button" parent="SelectLevelPanel/GridContainer"]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
theme = SubResource("Theme_uen4f")
text = "15"

[node name="TextureRect" type="TextureRect" parent="SelectLevelPanel/GridContainer/Level15"]
modulate = Color(0.72549, 0.482353, 0, 1)
layout_mode = 0
offset_left = 5.0
offset_top = 5.0
offset_right = 55.0
offset_bottom = 55.0
scale = Vector2(0.75, 0.75)
texture = ExtResource("10_k8ayi")

[connection signal="pressed" from="Virtual/Left" to="." method="_on_left_pressed"]
[connection signal="pressed" from="Virtual/Right" to="." method="_on_right_pressed"]
[connection signal="pressed" from="Virtual/Down" to="." method="_on_down_pressed"]

0 comments on commit 7206f82

Please sign in to comment.