drain object queues after each object

This commit is contained in:
2026-07-10 01:20:26 -05:00
parent 386967e936
commit 325d2c27dd
13 changed files with 259 additions and 106 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ fn init(me) {
// move() costs 250 ms, so the object steps ~4 cells/sec no matter how often
// tick() runs. Queue.length() avoids piling up moves; blocked() avoids walking
// into a wall (or another object's already-queued move this tick).
fn tick(me, state, dt) {
fn tick(me, dt) {
if !me.waiting { dance(me); }
}
fn dance(me) {