Add a level 2 scaffold and make the level-clear screen load the next level
level_clear.gd gained a next_level_scene export: empty reloads the current level, otherwise it changes to the given scene. Level 1 now points at res://scenes/level_2.tscn. level_2.tscn is an empty but complete level: background, three TileMapLayers wired to the same TileSet, player, HUD, death screen and level-clear screen, plus the empty prefab containers. Its hidden_passages script explicitly sets hidden_cells = [] so level 1's passage cells are not carved here.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
[node name="DeathScreen" parent="." unique_id=1952687359 instance=ExtResource("22_death")]
|
||||
|
||||
[node name="LevelClear" parent="." instance=ExtResource("26_clear")]
|
||||
next_level_scene = "res://scenes/level_2.tscn"
|
||||
|
||||
[node name="Level" type="Node2D" parent="." unique_id=1678372922]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user