Playing Dink (and your D-Mods!) on the Web
Hi,
I was working on making a large app run in the browser with the new WebAssembly technology,
and I realized porting GNU FreeDink in the browser would be an easier first task
Here is a first version that can play Dink, in your browser, and there's also a button for locally loading your D-Mod:
> play.freedink.org <
(WebAssembly, fast, recent browser needed)
> play.freedink.org/?dmod=dinknetwork.com/download/DMOD.dmod <
(to play a D-Mod that you don't have on your disk)
This is a first version that can be further polished and I'm working on making things smoother.
! I'm much interested in beta-testers to check these with various browsers and devices. !
How does it work for you / your D-Mod? What's your browser & device?
Screenshots:
https://www.gnu.org/software/freedink/screenshots/web.png
Palette tricks supported
https://www.gnu.org/software/freedink/screenshots/webboatdink.png
https://www.gnu.org/software/freedink/screenshots/weblyna.png
Alternate version:
play.freedink.org/asmjs/
(ASM.js version, slower but should work on older browsers)
I was working on making a large app run in the browser with the new WebAssembly technology,
and I realized porting GNU FreeDink in the browser would be an easier first task

Here is a first version that can play Dink, in your browser, and there's also a button for locally loading your D-Mod:
> play.freedink.org <
(WebAssembly, fast, recent browser needed)
> play.freedink.org/?dmod=dinknetwork.com/download/DMOD.dmod <
(to play a D-Mod that you don't have on your disk)
This is a first version that can be further polished and I'm working on making things smoother.
! I'm much interested in beta-testers to check these with various browsers and devices. !
How does it work for you / your D-Mod? What's your browser & device?

Screenshots:
https://www.gnu.org/software/freedink/screenshots/web.png
Palette tricks supported

https://www.gnu.org/software/freedink/screenshots/webboatdink.png
https://www.gnu.org/software/freedink/screenshots/weblyna.png
Alternate version:
play.freedink.org/asmjs/
(ASM.js version, slower but should work on older browsers)
Wow Beuc, this is really great! Cutting edge tech you're using here.
I only played a little bit of the main storyline and it appeared to work great.
My immediate suggestion is to let the gameplay area use up more of the browser window space. More of a full-screen browser mode.
Is the source code for this available anywhere? I can contribute.
I only played a little bit of the main storyline and it appeared to work great.
My immediate suggestion is to let the gameplay area use up more of the browser window space. More of a full-screen browser mode.
Is the source code for this available anywhere? I can contribute.
The regular Alt+Enter shortcut still works but we can add a button in the interface.
Source code is available - see link at the bottom!
I'm thinking of providing a Docker with the proper build environment.
Source code is available - see link at the bottom!

Sound works now
And I added a button to install that little key-67.c for... efficiency-seeking people

And I added a button to install that little key-67.c for... efficiency-seeking people

Very impressive! This is a great addition to the Dink Smallwood universe!
Updated with a couple fixes
> play.freedink.org <
Also I just checked that palette tricks are still supported (and accelerated!), ensuring 100% compatibility with D-Mods:
https://www.gnu.org/software/freedink/screenshots/webboatdink.png
https://www.gnu.org/software/freedink/screenshots/weblyna.png

> play.freedink.org <
Also I just checked that palette tricks are still supported (and accelerated!), ensuring 100% compatibility with D-Mods:
https://www.gnu.org/software/freedink/screenshots/webboatdink.png
https://www.gnu.org/software/freedink/screenshots/weblyna.png
Since things are going smoothly I switched to optimized versions.
And added the Fullscreen button
And added the Fullscreen button

Thanks Sparrowhawk!
Quit game does not work (Dink just stays frozen)
Noted, currently the game stays alive even when we stop playing, this needs to be properly closed.
I tried quickly with Broken Windows, there's something funny with the colour
Oh, incomplete graphics conversion with truecolor BMPs. Fixed and added to the test suite!
(Btw, somehow I had missed this D-Mod, it's nice ^^)
Quit game does not work (Dink just stays frozen)
Noted, currently the game stays alive even when we stop playing, this needs to be properly closed.
I tried quickly with Broken Windows, there's something funny with the colour
Oh, incomplete graphics conversion with truecolor BMPs. Fixed and added to the test suite!
(Btw, somehow I had missed this D-Mod, it's nice ^^)
Beuc,
Any possibility of putting this project on github? I would like to follow along with development.
I understand though if you aren't a fan of git or github.
Any possibility of putting this project on github? I would like to follow along with development.
I understand though if you aren't a fan of git or github.
Oh man it works really well in-browser, so much Dink related releases recently. releases recently related

Thanks Quiztis!
@Bunniemaster I'll see about setting up a mirror in a bit, right now a DFArc issue is taking my time :/
@Bunniemaster I'll see about setting up a mirror in a bit, right now a DFArc issue is taking my time :/
Good work making Dink more available and free Beuc
I will try the browser version with the best DMOD, Grasp of Darkness, soon.

I'm sure this is the best D-Mod EVER
I started adding translations!

I started adding translations!
Is it just on my end, or are some of the sounds different? I can't tell if they're just different sounds or cutting off randomly. And some of the title screen/menu/inventory sounds not playing at all? Music sounds slightly different too.
Or maybe it's just a general FreeDink thing that I'm not aware of, cause I'm way too behind times and still use v1.08 mostly.
Or maybe it's just a general FreeDink thing that I'm not aware of, cause I'm way too behind times and still use v1.08 mostly.
FreeDink uses different music and sound effects due to copyright issues.
Yeah, check https://www.gnu.org/software/freedink/doc/sounds/.
A lot more free sounds are available these days, it would be worth making a code sprint of sort to deal with that issue once and for all.
A lot more free sounds are available these days, it would be worth making a code sprint of sort to deal with that issue once and for all.
I tried it in Seamonkey and only the ASM.js version worked. It still works incredibly well though. The only irritating thing was that I couldn't figure out how to get it to release the keyboard and cursor after I got bored.
Thanks for testing and the feedback!
Normally key/mouse are released when you press "Escape" (there should be a message from the browser stating so when they are grabbed). Probably room for improvement here.
Normally key/mouse are released when you press "Escape" (there should be a message from the browser stating so when they are grabbed). Probably room for improvement here.
@Sparrowhawk fixed "Quit"
+ can now download a D-Mod from the Web - e.g. from here - rather than from the disk (since last week, top post updated).

+ can now download a D-Mod from the Web - e.g. from here - rather than from the disk (since last week, top post updated).
Now can start/stop the full game without needing to reload the page.
Useful if e.g. the game asks to disable truecolor mode.
Useful if e.g. the game asks to disable truecolor mode.
I added a button to export your savegames
Let me know if that works for you.

Let me know if that works for you.