コード例 #1
0
 def initialise(self):
   """Initialises menus, etc"""
   GameState.initialise(self)
   gameMap = GameMap(Display.MapX, Display.MapY, Display.MapW, Display.MapH,
                 "The Valley of the Wind", self._world, self._world.hero)
   # Add the map as as a purely graphical element
   self.addMenu(gameMap, False)
   
   charDisplay = CharDisplay(Display.MapW, 0, Display.RIGHT_MENU_SIZE, 200,
                 "Nausicaa's equipment", self._world.hero)
   # Add the char display as as a purely graphical element
   self.addMenu(charDisplay, False)
コード例 #2
0
 def __init__(self):
   GameState.__init__(self)
コード例 #3
0
 def initMenus(self):
   """Initialise the regular menus, but also create the message menu"""
   GameState.initMenus(self)
   self.createMessageMenu()
コード例 #4
0
 def __init__(self, world):
   GameState.__init__(self)
   self._world = world
コード例 #5
0
 def initialise(self):
   """Initialises menus, etc"""
   GameState.initialise(self)
   self.createBackground()
   self.createTitleMenu()