Initial repo

This commit is contained in:
zerothelootrat
2024-06-03 05:29:11 -04:00
commit 613fc89bab
33 changed files with 974 additions and 0 deletions

17
Scripts/missile.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Area2D
var speed = 200
@onready var FirstStage = $CollisionShape2D
@onready var SecondStage = $CollisionPolygon2D
func _physics_process(delta):
global_position.y += -speed * delta
func _on_area_entered(area):
if area.is_in_group("enemies"):
FirstStage.disabled = true
SecondStage.disabled = false
area.take_damage(5)
queue_free()