示例#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
示例#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)])
示例#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
示例#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)])
示例#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)])