The Dink Network

Playing Dink (and your D-Mods!) on the Web

May 25th 2018, 06:36 PM
farmer.gif
Beuc
Peasant He/Him France
 
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)
May 26th 2018, 01:25 AM
pillbug.gif
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.
May 26th 2018, 02:59 AM
farmer.gif
Beuc
Peasant He/Him France
 
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.
May 26th 2018, 10:37 AM
farmer.gif
Beuc
Peasant He/Him France
 
Sound works now
And I added a button to install that little key-67.c for... efficiency-seeking people
May 26th 2018, 11:36 AM
spike.gif
SlipDink
Peasant He/Him United States bloop rumble
2nd generation. No easy way to be free. 
Very impressive! This is a great addition to the Dink Smallwood universe!
May 27th 2018, 02:27 PM
farmer.gif
Beuc
Peasant He/Him France
 
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
May 28th 2018, 04:22 PM
farmer.gif
Beuc
Peasant He/Him France
 
Since things are going smoothly I switched to optimized versions.
And added the Fullscreen button
May 28th 2018, 05:45 PM
dinkdead.gif
Very nice!

Quit game does not work (Dink just stays frozen)

I tried quickly with Broken Windows, there's something funny with the colour:
1
2
3
May 29th 2018, 05:55 PM
farmer.gif
Beuc
Peasant He/Him France
 
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 ^^)
May 30th 2018, 12:54 AM
pillbug.gif
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.
May 31st 2018, 02:44 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Oh man it works really well in-browser, so much Dink related releases recently. releases recently related
May 31st 2018, 03:55 AM
farmer.gif
Beuc
Peasant He/Him France
 
Thanks Quiztis!

@Bunniemaster I'll see about setting up a mirror in a bit, right now a DFArc issue is taking my time :/
May 31st 2018, 05:16 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Good work making Dink more available and free Beuc I will try the browser version with the best DMOD, Grasp of Darkness, soon.
June 1st 2018, 06:21 PM
farmer.gif
Beuc
Peasant He/Him France
 
I'm sure this is the best D-Mod EVER

I started adding translations!
June 5th 2018, 10:35 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
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.
June 5th 2018, 12:35 PM
death.gif
RangerLord
Peasant He/Him Hungary bloop
The nation above all 
FreeDink uses different music and sound effects due to copyright issues.
June 6th 2018, 03:19 AM
farmer.gif
Beuc
Peasant He/Him France
 
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.
June 7th 2018, 01:00 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
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.
June 7th 2018, 04:00 AM
farmer.gif
Beuc
Peasant He/Him France
 
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.
June 18th 2018, 10:56 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Stickied
June 29th 2018, 10:35 AM
farmer.gif
Beuc
Peasant He/Him France
 
@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).
July 6th 2018, 02:44 AM
farmer.gif
Beuc
Peasant He/Him France
 
Now can start/stop the full game without needing to reload the page.
Useful if e.g. the game asks to disable truecolor mode.
July 11th 2018, 04:34 AM
farmer.gif
Beuc
Peasant He/Him France
 
I added a button to export your savegames
Let me know if that works for you.
December 15th 2018, 05:40 PM
farmer.gif
Beuc
Peasant He/Him France
 
Following the overwhelming feedback for this feature I immediately added another button to import your savegames