Food buttons
This commit is contained in:
parent
8c82091236
commit
09ba5f8edf
2 changed files with 12 additions and 6 deletions
|
@ -6,15 +6,19 @@ import random
|
|||
|
||||
class GamePlay:
|
||||
surface: pygame.SurfaceType
|
||||
play_button: components.Button
|
||||
play_button: components.SurfaceButton
|
||||
ham_button: components.SurfaceButton
|
||||
tomato_button: components.SurfaceButton
|
||||
lettuce_button: components.SurfaceButton
|
||||
top_button: components.SurfaceButton
|
||||
|
||||
def __init__(self, surface):
|
||||
self.surface = surface
|
||||
self.play_button = components.Button("Switch", (250, 50))
|
||||
self.ham_button = components.Button('resources/sprites/sub_ham.png', (100, 100))
|
||||
self.tomato_button = components.Button('resources/sprites/sub_tomato.png', (100, 100))
|
||||
self.lettuce_button = components.Button('resources/sprites/sub_lettuce.png', (100, 100))
|
||||
self.top_button = components.Button('resources/sprites/sub_top.png', (100, 100))
|
||||
self.play_button = components.text_button("Switch", (250, 50), font=resources.FONT)
|
||||
self.ham_button = components.SurfaceButton(resources.SUB_TOMATO_SPRITE)
|
||||
self.tomato_button = components.SurfaceButton(resources.SUB_TOMATO_SPRITE)
|
||||
self.lettuce_button = components.SurfaceButton(resources.SUB_TOMATO_SPRITE)
|
||||
self.top_button = components.SurfaceButton(resources.SUB_TOMATO_SPRITE)
|
||||
self.status = "Counter"
|
||||
self.newOrder = True
|
||||
self.sandwichmade = False
|
||||
|
|
|
@ -13,3 +13,5 @@ FONT_XL = pygame.font.Font(RESOURCES_DIR / "Jersey10-Regular.ttf", size=100)
|
|||
|
||||
SPLASH_SCREEN_IMAGE = pygame.image.load(RESOURCES_DIR / "splash.png")
|
||||
|
||||
SUB_TOMATO_SPRITE = pygame.image.load(RESOURCES_DIR / "sprites" / "sub_tomato.png")
|
||||
TICKET_TOMATO_SPRITE_2X = pygame.transform.scale_by(SUB_TOMATO_SPRITE, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue