-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResultMenu.py
26 lines (20 loc) · 930 Bytes
/
ResultMenu.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Astral - A VSRG (Vertical Scrolling Rhythm Game) developed in Python3.
# This program can be found on GitHub: https://github.com/RenderingByte/Astral
# This file serves as a way to display the results screen.
# Imports
import Globals
import pygame
pygame.init()
def Display(window, clock, font):
"""
Update the window to display the Result Menu.
:param window: The window object (declared in Astral.py)
:param clock: The clock object (declared in Astral.py)
:param font: The font object (declared in Astral.py)
"""
if Globals.states.showfailed:
if not pygame.mixer.Channel(3).get_busy(): pygame.mixer.Channel(3).play(Globals.sounds.failsound)
window.blit(Globals.images.failimg, (0, 0))
else:
if not pygame.mixer.Channel(3).get_busy(): pygame.mixer.Channel(3).play(Globals.sounds.passsound)
window.blit(Globals.images.passimg, (0, 0))