add trashbin type

This commit is contained in:
happy531 2022-03-24 17:33:54 +01:00
parent 5bf26e7207
commit fdce554007

View File

@ -2,13 +2,16 @@ import pygame.image
class trashbin(pygame.sprite.Sprite):
def __init__(self,x,y,img):
def __init__(self,x,y,img, type):
super().__init__()
# dimensions
self.width = 16
self.height = 16
# trashbin type
self.type = type
# spawn coords
self.x = x
self.y = y