5
\$\begingroup\$

I have a Pygame game, and I was wondering if there was any way to embed it into a webpage to make it easily playable, or if there is a games website that accepts Pygame games.

EDIT: I am now using Unity and am not after the answer anymore, but please answer if you want as it could help others.

\$\endgroup\$
6
\$\begingroup\$

You could look at Skulpt.org which provides a completely brower-based implementation of PyGame. However I do not know what external APIs PyGame uses and which are supported by Skulpt.

Edit: it seems Skulpt also has WebGL bindings so this should be very possible!

\$\endgroup\$
  • \$\begingroup\$ How exactly could I use Skulpt to help me embed Pygame and it's modules and assets in a webpage (sorry, I'm new to Skulpt and WebGL). Thanks \$\endgroup\$ – JThistle Aug 27 '14 at 19:50
0
\$\begingroup\$

While poking around looking for PyGame GUI toolkits I came across these two libraries: PyJ2D: http://gatc.ca/projects/pyj2d/ PyJSDL: http://gatc.ca/projects/pyjsdl/

The both seem to allow the execution of PyGame scripts in a browser, the first through Jython and a Java applet and the second through Javascript and HTML5.

I've never used either but they seem to be what you are after.

\$\endgroup\$
  • \$\begingroup\$ Thank you for the information, now I'm using unity so I don't need this information anymore. Thank you for the effort. \$\endgroup\$ – JThistle Jan 13 '15 at 12:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.