|
|
@@ -67,6 +67,7 @@ ctrl.registerFunctions([ |
|
|
|
# cli_reportVictory, |
|
|
|
# cli_selectItem, |
|
|
|
# cli_showHelp, |
|
|
|
gui_generateDescTextureDescriptions, |
|
|
|
gui_generateTextureDescriptions, |
|
|
|
gui_generateTilePositions, |
|
|
|
gui_generateTitleTextureDescriptions, |
|
|
@@ -79,7 +80,7 @@ ctrl.registerFunctions([ |
|
|
|
|
|
|
|
def printDbg(c): |
|
|
|
print(f"Dbg key/value: '{c.recentField}'/'{c.field(c.recentField)}'") |
|
|
|
ctrl.registerCallback(printDbg) |
|
|
|
#ctrl.registerCallback(printDbg) |
|
|
|
ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) |
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
@@ -108,6 +109,11 @@ ctrl.set("playfieldSize", 6) |
|
|
|
ctrl.set("cellPositions", gui_aux_cellHarmPositions()) |
|
|
|
ctrl.set("cellSize", 25) |
|
|
|
ctrl.set("deselectMismatchedTilesDelay", 500) |
|
|
|
ctrl.set("descImage", "res/harm.png") |
|
|
|
ctrl.set("descImageCount", 6) |
|
|
|
ctrl.set("descImageHeight", 250) |
|
|
|
ctrl.set("descImageWidth", 375) |
|
|
|
ctrl.set("descPosition", [19, 12]) |
|
|
|
ctrl.set("hideMatchingTilesDelay", 500) |
|
|
|
ctrl.set("tileImage", "res/harmful-tiles.png") |
|
|
|
ctrl.set("tileImageCount", 8) |
|
|
@@ -131,5 +137,8 @@ desktop_createSelectedTiles(p) |
|
|
|
desktop_loadTitleTextures(p) |
|
|
|
desktop_createTitle(p) |
|
|
|
|
|
|
|
desktop_loadDescTextures(p) |
|
|
|
desktop_createDesc(p) |
|
|
|
|
|
|
|
wnd = desktop_Window(p) |
|
|
|
arcade.run() |