Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
655 B
2
Indexable
Never
import pygame
 
pygame.init()
screen = pygame.display.set_mode((400, 600))
clock = pygame.time.Clock()
FPS = 30

bg = pygame.image.load('bg.png').convert_alpha()
ship = pygame.image.load('ship.png').convert_alpha()

X_ship = 150
Y_ship = 500
speed = 5

game_run = True
while game_run:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            game_run = False
    
Укажите свой ответ
    
 -= 
Укажите свой ответ
    

    screen.blit(

    
, (0, 0))
    screen.blit(ship, (X_ship, 

    
))
    
    pygame.display.flip()
    clock.tick(FPS)
pygame.quit()
Leave a Comment