Ejemplo n.º 1
0
	def __init__(self, world):
		images = load_frames('assets/images/gridmap', 4)

		super(SimpleTileMap, self).__init__(world,
			[
				Tile(images[0], images[0].get_rect(), 'sky',),
				Tile(images[1], images[1].get_rect(), 'grass'),
				Tile(images[2], images[2].get_rect(), 'dirt'),
				Tile(images[3], images[3].get_rect(), 'brick'),
			],
			(
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,0),
	            (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
	            (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1),
        	)
		)
Ejemplo n.º 2
0
	def __init__(self, character):
		super(MegamanShootingAnimation, self).__init__(
			'shooting', load_frames('assets/images/actor/shooting', 6), 500, character
		)
Ejemplo n.º 3
0
	def __init__(self, character):
		super(MegamanFallingAnimation, self).__init__(
			'falling', load_frames('assets/images/actor/falling', 1), 400, character
		)
Ejemplo n.º 4
0
	def __init__(self, character):
		super(MegamanJumpingAnimation, self).__init__(
			'jumping', load_frames('assets/images/actor/jumping', 10), 400, character
		)
Ejemplo n.º 5
0
	def __init__(self, character):
		super(MegamanRunningAnimation, self).__init__(
			'running', load_frames('assets/images/actor/running', 14), 700, character
		)
Ejemplo n.º 6
0
	def __init__(self, character):
		super(MegamanStandingAnimation, self).__init__(
			'standing', load_frames('assets/images/actor/standing', 1), 700, character
		)