implemented y-wing main cannon and effects.

This commit is contained in:
zerothelootrat
2024-06-06 03:24:17 -04:00
parent 869ad92e5a
commit 62f6b4d873
6 changed files with 88 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
extends Area2D
var speed = 2500
func _physics_process(delta):
global_position.y += speed * delta
if global_position.y >= 980:
queue_free()
func _on_area_entered(area):
if area is player:
area.take_damage(1)
queue_free()