<reponame>dwlcreat/dsf<gh_stars>1-10
'''
Function:
	场景元素类
Author:
	Charles
微信公众号:
	Charles的皮卡丘
'''
import pygame


'''砖墙'''
class Brick(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load(imagepath)
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''铁墙'''
class Iron(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load(imagepath)
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''冰'''
class Ice(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''河流'''
class River(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''树'''
class Tree(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position
'''
Function:
	场景元素类
Author:
	Charles
微信公众号:
	Charles的皮卡丘
'''
import pygame


'''砖墙'''
class Brick(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load(imagepath)
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''铁墙'''
class Iron(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load(imagepath)
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''冰'''
class Ice(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''河流'''
class River(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position


'''树'''
class Tree(pygame.sprite.Sprite):
	def __init__(self, position, imagepath, **kwargs):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.Surface((24, 24))
		for i in range(2):
			for j in range(2):
				self.image.blit(pygame.image.load(imagepath), (12*i, 12*j))
		self.rect = self.image.get_rect()
		self.rect.left, self.rect.top = position
Function: 	场景元素类 Author: 	Charles 微信公众号: 	Charles的皮卡丘 砖墙 铁墙 冰 河流 树