добаивл gey menu

This commit is contained in:
2022-12-11 21:53:59 +07:00
parent fca7d11b43
commit 4627e9d0d1
4 changed files with 28 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import sys
from pygame import *
def menu():
init()
DISPLAYSURF = display.set_mode((480, 600))
display.set_caption('The Lonely Shooter')
background = image.load('styles/background.jpeg').convert()
DISPLAYSURF.blit(background, background.get_rect())
display.update()
while True:
events = event.poll()
if events.type == KEYDOWN and events.key == K_RETURN:
break
elif events.type == QUIT:
sys.exit()