update tests: new scene API
This commit is contained in:
parent
f62362032e
commit
838da4571d
142 changed files with 616 additions and 601 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue