Ren'Py for the Web

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
Beuc
Newbie
Posts: 8
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Ren'Py for the Web

#1 Post by Beuc » Sun Sep 30, 2018 6:15 am

Hi,

A few month ago I ported the old-style 2D/RPG Dink Smallwood desktop game to the web (https://play.freedink.org/).
Since then I've been experimenting on porting the next best thing in the browser: Ren'Py ;)

After lots of pitfalls and dead-ends, several layers of portability, I'm glad to present a first working tech demo!

Image
https://renpy.beuc.net/demo/


Also I'm freelance/self-employed and I'd very much like to dedicate more time on this so it can be 100% functional and integrated in the standard Ren'Py in the end, so I've setup a Patreon if you want to the project get out [faster] :)

Image
https://www.patreon.com/Beuc


More info on this project at:
https://renpy.beuc.net/

Naturally I'd very much welcome your feedback (does it work for you, what browser...)
Last edited by Beuc on Sun Oct 07, 2018 7:04 am, edited 2 times in total.

User avatar
PyTom
Ren'Py Creator
Posts: 15223
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
Contact:

Re: Ren'Py for the Web - first version

#2 Post by PyTom » Sun Sep 30, 2018 1:42 pm

This is officially one of the coolest things I've ever seen.

Edit: Would you mind pming me, when you get a chance. I'd be interested in how you managed to get Ren'Py running inside the browser, since it seems like you would have had to eliminate the threading from the main loop. I didn't think that would be possible - I'd like to know how you did it, and see if we can integrate these changes into Ren'Py proper so they don't go stale.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Beuc
Newbie
Posts: 8
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the Web - first version

#3 Post by Beuc » Sun Sep 30, 2018 4:39 pm

Thanks!

Glad to hear you're willing to include web-related changes in standard Ren'Py :)

Currently I have mods in lots of components (Ren'Py and non-Ren'Py), I'm progressively isolating and cleaning each so they can be officially included.
(also sent PM with more technical stuff)

User avatar
Beuc
Newbie
Posts: 8
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the Web

#4 Post by Beuc » Sun Oct 07, 2018 7:06 am

Hey,

I made some improvements, now it's faster with Firefox, and there's initial sound support.
I also added the Tutorial for testing.

More importantly, you now can test your own local game in the web player:

Image


Check https://renpy.beuc.net/ , share the news if you like this project, and leave feedback!

User avatar
Beuc
Newbie
Posts: 8
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the Web

#5 Post by Beuc » Sun Oct 14, 2018 2:26 pm

New version uploaded at https://renpy.beuc.net/
- Improve performances (WASM support) for Chrome/Chromium
- Contribute transparency (alpha) fix in official Emscripten
- Start structuring the compilation process to test multiple emscripten versions/patches

Feedback welcome!

User avatar
PyTom
Ren'Py Creator
Posts: 15223
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
Contact:

Re: Ren'Py for the Web

#6 Post by PyTom » Mon Oct 15, 2018 9:02 pm

That really is much nicer in Chrome. I'd say that with the exception of the stuttering in sound, it's rapidly getting playable.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Beuc
Newbie
Posts: 8
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the Web

#7 Post by Beuc » Wed Oct 17, 2018 3:59 pm

Thanks for testing and sharing the feedback, much appreciated.
I myself get audio jitter at game interactions in Chrome, and normally not in Firefox (except sometimes when it happens all the time).

After more testing the bottleneck doesn't seem to be the audio decoding, but simply the rest of Ren'Py taking too long.
Due to a limitation in today's WebAudio, audio is not completely separate, see this fix attempt.

I plan more testing to see if there's a better way.

Post Reply

Who is online

Users browsing this forum: No registered users