Untitled
Anonymous
Plain Text
02/11/2026 6:33 PM
652 B
22
Indexable
Never
from pygame import *
# Константи
WIN_WIDTH = 1000
WIN_HEIGHT = 820
FPS = 144
# Файли
img_background = "galaxy.jpg"
img_ship = "rocket.png"
# фонова музика
mixer.init()
mixer.music.load("space.ogg")
#mixer.music.play()
fire_sound = mixer.Sound("fire.ogg")
fire_sound.play()
# вінко
window = display.set_mode((WIN_WIDTH, WIN_HEIGHT))
background = image.load(img_background)
clock = time.Clock()
while True:
window.blit(background, (0,0))
for e in event.get():
if e.type == QUIT:
break
clock.tick(144)
display.update()
Editor is loading...
Leave a Comment