Япишу игру на языке питон и мне выдает ошибку вот код и ошибка
import pygame
pygame.init()
win = pygame.display.set_mode((1000, 600))
pygame.display.set_caption("cubes game")
x = 50
y = 500
width = 40
height = 60
speed = 5
isjump = false
jumpcount = 10
run = true
while run:
pygame.time.delay(50)
for event in pygame.event.get():
if event.type == pygame.quit:
run = false
keys = pygame.key.get_pressed()
if keys[pygame.k_left] and x > 5:
x -= speed
if keys[pygame.k_right] and x < 1000 - width - 5:
x += speed
if not(isjump):
if keys[pygame.k_up] and y > 5:
y -= speed
if keys[pygame.k_down] and y < 600 - height - 5:
y += speed
if keys[pygame.k_space]:
isjump = true
else:
if jumpcount > = -10:
if jumpcount < 0:
y += (jumpcount ** 2) / 2
else:
y -= (jumpcount ** 2) / 2
jumpcount -= 1
else:
isjump = false
jumpcount = 10
win.fill((0,0,0))
pygame.draw.rect(win, (0,0,255), (x, y, width ,height))
pygame.display.update()
pygame.quit()
вот ошибка
file "c: \python\game.py", line 41
y -= (jumpcount ** 2)
^
taberror: inconsistent use of tabs and spaces in indentation
С отступом проблема, добавь отступ перед y= -= (jumpCount ** 2)