self margin
This commit is contained in:
parent
62efe4b2b9
commit
12f4af2b5e
1 changed files with 5 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ class HotBarItem:
|
||||||
self.img,
|
self.img,
|
||||||
(self.scale - self.margin * 2, self.scale - self.margin * 2),
|
(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)
|
font = pygame.font.SysFont(None, self.scale)
|
||||||
qty = str(self.game.game.inventory[self.type])
|
qty = str(self.game.game.inventory[self.type])
|
||||||
|
|
@ -188,6 +188,10 @@ class HotBarItem:
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# class Menu():
|
||||||
|
# def __init__(self, game:Game):
|
||||||
|
|
||||||
|
|
||||||
class LightSource:
|
class LightSource:
|
||||||
def __init__(self, game: Game, surf, img, center):
|
def __init__(self, game: Game, surf, img, center):
|
||||||
self.surf = surf
|
self.surf = surf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue