|
|
@@ -76,6 +76,13 @@ def printOutput(c): |
|
|
|
ctrl.registerCallback(printOutput) |
|
|
|
ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) |
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
|
|
|
|
|
# Copy context to platform. |
|
|
|
def copyContext(c): |
|
|
|
p.c = c |
|
|
|
ctrl.registerCallback(copyContext) |
|
|
|
|
|
|
|
ctrl.set("didLaunch", True) |
|
|
|
ctrl.set("playfieldSize", 2) |
|
|
|
ctrl.set("tileImage", "res/tiles.png") |
|
|
@@ -83,8 +90,8 @@ ctrl.set("tileImageCount", 3) |
|
|
|
ctrl.set("tileImageHeight", 100) |
|
|
|
ctrl.set("tileImageWidth", 75) |
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
|
desktop_configureFixedWindow(p) |
|
|
|
desktop_loadTextures(p) |
|
|
|
|
|
|
|
wnd = desktop_Window(p) |
|
|
|
arcade.run() |