Live data from Hacker News

Dune II ported to the Web with Emscripten

play-dune.com

41–50 of 67 posts

Re: Dune II ported to the Web with Emscripten

#41
post #22
post #4

Emscripten is fantastic. https://github.com/kripken/emscripten LLVM -> JavaScript. The possibilities are many, wish I had more time to play with this kind of stuff. I believe it's how http://repl.it and similar sites work. Tangentially, aside from porting games, http://luatut.com/crash_course.html is one of the better uses [of Emscripten] I've seen. Press Escape and a console drops down. Handy way to learn a language…

repl.it uses biwascheme, a scheme interpreter written in javascript

They also use Empythoned (CPython compiled with Emscripten, https://github.com/replit/empythoned) and Emscripted-Ruby (Ruby compiled with Emscripten, https://github.com/replit/emscripted-ruby) and a version of Lua compiled with Emscripted (https://github.com/replit/jsrepl/tree/master/extern/lua), among others.

Re: Dune II ported to the Web with Emscripten

#42
post #4

Emscripten is fantastic. https://github.com/kripken/emscripten LLVM -> JavaScript. The possibilities are many, wish I had more time to play with this kind of stuff. I believe it's how http://repl.it and similar sites work. Tangentially, aside from porting games, http://luatut.com/crash_course.html is one of the better uses [of Emscripten] I've seen. Press Escape and a console drops down. Handy way to learn a language…

See my port of my little scripting language (NCD) to Emscripten: http://badvpn.googlecode.com/svn/wiki/emncd.html

Re: Dune II ported to the Web with Emscripten

#43
post #4

Emscripten is fantastic. https://github.com/kripken/emscripten LLVM -> JavaScript. The possibilities are many, wish I had more time to play with this kind of stuff. I believe it's how http://repl.it and similar sites work. Tangentially, aside from porting games, http://luatut.com/crash_course.html is one of the better uses [of Emscripten] I've seen. Press Escape and a console drops down. Handy way to learn a language…

OpenTTD in Emscripten is particularly impressive: http://play-ttd.com/

Re: Dune II ported to the Web with Emscripten

#44
Oh wow, this takes me back.

My first job was at Virgin Games as an artist. I got a beta version of Dune II, and played it obsessively.

The artwork Westwood Studios created was very inspiring - their artists were very good and developed some wonder palettes.

Re: Dune II ported to the Web with Emscripten

#45

Awesome. I'm not so excited about the tiny 320x200 viewport though. Why not zoom it to fit the browser window? Strangely, they seem to have managed to disable the browser's built-in zooming. So yeah, fun, but squinty.

Sometimes browser zooming breaks pixel calculations... yeah, one more edge case to the already long list of edge cases.

Re: Dune II ported to the Web with Emscripten

#46
FYI, there is a post from the author, describing some game designs and listing existing bugs (unfortunately, Russian only) - http://habrahabr.ru/post/159501/

In short, he says that sync model used in OpenDune ran very badly in JS, so he had to replace it with async model (thus introducing some bugs).

He also lists hotkeys:

Attack, Move, Harvest, Retreat, Guard, Tab, Build

Re: Dune II ported to the Web with Emscripten

#49
post #21

Earlier quoted context omitted.

And thank god for the original C&C. I still think the soundtrack was brilliant: http://www.youtube.com/watch?v=kZAaq5JIhW0

I was always partial to Red Alert: http://www.youtube.com/watch?v=Tb-gI_pFog0

Rapidly heading off on a tangent, but there was an AMA by the creator of the RA soundtrack on Reddit[1] quite recently. I had no idea Hell March was that well-known (and I finally found out what the correct lyric[s] was!)

[1] http://www.reddit.com/comments/11n1xk/c6o41e1/

Post reply on HN