Timer overhaul: update tests
This commit is contained in:
parent
5d41292bf6
commit
cec76b63dc
78 changed files with 521 additions and 495 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue