(wip) advanced langtons ant

(wip) advanced langtons ant
This commit is contained in:
2025-11-12 00:58:34 +01:00
parent c57f07ffc2
commit 25ec8d2585
42 changed files with 3283 additions and 0 deletions

18
langtons-ant/grid.gd Normal file
View File

@@ -0,0 +1,18 @@
extends Node2D
var t: float = 0
@export var speed: float = 58
@export var ant: Sprite2D
@export var tiles: TileMapLayer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
t += delta
if (t > 60-speed):
t = 0
ant.update()