|
|
@@ -47,12 +47,14 @@ def gui_generateTilePositions( |
|
|
|
) -> memory_Context: |
|
|
|
if ( |
|
|
|
( |
|
|
|
c.recentField != "cellPositions" and |
|
|
|
c.recentField != "cellSize" and |
|
|
|
c.recentField != "playfieldSize" and |
|
|
|
c.recentField != "windowHeight" and |
|
|
|
c.recentField != "windowWidth" |
|
|
|
) or |
|
|
|
( |
|
|
|
len(c.cellPositions) == 0 or |
|
|
|
c.cellSize == 0 or |
|
|
|
c.playfieldSize == 0 or |
|
|
|
c.windowHeight == 0 or |
|
|
@@ -63,11 +65,9 @@ def gui_generateTilePositions( |
|
|
|
return c |
|
|
|
#} |
|
|
|
|
|
|
|
positions = gui_aux_cellPositions(c.playfieldSize) |
|
|
|
|
|
|
|
ps = [] |
|
|
|
for i in range(0, len(positions)): |
|
|
|
p = gui_aux_cellScreenPosition(c, positions[i]) |
|
|
|
for i in range(0, len(c.cellPositions)): |
|
|
|
p = gui_aux_cellScreenPosition(c, c.cellPositions[i]) |
|
|
|
ps.append(p) |
|
|
|
#} |
|
|
|
|
|
|
|