![Magdalena Wilczyńska](/assets/img/avatar_default.png)
Improved logs *stats are displayed every 2 seconds, *debug logs are visible; Added interaction between GC, house and landfill; Collecting trash bug;
18 lines
440 B
Python
18 lines
440 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))
|
|
|
|
def get_coordinates(self):
|
|
return self.x, self.y
|
|
|
|
def get_type(self):
|
|
return self.type
|