final is here
This commit is contained in:
@@ -8,6 +8,7 @@ var delay_dup := 0.0
|
||||
|
||||
@export var particles := load("res://scene/destroy.tscn")
|
||||
|
||||
|
||||
@export var asteroidx1 : = load("res://scene/asteroidx1.tscn")
|
||||
@export var asteroidx2 : = load("res://scene/asteroidx2.tscn")
|
||||
@export var asteroidx3 : = load("res://scene/asteroidx3.tscn")
|
||||
@@ -65,10 +66,12 @@ func _on_body_entered(body: Node) -> void:
|
||||
elif body.is_in_group("shoot"):
|
||||
body.destroy = true
|
||||
body.queue_free()
|
||||
GameController.emit_signal("point_gain", type)
|
||||
GameController.emit_signal("point_gain", type, global_position)
|
||||
split()
|
||||
elif body is Ship and !body.is_inv():
|
||||
body.is_currently_hit = true
|
||||
direction = (global_position - body.global_position).normalized()
|
||||
body.velocity += direction * 10
|
||||
#GameController.emit_signal("player_hit")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user