SZI2019SmieciarzWmi/sprites/landfill.py
2019-03-25 17:41:24 +01:00

12 lines
318 B
Python

import pygame
import sys
from sprites.cell import Cell
class Landfill(Cell):
def __init__(self, x, y, type):
Cell.__init__(self, x, y)
types = ["plastic", "glass", "metal"]
self.type = types[type]
self.image = pygame.image.load("images/landfill_%s.png" % (self.type))