mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-07 05:13:14 -06:00
remove print, remove add_level and get_lists function, fix comment
This commit is contained in:
@@ -44,5 +44,3 @@ class Sprites(object):
|
|||||||
SKELETON = os.path.join(__MONSTERS, "skeleton.png")
|
SKELETON = os.path.join(__MONSTERS, "skeleton.png")
|
||||||
GHOST = os.path.join(__MONSTERS, "ghost", "ghost1.png")
|
GHOST = os.path.join(__MONSTERS, "ghost", "ghost1.png")
|
||||||
FROG = os.path.join(__MONSTERS, "frog", "frog1.png")
|
FROG = os.path.join(__MONSTERS, "frog", "frog1.png")
|
||||||
|
|
||||||
print(SKELETON, GHOST, FROG)
|
|
||||||
@@ -55,7 +55,7 @@ class Game(arcade.Window):
|
|||||||
|
|
||||||
# Create the dungeon
|
# Create the dungeon
|
||||||
dungeon = 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
|
# Create monsters
|
||||||
self.enemy_list.extend([
|
self.enemy_list.extend([
|
||||||
|
|||||||
@@ -59,16 +59,11 @@ class Dungeon(object):
|
|||||||
self.floor_list.extend(room_floor)
|
self.floor_list.extend(room_floor)
|
||||||
self.wall_list.extend(room_wall)
|
self.wall_list.extend(room_wall)
|
||||||
|
|
||||||
|
|
||||||
# self.level_count, 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
|
# self.levels = [[None for y in range(size)] for x in range(size)] # array[x][y] style access
|
||||||
|
|
||||||
def get_lists(self):
|
def get_lists(self):
|
||||||
return (self.floor_list, self.wall_list)
|
return self.floor_list, self.wall_list
|
||||||
|
|
||||||
def add_level(self, sprit_list):
|
|
||||||
for x in sprit_list:
|
|
||||||
self.levels.append(x)
|
|
||||||
|
|
||||||
def render(self) -> None:
|
def render(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user