WMICraft/models/tile.py
2022-04-10 20:28:50 +02:00

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