(wip) advanced langtons ant

(wip) advanced langtons ant
This commit is contained in:
djaidjai committed 2025-11-12 00:59:27 +01:00
1 parent c57f07ffc2
commit 25ec8d2585
42 files changed
+3283

No files matched your search

+18
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()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.