forked from team-sg/hero-mark-2
add mine that explodes on contact with player, shot by arrow, or other mine's explosions
This commit is contained in:
parent
c577f0a57c
commit
8a47c20d94
12 changed files with 338 additions and 7 deletions
10
objects/enemy/explosion.gd
Normal file
10
objects/enemy/explosion.gd
Normal file
|
@ -0,0 +1,10 @@
|
|||
extends "res://objects/enemy/enemy.gd"
|
||||
|
||||
func _ready():
|
||||
$AnimatedSprite.play("explode")
|
||||
|
||||
func _on_animation_finished():
|
||||
queue_free()
|
||||
|
||||
func die():
|
||||
return
|
Loading…
Add table
Add a link
Reference in a new issue