我是 pygame 的新手,我只是想用它编写国际象棋代码,但是我在后台加载时遇到了麻烦我查阅了很多教程,我认为一切都很好,我在做什么花了这么多时间?
import pygame
pygame.init
#create the screen with 800 pixals width and 600 pixals hieght
screen = pygame.display.set_mode((800,600))
# Background
background = pygame.image.load("chessboard.png")
running = True
while running:
#RGB colors
screen.fill((234,0,0))
#background image
screen.blit(background,(0,0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()
RISEBY
相关分类