forked from erhs-53-hackers/Asteroid-Colliders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.py
34 lines (30 loc) · 834 Bytes
/
example.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
27
28
29
30
31
32
33
34
import pygame
import dumbmenu as dm
pygame.init()
# Just a few static variables
red = 255, 0, 0
green = 0,255, 0
blue = 0, 0,255
size = width, height = 340,240
screen = pygame.display.set_mode(size)
screen.fill(blue)
pygame.display.update()
pygame.key.set_repeat(500,30)
choose = dm.dumbmenu(screen, [
'Start Game',
'Options',
'Manual',
'Show Highscore',
'Quit Game'], 64,64,None,32,1.4,green,red)
if choose == 0:
print ("You choose 'Start Game'.")
elif choose == 1:
print ("You choose 'Options'.")
elif choose == 2:
print ("You choose 'Manual'.")
elif choose == 3:
print ("You choose 'Show Highscore'.")
elif choose == 4:
print ("You choose 'Quit Game'.")
pygame.quit()
exit()