Добавил определение случайного ивента и стабилизацию везения.
Почистил код. Удалил лишнее.
This commit is contained in:
+2
-2
@@ -4,10 +4,10 @@ from pygame import *
|
||||
|
||||
def menu():
|
||||
init()
|
||||
DISPLAYSURF = display.set_mode((480, 600))
|
||||
DISPLAYPORT = display.set_mode((480, 600))
|
||||
display.set_caption('The Lonely Shooter')
|
||||
background = image.load('styles/background.jpeg').convert()
|
||||
DISPLAYSURF.blit(background, background.get_rect())
|
||||
DISPLAYPORT.blit(background, background.get_rect())
|
||||
display.update()
|
||||
while True:
|
||||
events = event.poll()
|
||||
|
||||
Reference in New Issue
Block a user