15 lines
440 B
GDScript
15 lines
440 B
GDScript
extends Node2D
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
get_window().grab_focus() # Replace with function body.
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _on_area_2d_trigger_active_signal(body, intentMessage):
|
|
print("game controller received trigger")
|
|
#if intentMessage == "destroy" and not body is Player:
|
|
#body.queue_free()
|