Timer overhaul: update tests
This commit is contained in:
parent
5d41292bf6
commit
cec76b63dc
78 changed files with 521 additions and 495 deletions
|
|
@ -12,9 +12,9 @@ test.activate()
|
|||
print("Scene created, no animations added")
|
||||
print("Starting game loop in 100ms...")
|
||||
|
||||
def check_alive(runtime):
|
||||
def check_alive(timer, runtime):
|
||||
print(f"Timer fired at {runtime}ms - AnimationManager survived!")
|
||||
mcrfpy.setTimer("exit", lambda t: mcrfpy.exit(), 100)
|
||||
mcrfpy.Timer("exit", lambda t, r: mcrfpy.exit(), 100, once=True)
|
||||
|
||||
mcrfpy.setTimer("check", check_alive, 1000)
|
||||
print("If this crashes immediately, AnimationManager has an issue with empty state")
|
||||
mcrfpy.Timer("check", check_alive, 1000, once=True)
|
||||
print("If this crashes immediately, AnimationManager has an issue with empty state")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue