9 lines
264 B
Python
9 lines
264 B
Python
import pygame
|
|
|
|
|
|
class Tile(pygame.sprite.Sprite):
|
|
def __init__(self, position, image, group, tile_type=' '):
|
|
super().__init__(group)
|
|
self.image = image
|
|
self.rect = self.image.get_rect(topleft=position)
|
|
self.tile_type = tile_type |