コード例 #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
ファイル: character.py プロジェクト: andy-davies/platformgame
 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
ファイル: mirror.py プロジェクト: saltire/roverchip
 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
ファイル: part.py プロジェクト: nickthecoder/itchy
    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 = []