From 9ee0cf1f5caf51d4f6c6d9e140b2d7119a82ff1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Wilczy=C5=84ska?= Date: Mon, 25 Mar 2019 17:47:04 +0100 Subject: [PATCH] Fixed syntax --- sprites/garbage_collector.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sprites/garbage_collector.py b/sprites/garbage_collector.py index 579202d..e1e11af 100644 --- a/sprites/garbage_collector.py +++ b/sprites/garbage_collector.py @@ -1,6 +1,6 @@ import pygame from sprites.cell import Cell, CELL_SIZE -from +from sprites.house import House from config import PLAY_HEIGHT, PLAY_WIDTH class Garbage_collector(Cell): @@ -29,9 +29,7 @@ class Garbage_collector(Cell): elif(destination is 'y'): self.y = value self.update() -PLASTIC = 0 # blue -GLASS = 1 # green -METAL = 2 # yellow + def collect_trash(self, house): rubbish = house.get_rubbish_data() to_collect = rubbish