<reponame>langulski/Pygame-TransilvanianHunger
import pygame as pg

class Tile(pg.sprite.Sprite):
    def __init__(self,pos,size):
        super().__init__()
        self.image = pg.Surface((size,size))
        self.image.fill('grey')
        self.rect = self.image.get_rect(topleft=pos)
    def update(self,x_shift,y_shift):
        self.rect.x +=x_shift
        self.rect.y +=y_shift

        
import pygame as pg

class Tile(pg.sprite.Sprite):
    def __init__(self,pos,size):
        super().__init__()
        self.image = pg.Surface((size,size))
        self.image.fill('grey')
        self.rect = self.image.get_rect(topleft=pos)
    def update(self,x_shift,y_shift):
        self.rect.x +=x_shift
        self.rect.y +=y_shift