hyper space

This commit is contained in:
Patrick Nueser
2024-06-28 15:30:44 +02:00
commit 1e4be7ba8d
75 changed files with 1813 additions and 0 deletions

View File

@ -0,0 +1,16 @@
extends Node
var enemy: PackedScene = preload("res://enemy/enemy.tscn")
var score: int = 0;
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