SZI2019SmieciarzWmi/sprites/cell.py

11 lines
271 B
Python
Raw Normal View History

2019-03-19 11:47:23 +01:00
# -*- coding: utf-8 -*-
import pygame
2019-03-19 10:08:38 +01:00
import sys
from pygame.locals import *
2019-03-19 11:47:23 +01:00
class Cell(pygame.sprite.Sprite):
2019-03-19 10:08:38 +01:00
def __init__(self,x,y):
2019-03-19 11:47:23 +01:00
pygame.sprite.Sprite.__init__(self)
2019-03-19 10:08:38 +01:00
self.x = x
self.y = y
self.rect = pygame.Rect(x*64,y*64, 64,64)