Test some functions in the game

This commit is contained in:
Yohann D'ANELLO
2020-11-06 19:12:56 +01:00
parent dc0d478d1e
commit c97a9a2e6c
3 changed files with 102 additions and 4 deletions

View File

@ -32,13 +32,13 @@ class Game:
self.settings.load_settings()
self.settings.write_settings()
def new_game(self) -> None:
def new_game(self, init_pad: bool = True) -> None:
# TODO generate a new map procedurally
self.m = Map.load("example_map.txt")
self.player = Player()
self.player.move(1, 6)
self.m.add_entity(self.player)
self.d = MapDisplay(self.m, self.player)
self.d = MapDisplay(self.m, self.player, init_pad)
@staticmethod
def load_game(filename: str) -> None: