add trashbin type
This commit is contained in:
parent
5bf26e7207
commit
fdce554007
@ -2,13 +2,16 @@ import pygame.image
|
|||||||
|
|
||||||
class trashbin(pygame.sprite.Sprite):
|
class trashbin(pygame.sprite.Sprite):
|
||||||
|
|
||||||
def __init__(self,x,y,img):
|
def __init__(self,x,y,img, type):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
# dimensions
|
# dimensions
|
||||||
self.width = 16
|
self.width = 16
|
||||||
self.height = 16
|
self.height = 16
|
||||||
|
|
||||||
|
# trashbin type
|
||||||
|
self.type = type
|
||||||
|
|
||||||
# spawn coords
|
# spawn coords
|
||||||
self.x = x
|
self.x = x
|
||||||
self.y = y
|
self.y = y
|
||||||
|
Loading…
Reference in New Issue
Block a user