def __init__(self, level, pos): Movable.__init__(self, level, pos) self.tile = 0, 1 self.speed = 100 self.moves_continuously = True
def __init__(self, standing_image, walk_left_images, walk_right_images): Movable.__init__(self, standing_image) self.walk_right_images = walk_right_images self.walk_left_images = walk_left_images self.standing_image = standing_image self.is_player = False self.dead = False
def __init__(self, level, pos, facing): Movable.__init__(self, level, pos, facing) self.tile = 7, 1 # facing = diagonal dir the mirror is facing: 0-3, clockwise from northeast # out_dirs = the two cardinal dirs the mirror is facing self.out_dirs = facing, (facing + 1) % 4
def __init__(self, level, pos): Movable.__init__(self, level, pos) self.tile = 1, 1 self.speed = 100 self.is_sinkable = False self.moves_continuously = True
def __init__( self, parent, dx, dy ) : Movable.__init__(self) self.parent = parent self.offsetx = dx self.offsety = dy self.speed = parent.speed self.parent.parts.append( self ) x = parent.square.x + dx y = parent.square.y + dy self.square = parent.square.grid.getSquare(x, y) self.square.occupant = self
def __init__(self, x, y, dx, dy, rotation, world_width, world_height): Movable.__init__(self, x, y, dx, dy, world_width, world_height) self.mRotation = rotation
def __init__(self, level, pos): Movable.__init__(self, level, pos) self.tile = 8, 1
def __init__(self) : Movable.__init__(self) # A list of Part objects self.parts = []