fix broken code, now playable

This commit is contained in:
Thefeli73 2020-09-27 14:45:23 +02:00
parent 23e21feedf
commit 73e20b16a6
2 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ from game_state import GameState
class GameLayer: class GameLayer:
def __init__(self, api_key): def __init__(self, api_key):
self.game_state: GameState = None self.game_state = GameState
self.api_key: str = api_key self.api_key = api_key
def new_game(self, map_name: str = "training0"): def new_game(self, map_name: str = "training0"):
""" """

View File

@ -5,7 +5,7 @@ api_key = "74e3998d-ed3d-4d46-9ea8-6aab2efd8ae3" # TODO: Your api key here
# The different map names can be found on considition.com/rules # The different map names can be found on considition.com/rules
map_name = "training1" # TODO: You map choice here. If left empty, the map "training1" will be selected. map_name = "training1" # TODO: You map choice here. If left empty, the map "training1" will be selected.
game_layer: GameLayer = None game_layer = GameLayer(api_key)
def main(): def main():