Pygame Translator

I want to be able to use the program in my web browser (and Safari on iOS).
How can i do this?
I believe that you can convert the program to JS and have built-in information telling you when you will find pygame, and then refer to this directory:

C:\python27\lib\site-packages\pygame
+3
source share
6 answers

What you are trying to do is impossible. I had the same plan, but in the end I had to refuse.

My suggestion: Learn JavaScript (a very good tutorial: http://www.codecademy.com/en/tracks/javascript from this site: http://www.codecademy.com ), then use Phaser: https: // phaser. io /

, , Pygame .

+2

, Brython. .

+1

, , python, js. , Pygame Python, SDL. -.

0

. -, Python Javascript, Pygame. Pygame SDL-, .

0

https://github.com/bendmorris/pyj2d

,

Description: The PyJ2D module was modeled using the Pygame commands, allowing you to run scripts encoded in Python / Pygame on a Java virtual machine (JVM) using the Jython interpreter. This allows you to deploy JVM applications without extensive script editing. The current version of the module supports only a subset of the Pygame functions.

0
source

I tried this https://github.com/jggatc/pyjsdl . He works with pajamas http://pyjs.org/ .

0
source

All Articles