Initial commit based on the work of shmup-01

This commit is contained in:
Henry 2025-12-09 08:49:00 +00:00
commit da65849c27
78 changed files with 1723 additions and 0 deletions

18
bullet.gd Normal file
View file

@ -0,0 +1,18 @@
extends Area2D
@export var speed = -250
func start(pos):
position = pos
func _process(delta):
position.y += speed * delta
# Signal checks to see if the bullet leaves the viewport then removes bullet.
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
queue_free()
func _on_area_entered(area: Area2D) -> void:
if area.is_in_group("enemies"):
area.explode()
queue_free()