コード例 #1
0
ファイル: grid.py プロジェクト: PeithVergil/angrynerds
	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),
        	)
		)
コード例 #2
0
ファイル: animations.py プロジェクト: PeithVergil/angrynerds
	def __init__(self, character):
		super(MegamanShootingAnimation, self).__init__(
			'shooting', load_frames('assets/images/actor/shooting', 6), 500, character
		)
コード例 #3
0
ファイル: animations.py プロジェクト: PeithVergil/angrynerds
	def __init__(self, character):
		super(MegamanFallingAnimation, self).__init__(
			'falling', load_frames('assets/images/actor/falling', 1), 400, character
		)
コード例 #4
0
ファイル: animations.py プロジェクト: PeithVergil/angrynerds
	def __init__(self, character):
		super(MegamanJumpingAnimation, self).__init__(
			'jumping', load_frames('assets/images/actor/jumping', 10), 400, character
		)
コード例 #5
0
ファイル: animations.py プロジェクト: PeithVergil/angrynerds
	def __init__(self, character):
		super(MegamanRunningAnimation, self).__init__(
			'running', load_frames('assets/images/actor/running', 14), 700, character
		)
コード例 #6
0
ファイル: animations.py プロジェクト: PeithVergil/angrynerds
	def __init__(self, character):
		super(MegamanStandingAnimation, self).__init__(
			'standing', load_frames('assets/images/actor/standing', 1), 700, character
		)