Started refactoring on ground objects. WW2 factions will have WW2 style buildings. Added ground objects templates for : "village", "ww2bunker", "allycamp"

This commit is contained in:
Khopa
2020-06-11 21:50:09 +02:00
parent 90d588353c
commit c708abafc8
23 changed files with 106 additions and 54 deletions

View File

@@ -41,6 +41,7 @@ class QLiberationMap(QGraphicsView):
self.setMinimumSize(800,600)
self.setMaximumHeight(2160)
self._zoom = 0
self.factor = 1
self.init_scene()
self.connectSignals()
self.setGame(game)
@@ -222,6 +223,7 @@ class QLiberationMap(QGraphicsView):
else:
self._zoom = -5
def _transform_point(self, p: Point, treshold=30) -> (int, int):
point_a = list(self.game.theater.reference_points.keys())[0]
point_a_img = self.game.theater.reference_points[point_a]