def __init__(self, posx, posy, game): Point2D.__init__(self, 0, 0) self.startx = posx self.starty = posy self.game = game self.node = self.createNode(game, posx, posy) self.reset()
def __init__(self, player, pos): Point2D.__init__(self, pos) self.player = player self.node = g_player.createNode('image', {'href':'finger.png', 'size': config.BATPOINT_SIZE}) avg.ContinuousAnim(self.node, "angle", 0, config.FINGER_ROT_SPEED, False).start() player.game.addNode(self.node) self.updateNode() self.dependants=[] self.lines=[] self.__cursorID = None