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

19
main.gd Normal file
View file

@ -0,0 +1,19 @@
extends Node2D
var enemy = preload("res://enemy.tscn")
var score = 0
func _ready():
spawn_enemies()
func spawn_enemies():
for x in range(9):
for y in range(3):
var e = enemy.instantiate()
var pos = Vector2(x * (16 + 8) + 24, 16 * 4 + y * 16)
add_child(e)
e.start(pos)
e.died.connect(_on_enemy_died)
func _on_enemy_died(value):
score += value