Fixing tests and comments
This commit is contained in:
@@ -11,8 +11,8 @@ fn tick(me, state, dt) {
|
||||
// and is a no-op when blocked; the delay pads each step out to ~0.5s (move
|
||||
// itself costs 0.25s), matching the old global pusher heartbeat.
|
||||
//
|
||||
// The direction is read here, at the top level of the hook, because `Me` is a
|
||||
// per-object scope constant and is not visible inside other script functions.
|
||||
// The direction is read from `me` (the hook's first parameter); to use it in a
|
||||
// helper function you would pass `me` down explicitly.
|
||||
if !me.waiting {
|
||||
let dir = if me.has_tag("BUILTIN_pusher_north") { North }
|
||||
else if me.has_tag("BUILTIN_pusher_south") { South }
|
||||
|
||||
Reference in New Issue
Block a user