私はpygameが初めてです。私はpygameで画像を移動しようとしていましたが、私のコードは失敗しました
import pygame
from pygame.locals import*
img = pygame.image.load('tank.jpg')
white = (255, 64, 64)
w = 640
h = 480
screen = pygame.display.set_mode((w, h))
screen.fill((white))
running = 1
while running:
x = 5
x++
y = 10
y++
screen.fill((white))
screen.blit(img,(x,y))
pygame.display.flip()
pygame.update()
このコードを試して画像を移動しました。しかし、それは私を助けませんでした。