init - add late joining (only works when paused)
This commit is contained in:
parent
c958cc6634
commit
1ff5e452bb
5 changed files with 22 additions and 17 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue