Fixed syntax
This commit is contained in:
parent
eb4d87e6f3
commit
9ee0cf1f5c
@ -1,6 +1,6 @@
|
|||||||
import pygame
|
import pygame
|
||||||
from sprites.cell import Cell, CELL_SIZE
|
from sprites.cell import Cell, CELL_SIZE
|
||||||
from
|
from sprites.house import House
|
||||||
from config import PLAY_HEIGHT, PLAY_WIDTH
|
from config import PLAY_HEIGHT, PLAY_WIDTH
|
||||||
|
|
||||||
class Garbage_collector(Cell):
|
class Garbage_collector(Cell):
|
||||||
@ -29,9 +29,7 @@ class Garbage_collector(Cell):
|
|||||||
elif(destination is 'y'):
|
elif(destination is 'y'):
|
||||||
self.y = value
|
self.y = value
|
||||||
self.update()
|
self.update()
|
||||||
PLASTIC = 0 # blue
|
|
||||||
GLASS = 1 # green
|
|
||||||
METAL = 2 # yellow
|
|
||||||
def collect_trash(self, house):
|
def collect_trash(self, house):
|
||||||
rubbish = house.get_rubbish_data()
|
rubbish = house.get_rubbish_data()
|
||||||
to_collect = rubbish
|
to_collect = rubbish
|
||||||
|
Loading…
Reference in New Issue
Block a user