¿Cómo hacer interfaces gráficas en phyton para mi videojuego? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

¿Cómo hacer interfaces gráficas en phyton para mi videojuego?

Es que nunca me explican cómo hacer cosas gráficas en mi curso de python, pero veo que quienes estudian en otros programas pueden hacer cosas como calculadoras con botones o un plataformero. Una prueba es: https://sololearn.com/compiler-playground/WvZckYco2tTF/?ref=app

25th Jan 2024, 1:32 AM
Yariel Rodriguez
Yariel Rodriguez - avatar
1 Answer
+ 2
The code you linked, is written in Javascript. Sololearn can let you run interactive graphical codes, only in the Web sandbox. Web browsers can only execute Javascript or WASM (Webassembly) code. But there are ways to convert Python to these languages, for example Brython is a Javascript transpiler from Python. https://sololearn.com/compiler-playground/WzWJI1lw02MY/?ref=app If you have a desktop computer, there are some Python libraries you can use to build this type of 2D games: "pygame" or the more modern "arcade". https://realpython.com/pygame-a-primer https://realpython.com/asteroids-game-python https://realpython.com/arcade-python-game-framework https://realpython.com/platformer-python-arcade
25th Jan 2024, 4:12 AM
Tibor Santa
Tibor Santa - avatar