Пример #1
0
 def __init__ (self, target_map_name = 'my-map',
               target_x = 0.0, target_y = 0.0, **kwargs):
     GameObject.__init__(self, **kwargs)
     Lockable.__init__(self, **kwargs)
     Scriptable.__init__(self, **kwargs)
     Trapable.__init__(self, **kwargs)
     self.attributes.append("door")
     self.target_map_name = target_map_name
     self.target_pos = (target_x, target_y)
     self.blocking = True