Added stairs (can't climb yet).

This commit is contained in:
Segey Lapin
2020-04-13 18:18:07 +03:00
parent c9860ae759
commit 88e8359f64
9 changed files with 1836 additions and 52 deletions

View File

@@ -14,6 +14,7 @@ var door = preload("res://scenes/maps/door.tscn")
var jail_door = preload("res://scenes/maps/jail-door.tscn")
var window = preload("res://scenes/maps/window.tscn")
var outside_door = preload("res://scenes/maps/window.tscn")
var stairs = preload("res://scenes/maps/stairs.tscn")
var outside_door_placed = false
var tw2d
var te2d
@@ -230,6 +231,11 @@ func create_rooms():
master_room()
elif has_meta("stairs"):
master_room()
var stairs_i = stairs.instance()
add_child(stairs_i)
for e in get_children():
if e.is_in_group("furniture"):
e.queue_free()
if get_meta("stairs") > 0:
$c_modular/floor.queue_free()
elif exits.size() == 1: