fix broken code, now playable
This commit is contained in:
parent
23e21feedf
commit
73e20b16a6
@ -6,8 +6,8 @@ from game_state import GameState
|
||||
|
||||
class GameLayer:
|
||||
def __init__(self, api_key):
|
||||
self.game_state: GameState = None
|
||||
self.api_key: str = api_key
|
||||
self.game_state = GameState
|
||||
self.api_key = api_key
|
||||
|
||||
def new_game(self, map_name: str = "training0"):
|
||||
"""
|
||||
|
2
main.py
2
main.py
@ -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
|
||||
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():
|
||||
|
Reference in New Issue
Block a user