mirror of https://github.com/profan/ld-39-jam.git
yes.
This commit is contained in:
parent
938bf344b2
commit
d9ef9dde4f
|
@ -5,6 +5,7 @@ var MissileImpact = load("res://MissileImpact.tscn")
|
||||||
|
|
||||||
onready var sprite = get_node("Sprite")
|
onready var sprite = get_node("Sprite")
|
||||||
onready var ps = get_node("Particles2D")
|
onready var ps = get_node("Particles2D")
|
||||||
|
onready var cs = get_node("CollisionShape2D")
|
||||||
|
|
||||||
var missile_max_speed = 384 # pixels per second
|
var missile_max_speed = 384 # pixels per second
|
||||||
var missile_arrive_radius = 64
|
var missile_arrive_radius = 64
|
||||||
|
@ -68,6 +69,7 @@ func on_impact(e, is_bullet):
|
||||||
func queue_death():
|
func queue_death():
|
||||||
sprite.hide()
|
sprite.hide()
|
||||||
ps.set_emitting(false)
|
ps.set_emitting(false)
|
||||||
|
cs.queue_free() # kill it
|
||||||
is_dead = true
|
is_dead = true
|
||||||
|
|
||||||
func _fixed_process(delta):
|
func _fixed_process(delta):
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
extends Node2D
|
|
||||||
|
|
||||||
onready var right_one = get_node("RightThruster 1")
|
|
||||||
onready var right_two = get_node("RightThruster 1")
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
# Called every time the node is added to the scene.
|
|
||||||
# Initialization here
|
|
||||||
pass
|
|
Loading…
Reference in New Issue