mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-08 14:05:16 -06:00
add file docstring, minor reformat, levels attribute
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
"""
|
||||
map.py
|
||||
Manages everything related to how walls, backgrounds, levels and the entire dungeon is generated.
|
||||
Pathfinding will also depend on objects here, and is thus integral to it's functionality.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class Dungeon(object):
|
||||
"""
|
||||
Organizes Level objects into an easy to render and path through object.
|
||||
@@ -13,7 +20,8 @@ class Dungeon(object):
|
||||
:param size: The diameter of the dungeon. Allows for a total of size^2 slots for levels.
|
||||
"""
|
||||
|
||||
self.levels, self.size = level_count, size
|
||||
self.level_count, self.size = level_count, size
|
||||
self.levels = [[None for y in range(size)] for x in range(size)] # array[x][y] style access
|
||||
|
||||
|
||||
class Level(object):
|
||||
|
||||
Reference in New Issue
Block a user