Timer overhaul: update tests

This commit is contained in:
John McCardle 2026-01-03 22:44:53 -05:00
commit cec76b63dc
78 changed files with 521 additions and 495 deletions

View file

@ -126,9 +126,10 @@ def setup_scene():
patrol_demo.on_key = on_keypress
# Start patrol timer
mcrfpy.setTimer("patrol", patrol_step, move_timer_ms)
global patrol_timer
patrol_timer = mcrfpy.Timer("patrol", patrol_step, move_timer_ms)
def patrol_step(runtime):
def patrol_step(timer, runtime):
"""Move entity one step toward current waypoint"""
global current_waypoint, patrol_paused