Files
toads/modules/GameMenu.py
T

18 lines
474 B
Python

import sys
from pygame import *
def menu():
init()
DISPLAYPORT = display.set_mode((480, 600))
display.set_caption('The Lonely Shooter')
background = image.load('styles/background.jpeg').convert()
DISPLAYPORT.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()