mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-05-07 22:31:40 +02:00
15 lines
207 B
GDScript
15 lines
207 B
GDScript
class_name Bullet
|
|
extends RigidBody2D
|
|
|
|
|
|
onready var animation_player = $AnimationPlayer
|
|
|
|
|
|
func destroy():
|
|
animation_player.play("destroy")
|
|
|
|
|
|
func _on_body_entered(body):
|
|
if body is Enemy:
|
|
body.destroy()
|