Cleaned up laser.gd and made plasma bool functional again
This commit is contained in:
parent
845dc35e37
commit
2934ddd400
14
Laser.gd
14
Laser.gd
|
@ -7,25 +7,19 @@ export (int) var DAMAGE
|
|||
var plasma = false
|
||||
var current_pen = 0
|
||||
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
|
||||
func _on_Visibility_screen_exited():
|
||||
queue_free()
|
||||
|
||||
func _ready():
|
||||
# Called every time the node is added to the scene.
|
||||
# Initialization here
|
||||
$AnimatedSprite.play()
|
||||
connect("area_entered", self, "hit")
|
||||
pass
|
||||
|
||||
func hit(who):
|
||||
#if plasma == false:
|
||||
# hide()
|
||||
# queue_free()
|
||||
if current_pen > 0:
|
||||
|
||||
if plasma == true:
|
||||
pass
|
||||
elif current_pen > 0:
|
||||
current_pen -= 1
|
||||
else:
|
||||
hide()
|
||||
|
|
Loading…
Reference in New Issue