Exemple #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),
        	)
		)
Exemple #2
0
	def __init__(self, character):
		super(MegamanShootingAnimation, self).__init__(
			'shooting', load_frames('assets/images/actor/shooting', 6), 500, character
		)
Exemple #3
0
	def __init__(self, character):
		super(MegamanFallingAnimation, self).__init__(
			'falling', load_frames('assets/images/actor/falling', 1), 400, character
		)
Exemple #4
0
	def __init__(self, character):
		super(MegamanJumpingAnimation, self).__init__(
			'jumping', load_frames('assets/images/actor/jumping', 10), 400, character
		)
Exemple #5
0
	def __init__(self, character):
		super(MegamanRunningAnimation, self).__init__(
			'running', load_frames('assets/images/actor/running', 14), 700, character
		)
Exemple #6
0
	def __init__(self, character):
		super(MegamanStandingAnimation, self).__init__(
			'standing', load_frames('assets/images/actor/standing', 1), 700, character
		)