Add drawable grid
This commit is contained in:
parent
7120d1507d
commit
9a9a2a56b2
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue