drain object queues after each object
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user