LD56 is over. This is the game.

This commit is contained in:
Douwe Ravers
2024-10-07 02:28:14 +02:00
parent 4c0c57d5ba
commit af7a46cd23
183 changed files with 20357 additions and 442 deletions

15
scenes/enemy_ants.gd Normal file
View File

@@ -0,0 +1,15 @@
class_name EnemySpawn extends Node3D
var enemy_scene := preload("res://entities/ants/enemy_ant.tscn")
func _ready() -> void:
$Timer.wait_time = randi_range(1, 10)
$Timer.start()
func _on_timer_timeout() -> void:
$Timer.wait_time = randi_range(1, 10)
if $Ants.get_children().size() < Game.instance.enemies_per_spawn:
var enemy := enemy_scene.instantiate() as EnemyAnt
$Ants.add_child(enemy)
enemy.global_position = global_position