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

protected by Community Jun 28 '17 at 2:56

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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