Определите, для чего используется следующий фрагмент программы:

defmoveRight (self, pixels):

self.rect.x + = пикселей


defmoveRight (self, pixels):

self.rect.x - = пикселей whilechek:

для события в pygame.event.get

(): ifevent.type pygame.QUIT:

check = False elifevent.key = =

pygame.KEYDOWN: ifevent.key

== pygame.K_x: check = False

keys = pygame.key.get_pressed

() if keys [pygame.K_LEFT] :

playerCar.moveLeft (10) если

ключи [pygame.K_RIGHT]:

playerCar.moveRight (10)​
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.