Start work toward a usable tiling hex grid board.

This commit is contained in:
Dorian 2017-07-22 00:07:37 -04:00
parent 7385b1fc1c
commit 7815a4ba48
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,10 @@ class StrategyGame(BoxLayout):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super(StrategyGame, self).__init__(**kwargs) super(StrategyGame, self).__init__(**kwargs)
# TODO: Need to figure out dimensions of map... better isolate in standalone FloatLayout setup.
# TODO: Add in calculation of number of tiles placeable in map? Or using scroll view?
# TODO: Learn about scrollable maps and mini-maps
for row in range(0, self.map_rows): for row in range(0, self.map_rows):
hex_map_row = BoxLayout(orientation='horizontal') hex_map_row = BoxLayout(orientation='horizontal')

View File

@ -9,6 +9,7 @@
map_cols: 5 map_cols: 5
BoxLayout: BoxLayout:
orientation: 'horizontal' orientation: 'horizontal'
# FloatLayout:
BoxLayout: BoxLayout:
id: _main_map id: _main_map
game: _game game: _game