-
Notifications
You must be signed in to change notification settings - Fork 19
/
firstpage.py
67 lines (41 loc) · 1.24 KB
/
firstpage.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
class leaderboard():
winamount = 600000
def __init__(self):
self.name = "Aniket"
p = [leaderboard(),leaderboard()]
def screen1(a,b,c): #for running screen 1
import pygame
global p
import functions
leaderboard.winamount = (int)(c.get())
p[1].name = b.get()
p[0].name = a.get()
pygame.init()
display_width = 1430
display_height = 800
white = (255,255,255)
black = (0,0,0)
yellow = (255,255,0)
red = (255,50,0)
blue = (0,0,255)
green = (0,255,0)
back = (100,10,100)
gameExit = False
while not gameExit:
for event in pygame.event.get():
if event.type == pygame.QUIT:
gameExit = True
x = 615
y1=200
y2=300
y3=400
l=200
h=50
functions.gameDisplay.fill(back)
img = pygame.image.load('images/monopolyimage.png') #adding image
functions.gameDisplay.blit(img, (200,0))
#adding start button
functions.button("START",x,y1,l,h,yellow,blue,"next",red)
#adding quit button
functions.button("QUIT",x,y3,l,h,yellow,blue,"quit1",red)
pygame.display.update()