Найти - Пользователи
Полная версия: Прошу помочь с pygame
Начало » Центр помощи » Прошу помочь с pygame
1
ZeroKiryu
Высвечивается проблема в первой строчке: “line 1, in <module> import pygame”, пробовали записать по другому, типа “ from python import pygame * ”, но все равно ошибка.

Вот код программы:
 import pygame
import random
WIDTH = 480
HEIGHT = 600
FPS = 60
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
green = (0,255,0)
blue = (0,0,255)
    
pygame.init()
pygame.mixer.init()
screen = pygame.display.set_mode((WIDTH,HEIGHT))
pygame.display.set_caption("My Game")
clock = pygame.time.Clock()
running = True
while running:
    clock.tick(FPS)
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
        
    screen.fill(red)
    pygame.display.flip()
pygame.quit()
PEHDOM
ZeroKiryu
Высвечивается проблема в первой строчке
не должно, приведите полностью текст ошибки.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB