From fdce554007b76c4ea2d3ec5d9119de6a692de7c1 Mon Sep 17 00:00:00 2001 From: happy531 Date: Thu, 24 Mar 2022 17:33:54 +0100 Subject: [PATCH] add trashbin type --- trashbin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trashbin.py b/trashbin.py index 5e23ff2..9e20948 100644 --- a/trashbin.py +++ b/trashbin.py @@ -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