levels
This commit is contained in:
parent
22c132ca78
commit
6307a95c25
10 changed files with 156 additions and 20 deletions
|
|
@ -34,6 +34,7 @@ var pedestals : Array[Pedestal]
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
player.area.area_entered.connect(_player_area_entered)
|
||||
var temp_pedestals = pedstalContainer.get_children()
|
||||
for temp in temp_pedestals:
|
||||
pedestals.append(temp)
|
||||
|
|
@ -171,5 +172,9 @@ func _on_player_object_clicked(object):
|
|||
if(object.name == "StartButton"):
|
||||
start_room()
|
||||
|
||||
|
||||
func _player_area_entered(area : Area3D):
|
||||
#print(area.name)
|
||||
if "kill" in area:
|
||||
fail_room()
|
||||
gui.show_lose_screen("Touched a reset block", 2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue