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

@ -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")