Last month after bumping into haXe and Doomed Online, i somehow got the strange idea that i could get flash to play SCUMM games, like ScummVM.
While i did get it working as a proof of concept, there was a really off-putting bug in the image decode routines which meant that any displayed room graphics were a jumbled mess.
Recently though i decided to do a bit of intensive debugging to try and solve the problem. To sum it up, after:
- Turning on the trace output in the Flash debug player
- Telling scvm and hiscumm to dump crucial info their trace logs
- Comparing the output of scvm and hiscumm using diff to see where the differences were
- Modifying the trace output to pinpoint the problem while dealing with script timeout errors.
I managed to fix the decode routines. Now instead of a jumbled mess like this:

You get something more like this:

Which safe to say is much nicer to look at. It’s also as far as i am willing to go with this SCUMM implementation.
With a lot of work put into it, i’m sure it could run Day of the Tentacle or Sam N Max Hit the Road. But there would not be much sense in doing that, except for that 5 seconds of awe after seeing it running in a web browser.
As previously, you can download the hiscumm code for reference here.
