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.
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
- Miko-Class Veteran
- Posts: 989
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
Is there any way to emulate Cython code in a web browser?
This is of course, if I'm understanding VPython correctly, which, to be honest, is a little confusing.
- Ren'Py Creator
- Posts: 14827
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
What's likely to work is webassembly, and the threading work that's part of it. When it takes off, it seems like it will be "easy" to port CPython over to it, and get into the browser that way.
(When was the last time you backed up your game?)
Software > Drama
I don't know much of the internal construction of RenPy to be honest, this was just a wild conjecture, but I imagine something could potentially be possible.
I believe __getattr__ would work fine in Brython, but you'd have to check with Brython.
But yeah, in the end, you do have to restructure the code to be more "event driven" than you might in pygame where most people use pygame.event.wait() or an infinite while loop.
Users browsing this forum: No registered users