Exemplo n.º 1
0
 def open(self, gameState):
     gameState.scoreFromPreviousLevel = gameState.scoore
     gameState.thor.prevMapUsedUpSuperShots = gameState.thor.usedUpSuperShots        
     gameState.map = mapLogic.Map()
     gameState.map.loadmap(self.targetMap)
     gameState.mapname = self.targetMap
     gameLogic.reset(gameState)
Exemplo n.º 2
0
 def newMapFromScratch(self, gameState):
     startingBlock = gameObjects.Block()
     startingBlock.setposition(300, 400)
     newMap = Map()
     newMap.addBlock(startingBlock)
     newMapFileName = "map" + str( gameLogic.getHighestMapNumber()+1 )  + ".map"
     newMap.savemap( os.path.join('data', newMapFileName) )
     self.loadmap(newMapFileName)
     gameLogic.reset(gameState)
Exemplo n.º 3
0
 def open(self, gameState):
     gameState.scoreFromPreviousLevel = gameState.scoore
     gameState.map = mapLogic.Map()
     gameState.map.loadmap(self.targetMap)
     gameState.mapname = self.targetMap
     gameLogic.reset(gameState)
Exemplo n.º 4
0
 def die(self, gameState):
     gameLogic.reset(gameState)