Untitled
Anonymous
plain_text
02/11/2026 6:34 PM
896 B
19
Indexable
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()
run = True
while run:
window.blit(background, (0,0))
for e in event.get():
if e.type == QUIT:
run = False
clock.tick(144)
display.update()
Editor is loading...
Leave a Comment