From 7815a4ba48ee24940aa1c17c078a955b3a49bfb6 Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Sat, 22 Jul 2017 00:07:37 -0400 Subject: [PATCH] Start work toward a usable tiling hex grid board. --- main.py | 4 ++++ strategygame.kv | 1 + 2 files changed, 5 insertions(+) diff --git a/main.py b/main.py index 910f0de..7218145 100644 --- a/main.py +++ b/main.py @@ -14,6 +14,10 @@ class StrategyGame(BoxLayout): def __init__(self, **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): hex_map_row = BoxLayout(orientation='horizontal') diff --git a/strategygame.kv b/strategygame.kv index 7f5d47b..5af2d93 100644 --- a/strategygame.kv +++ b/strategygame.kv @@ -9,6 +9,7 @@ map_cols: 5 BoxLayout: orientation: 'horizontal' +# FloatLayout: BoxLayout: id: _main_map game: _game