示例#1
0
 def addExit(self,exitX,exitY,exitW,exitH,exitPoint,roomName,direction):
     exit = Exit()
     exit.setRect(pygame.Rect(exitX,exitY,exitW,exitH))
     exit.setSceneName(roomName)
     exit.setExitPoint(exitPoint)
     exit.setDirection(direction)
     self.exits.append(exit)
 def __init__(self,game):
     Exit.__init__(self)