SZI2019SmieciarzWmi/sprites/landfill.py

11 lines
312 B
Python
Raw Normal View History

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