remove print, remove add_level and get_lists function, fix comment

This commit is contained in:
Xevion
2020-04-19 23:48:04 -05:00
parent 7d9efa4da1
commit 54bf86f2c7
3 changed files with 4 additions and 11 deletions

View File

@@ -44,5 +44,3 @@ class Sprites(object):
SKELETON = os.path.join(__MONSTERS, "skeleton.png")
GHOST = os.path.join(__MONSTERS, "ghost", "ghost1.png")
FROG = os.path.join(__MONSTERS, "frog", "frog1.png")
print(SKELETON, GHOST, FROG)

View File

@@ -55,7 +55,7 @@ class Game(arcade.Window):
# Create the dungeon
dungeon = Dungeon()
self.floor_list, self.wall_list = dungeon.get_lists()
self.floor_list, self.wall_list = dungeon.floor_list, dungeon.wall_list
# Create monsters
self.enemy_list.extend([

View File

@@ -59,16 +59,11 @@ class Dungeon(object):
self.floor_list.extend(room_floor)
self.wall_list.extend(room_wall)
#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
# 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
def get_lists(self):
return (self.floor_list, self.wall_list)
def add_level(self, sprit_list):
for x in sprit_list:
self.levels.append(x)
return self.floor_list, self.wall_list
def render(self) -> None:
"""