self margin

This commit is contained in:
Waylon Walker 2023-01-02 16:44:20 -06:00
parent 62efe4b2b9
commit 12f4af2b5e
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -172,7 +172,7 @@ class HotBarItem:
self.img,
(self.scale - self.margin * 2, self.scale - self.margin * 2),
),
(self.pos * self.scale + self.margin, margin),
(self.pos * self.scale + self.margin, self.margin),
)
font = pygame.font.SysFont(None, self.scale)
qty = str(self.game.game.inventory[self.type])
@ -188,6 +188,10 @@ class HotBarItem:
)
# class Menu():
# def __init__(self, game:Game):
class LightSource:
def __init__(self, game: Game, surf, img, center):
self.surf = surf