示例#1
0
文件: ball.py 项目: saltire/roverchip
    def __init__(self, level, pos):
        Movable.__init__(self, level, pos)
        
        self.tile = 0, 1
        self.speed = 100

        self.moves_continuously = True
示例#2
0
 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
示例#3
0
 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
示例#4
0
文件: cart.py 项目: saltire/roverchip
 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
示例#5
0
    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
示例#6
0
 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
示例#7
0
文件: dirt.py 项目: saltire/roverchip
 def __init__(self, level, pos):
     Movable.__init__(self, level, pos)
     
     self.tile = 8, 1
示例#8
0
文件: big.py 项目: nickthecoder/itchy
 def __init__(self) :
     Movable.__init__(self)
     
     # A list of Part objects
     self.parts = []