feat: made antProgramming dynamic

This commit is contained in:
djaidjai committed 2025-11-12 16:45:38 +01:00
1 parent fa6e5d9582
commit 408ed71722
3 files changed
+32 -36

No files matched your search

+4 -5
View File
@@ -1,11 +1,10 @@
extends Node2D
@export var stepSize: float = 2
@export var ant: Sprite2D
@export var tiles: TileMapLayer
var t: float = -1
var paused: bool = false
@export var stepSize: float = 20
@export var ant: Sprite2D
@export var tiles: TileMapLayer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
@@ -19,6 +18,6 @@ func _process(delta: float) -> void:
if paused: return
t += delta
if (t > stepSize/100):
if (t > stepSize/1000):
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.