mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
11 lines
409 B
Python
11 lines
409 B
Python
from MazeBase import MazeBase
|
|
import MazeData
|
|
|
|
class Maze(MazeBase):
|
|
|
|
def __init__(self, mapName, mazeData = MazeData.mazeData, cellWidth = MazeData.CELL_WIDTH):
|
|
model = loader.loadModel(mapName)
|
|
mData = mazeData[mapName]
|
|
self.treasurePosList = mData['treasurePosList']
|
|
self.numTreasures = len(self.treasurePosList)
|
|
MazeBase.__init__(self, model, mData, cellWidth)
|