Exemple #1
0
    def __init__(self, data):
        InteractiveObject.__init__(self)
        self.rect = Rect(data.x, data.y, data.width, data.height)
        self.radius = self.rect.width / 2
        self.rect.y -= 3
        if hasattr(data, "points"):
            self.points = data.points
        else:
            self.points = None
        self.name = data.name

        size = (self.radius * 2, self.radius * 2)
        self.add(Avatar([StaticAnimation("idle", Image("wheel.png", alpha=1, resize=size))]))
Exemple #2
0
 def __init__(self):
     InteractiveObject.__init__(self)
     self.direction = 0
     self.caller = None
     self.destination = None
Exemple #3
0
 def __init__(self):
     InteractiveObject.__init__(self)
     self.state = 0
     self.key = None
Exemple #4
0
 def __init__(self):
     InteractiveObject.__init__(self)
     self.state = 0
     self.time = 0