-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmygame2.py
25 lines (25 loc) · 893 Bytes
/
mygame2.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
import pygame
import sys
pygame.init()
window=pygame.display.set_mode([640,480])
pygame.display.set_caption("Team JhaneVhiel")
font=pygame.font.Font("freesansbold.ttf",32)
#font2=pygame.font.Font("HARNGTON.TTF",60)
while True:
events=pygame.event.get()
def TitleScreen(window,font):
textColor=pygame.Color(216, 137, 184)
text=font.render("Team JhaneVhiel:",False,textColor)
textColor2=pygame.Color(216, 137, 184)
text2=font.render("Jane Claudette Alambra",False,textColor2)
textColor3=pygame.Color(216, 137, 184)
text3=font.render("Ma. Elvira Oco",False,textColor3)
window.blit(text,[0,0])
window.blit(text2,[50,64])
window.blit(text3,[50,96])
for event in events:
if (event.type==pygame.QUIT):
pygame.quit()
sys.exit()
TitleScreen(window,font)
pygame.display.update()