示例#1
0
def main():
    gs = initializeGame()
    
    while eventLoop.proceed(gs):              # The condition of this while-loop is where
        gs.frameCounter = gs.frameCounter + 1 # the games is actually taking place
    
    endGame(gs)
示例#2
0
def main():
    gs = gameState.GameState()   # Create a state object
    initializeGame(gs)           # Initialize a new game in the state object
    
    while eventLoop.proceed(gs):                     # The condition of this while-loop is where
        gs.frameCounter = gs.frameCounter + 1 # the games is actually taking place
    
    endGame(gs)