21 lines
370 B
GDScript
21 lines
370 B
GDScript
extends Node
|
|
|
|
var time = 0
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
$Player.position = $StartPos.position
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
time += delta
|
|
|
|
|
|
func _on_player_shot_signal(shot):
|
|
add_child(shot)
|
|
|
|
|
|
func _on_game_body_exited(body):
|
|
body.queue_free()
|