forked from s464965/WMICraft
14 lines
410 B
Python
14 lines
410 B
Python
import pygame
|
|
|
|
from common.helpers import parse_cord
|
|
|
|
|
|
class Tile(pygame.sprite.Sprite):
|
|
def __init__(self, position, image, group, tile_type=' '):
|
|
super().__init__(group)
|
|
self.image = image
|
|
self._layer = 0
|
|
position_in_px = (parse_cord(position[0]), parse_cord(position[1]))
|
|
self.rect = self.image.get_rect(topleft=position_in_px)
|
|
self.tile_type = tile_type
|