11 lines
271 B
Python
11 lines
271 B
Python
# -*- coding: utf-8 -*-
|
|
import pygame
|
|
import sys
|
|
from pygame.locals import *
|
|
class Cell(pygame.sprite.Sprite):
|
|
def __init__(self,x,y):
|
|
pygame.sprite.Sprite.__init__(self)
|
|
self.x = x
|
|
self.y = y
|
|
self.rect = pygame.Rect(x*64,y*64, 64,64)
|