RenPy in the browser... with PYGJS?
Posted: Tue Jun 20, 2017 1:55 am
I have developed a rough draft of something I call PYGJS, basically it's Pygame in the Browser.
I know RenPy is based on Python and as I understood it at one point or another (though I may be wrong) it used pygame as one of it's libraries.
Using Brython (Python in the browser) from http://brython.info/, a pygame like JavaScript library GameJS from http://gamejs.org/ , as well as opentype.js, a joystick javascript library, and Howler.js I was able to make a frankenstein of a creation:
Python 3 running in a browser (or NodeWebkit) that can import pygame (or basically a recreation of pygame that really wraps itself around GameJS) and use pygame functionality like you might use it outside of the browser.
It's NOT an emulator, you DO have to reprogram certain parts of your pygame for it to work in the browser version, but much of pygame's functionality is kept in tact (except for a few unsupported functions). For information on my thoughts and journey here check out: http://wunk.me/announcing-pygjs-pygame- ... odewebkit/ For the complete code for this abomination go to my github repository: https://github.com/asherwunk/pygjs
In any case, could this possibly be a step towards getting Python based (and potentially pygame based) RenPY to the browser? I don't know if there's any other utility that does that, but I'm unaware of it.
I programmed this as a work of love by hand, but if you're interested in helping encourage me I do have a Ko-Fi link (https://ko-fi.com/A18224XC) and a patreon (https://www.patreon.com/asherwolfstein)
For more information I'll keep a page on my blog updated with future information (all it has now is the readme) at: http://wunk.me/programming-projects/pygjs
Asher
(http://wunk.me/)
I know RenPy is based on Python and as I understood it at one point or another (though I may be wrong) it used pygame as one of it's libraries.
Using Brython (Python in the browser) from http://brython.info/, a pygame like JavaScript library GameJS from http://gamejs.org/ , as well as opentype.js, a joystick javascript library, and Howler.js I was able to make a frankenstein of a creation:
Python 3 running in a browser (or NodeWebkit) that can import pygame (or basically a recreation of pygame that really wraps itself around GameJS) and use pygame functionality like you might use it outside of the browser.
It's NOT an emulator, you DO have to reprogram certain parts of your pygame for it to work in the browser version, but much of pygame's functionality is kept in tact (except for a few unsupported functions). For information on my thoughts and journey here check out: http://wunk.me/announcing-pygjs-pygame- ... odewebkit/ For the complete code for this abomination go to my github repository: https://github.com/asherwunk/pygjs
In any case, could this possibly be a step towards getting Python based (and potentially pygame based) RenPY to the browser? I don't know if there's any other utility that does that, but I'm unaware of it.
I programmed this as a work of love by hand, but if you're interested in helping encourage me I do have a Ko-Fi link (https://ko-fi.com/A18224XC) and a patreon (https://www.patreon.com/asherwolfstein)
For more information I'll keep a page on my blog updated with future information (all it has now is the readme) at: http://wunk.me/programming-projects/pygjs
Asher
(http://wunk.me/)