SZI2019SmieciarzWmi/DataModels/Road.py

9 lines
318 B
Python
Raw Normal View History

import pygame
from config import CELL_SIZE
class Road( pygame.sprite.Sprite ):
def __init__( self, x, y ):
pygame.sprite.Sprite.__init__( self )
self.rect = pygame.Rect( x * CELL_SIZE, y * CELL_SIZE, CELL_SIZE, CELL_SIZE )
2019-06-04 23:16:42 +02:00
self.image = pygame.image.load("Resources/Images/Image_Road.png")