update tests: new scene API
This commit is contained in:
parent
f62362032e
commit
838da4571d
142 changed files with 616 additions and 601 deletions
|
|
@ -7,7 +7,7 @@ import sys
|
|||
print("Debugging empty paths...")
|
||||
|
||||
# Create scene and grid
|
||||
mcrfpy.createScene("debug")
|
||||
debug = mcrfpy.Scene("debug")
|
||||
grid = mcrfpy.Grid(grid_x=10, grid_y=10)
|
||||
|
||||
# Initialize grid - all walkable
|
||||
|
|
@ -72,9 +72,9 @@ def timer_cb(dt):
|
|||
sys.exit(0)
|
||||
|
||||
# Quick UI setup
|
||||
ui = mcrfpy.sceneUI("debug")
|
||||
ui = debug.children
|
||||
ui.append(grid)
|
||||
mcrfpy.setScene("debug")
|
||||
debug.activate()
|
||||
mcrfpy.setTimer("exit", timer_cb, 100)
|
||||
|
||||
print("\nStarting timer...")
|
||||
Loading…
Add table
Add a link
Reference in a new issue