SZI2019SmieciarzWmi/DataModels/Grass.py
2019-04-01 12:48:11 +02:00

8 lines
319 B
Python

import pygame
from config import CELL_SIZE
class Grass( 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 )
self.image = pygame.image.load("Resources/Images/Image_Grass.png")