|
|
@@ -34,3 +34,17 @@ def desktop_createDeselectedTiles(p): |
|
|
|
tile.top = pos[1] |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
def desktop_createSelectedTiles(p): |
|
|
|
for (id, pos) in enumerate(p.c.tilePositions): |
|
|
|
tile = arcade.Sprite() |
|
|
|
p.selectedTiles.append(tile) |
|
|
|
p.sprites.append(tile) |
|
|
|
|
|
|
|
tile.guid = id |
|
|
|
tile.texture = p.textures[2] |
|
|
|
# Position. |
|
|
|
tile.left = pos[0] |
|
|
|
tile.top = pos[1] |
|
|
|
# Invisible by default. |
|
|
|
tile.visible = False |