update tests: new scene API

This commit is contained in:
John McCardle 2026-01-03 10:59:52 -05:00
commit 838da4571d
142 changed files with 616 additions and 601 deletions

View file

@ -17,8 +17,8 @@ def run_test(runtime):
print("=" * 60)
# Create test scene
mcrfpy.createScene("test")
ui = mcrfpy.sceneUI("test")
test = mcrfpy.Scene("test")
ui = test.children
texture = mcrfpy.Texture("assets/kenney_ice.png", 16, 16)
# Create grid with explicit empty layers (#150 migration)
@ -188,6 +188,6 @@ def run_test(runtime):
sys.exit(0)
# Initialize and run
mcrfpy.createScene("init")
mcrfpy.setScene("init")
init = mcrfpy.Scene("init")
init.activate()
mcrfpy.setTimer("test", run_test, 100)