News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Web-based Multiplayer Stunts

Started by dividuum, November 11, 2026, 01:02:20 PM

Previous topic - Next topic

dividuum

Hey. I've been playing Stunts and even wrote a terrain editor in QuickBasic back then. In hindsight I realize it was the Mindscape '90 version and there was a hidden editor already :)

Recently I've been toying around adding multiplayer to old single-player games to see what AI is capable of now. A result is a, hopefully tasteful, version of Stunts with 8 player multiplayer mode right in a browser. It runs the original binary in an WASM based x86/DOS emulator. So it's more like DOSBox, not one of those recompilations. Various instructions are patched inside the x86 address space to transfer control into the surrounding emulator code. Similarly memory locations are directly modified and x86 functions are directly called to make this possible.

Feel free to try it out here: https://dividuum.de/stunts/

dreadnaut

Hello dividuum! Nice to see another flavour of Stunts appearing on the internet 👏

The games runs nice and smooth (at least here) and there's a nice selection of tracks. Thank you for including some ZCT ones ;D

Interesting to see randomly assigned names. Makes sense in a way. I hung around long enough for "Flash" to appear, and I enjoyed a couple of head to head races 👍 Love the "vote to restart" mechanic, which is a useful signal to understand if others are interested in racing again. And the high scores updating live.

If I can ask for two things:
- the aspect ratio is a bit squished, would it be difficult to render the game at 4:3?
- would be great to have a small chat on the side: no history needed, just to say hello or coordinating; it could even throw away all URLs to avoid spam.

We might need to add a list of Stunts variants to the portal 🤔

dividuum

I explicitly opted for random names (including the original opponents) and didn't include a chat to leave no way for abuse. Maybe some standard snippets like 'gg', 'again?', 'follow me', 'cya' and others via buttons might work.

Sorry about the aspect ratio. Fixed that for another 320x200 game but forgot here. Fixed now.

That was me playing. Fun to see it work in a real competition (which you're clearly better at) :-)

dreadnaut

Nice improvements! The 'Follow' button works really well, and in general track selection and jumping into a race are really smooth.

Does "Follow" also match the other racer's car?

Sorry for dropping off suddenly a few times, I'm on baby duty 👶

dividuum

Quote from: dreadnaut on November 13, 2026, 11:50:14 PMDoes "Follow" also match the other racer's car?

It did not. It just followed them into a race. But that's a good idea: It is now possible to click the leader's car in the player list which switches to their car model while trying to match the color of your previous car. I also added audio cues to signal leaving or joining players during a race.

QuoteSorry for dropping off suddenly a few times, I'm on baby duty 👶

:-)

dividuum

Should now also work on mobile devices, both in portrait and landscape mode and can be added the home screen. Happy racing :)

dreadnaut

Neat! If you call a day and time, we might collect a few folks for a larger test.

One more feature request: replay-handling drivers like me hit Esc by reflex sometimes, which in Stunts opens the replay interface, but in your version abandons the race. Would it be acceptable to add some friction to that? For example: hit Esc during a race brings up a "Are you sure" dialog; pressing N or Esc continues the race, pressing Y or Enter returns to the main menu.