fix game.gd node paths for Player and Witch under World
parent
3779426968
commit
ca820caa2b
|
|
@ -9,15 +9,15 @@ var _game_over_scene = preload("res://scenes/game_over.tscn")
|
|||
func _ready():
|
||||
MusicManager.play(preload("res://assets/music&sfx/music/ashveil-355633.mp3"))
|
||||
add_child(_debug_menu_script.new())
|
||||
$Witch.died.connect(_on_witch_died)
|
||||
$World/Witch.died.connect(_on_witch_died)
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var t = int(_spawn_control.elapsed_time)
|
||||
_timer_label.text = "%02d:%02d" % [t / 60, t % 60]
|
||||
|
||||
func _on_witch_died(killer) -> void:
|
||||
var witch = $Witch
|
||||
var player = $Player
|
||||
var witch = $World/Witch
|
||||
var player = $World/Player
|
||||
$PauseMenu.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
get_tree().paused = true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue