• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
+ 1

How to move rectangle in pygame, such that it moves horizontally when pressing right or left on keyboard and it moves vertically when pressing up or down?

Pygame

pythontoinhowandonorkeyboarditthatwhenrightupmoveleftpygame,suchhorizontallyrectanglemovespressingvertically
27th May 2017, 11:14 PM
Hesham Emara
4 Antwoorden
+ 2
Here is a tutorial form the official site of pygame: https://www.pygame.org/docs/tut/MoveIt.html
27th May 2017, 11:27 PM
Ulisses Cruz
Ulisses Cruz - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes