8 lines
230 B
Python
8 lines
230 B
Python
class Animal:
|
|
def __init__(self, x, y, image):
|
|
self.x = x-1
|
|
self.y = y-1
|
|
self.image = image
|
|
|
|
def draw(self, screen ,grid_size):
|
|
screen.blit(self.image, (self.x *grid_size, self.y*grid_size)) |