Esempio n. 1
0
 def __init__(self):
     MapObject.__init__(self, MapObject.OBSTACLE,
                        image_file=charset_path('chest.png'),
                        image_index=0, facing=UP,
                        basic_animation=[[0]])
     self.closed = True
     self.filled = True
     self.shapeshift = 0
Esempio n. 2
0
 def __init__(self, index):
     MapObject.__init__(self,
                        MapObject.OBSTACLE,
                        image_file='test16_charset.png',
                        image_index=index)
     for dir in [LEFT, DOWN, RIGHT, UP]:
         self.movement_behavior.movements.extend(
             [Wait(30), ForcedStep(dir)])
Esempio n. 3
0
 def __init__(self, closed=True):
     MapObject.__init__(self, MapObject.OBSTACLE,
                        image_file=charset_path('chest.png'),
                        image_index=0,
                        basic_animation=[[0]])
     if closed:
         self.facing = UP
     self.closed = closed
Esempio n. 4
0
 def __init__(self, index):
     MapObject.__init__(self, MapObject.OBSTACLE, image_file="test16_charset.png", image_index=index)
     for dir in [LEFT, DOWN, RIGHT, UP]:
         self.movement_behavior.movements.extend([Wait(30), ForcedStep(dir)])
Esempio n. 5
0
 def __init__(self):
     MapObject.__init__(self, MapObject.OBSTACLE,
                        image_file='man_undies.png')
     self.movement_behavior.movements.extend([Wait(30), ForcedStep(UP),
                                              Wait(30), ForcedStep(DOWN)])