Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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!

share|improve this answer
    
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 –  JThistle Aug 27 '14 at 19:50

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.

share|improve this answer
    
Thank you for the information, now I'm using unity so I don't need this information anymore. Thank you for the effort. –  JThistle Jan 13 at 12:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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