1
0
Fork 0

init - add late joining (only works when paused)

This commit is contained in:
qvalentin 2022-04-12 17:59:01 +02:00
parent c958cc6634
commit 1ff5e452bb
Signed by: qvalentin
GPG key ID: C979FA1EAFCABF1C
5 changed files with 22 additions and 17 deletions

View file

@ -11,10 +11,10 @@ from Code.UI.Shape import Shape
class GameState:
def __init__(self, neighbours: Neighbours):
def __init__(self, neighbours: Neighbours,counter):
self.neighbours = neighbours
self.counter = 0
self.counter = counter
self.run = True
self.is_evolving = False
self.field = Field()
@ -75,7 +75,7 @@ class GameState:
self.counter_old = self.counter
def run_game(game_state: GameState):
def run_game(game_state: GameState,counter = 0):
pygame.init()
pygame.display.set_caption(GeneralConfig.window_caption)
window = pygame.display.set_mode((GeneralConfig.width, GeneralConfig.height))