From 9a9a2a56b2ecd3b94e2e7f8155ad135e76adfcf1 Mon Sep 17 00:00:00 2001 From: kleph Date: Sat, 11 Nov 2017 00:10:19 +0100 Subject: [PATCH] Add drawable grid --- 03_map.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/03_map.py b/03_map.py index f1adc5f..e4cbc38 100644 --- a/03_map.py +++ b/03_map.py @@ -93,8 +93,6 @@ class Room: tilemap[self.x + x][self.y + self.height - 1] = Level.TILE_WALL def center(self): - cx = 0 - cy = 0 cx = round(self.x + self.width / 2) cy = round(self.y + self.height / 2) @@ -118,6 +116,7 @@ class Level: self.rooms = [] self.regenerate() self.seed = seed + self.grid = 0 def load_tileset(self, tile_file): resource_file = open(tile_file)