feat: made antProgramming dynamic
This commit is contained in:
1 parent
fa6e5d9582
commit
408ed71722
3 files changed
+32
-36
No files matched your search
@@ -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()
|
||||