Activate Playerlamps on start
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import logging
|
||||
from lamps.LampGroup import PLAYER_LAMPS
|
||||
|
||||
class GameState:
|
||||
def __init__(self, players, highscore, currentPlayerID = 0):
|
||||
self.players = players
|
||||
self.gameStateID = currentPlayerID
|
||||
self.highscore = highscore
|
||||
PLAYER_LAMPS.activateNext()
|
||||
|
||||
@property
|
||||
def currentPlayer(self):
|
||||
@@ -22,4 +24,7 @@ class GameState:
|
||||
self.players.remove(savedPlayer)
|
||||
self.players.append(savedPlayer)
|
||||
|
||||
PLAYER_LAMPS.deactivateCurrent()
|
||||
PLAYER_LAMPS.activateNext()
|
||||
|
||||
self.gameState.currentPlayer.activate()
|
||||
|
||||
Reference in New Issue
Block a user