Untitled

Anonymous
plain_text
02/11/2026 6:33 PM
872 B
21
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()

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