Emscripten is fantastic.
<a href="https://github.com/kripken/emscripten" rel="nofollow">https://github.com/kripken/emscripten</a><p>LLVM -> JavaScript.
The possibilities are many, wish I had more time to play with this kind of stuff.<p>I believe it's how <a href="http://repl.it" rel="nofollow">http://repl.it</a> and similar sites work.<p>Tangentially, aside from porting games, <a href="http://luatut.com/crash_course.html" rel="nofollow">http://luatut.com/crash_course.html</a> is one of the better uses [of Emscripten] I've seen. Press Escape and a console drops down. Handy way to learn a language.
I'm sure this site will be taken offline for copyright infringement almost immediately, but it really is a decent recreation of the original. It's also historically significant: Dune II is to the real-time strategy genre what Wolfenstein 3D is to the first-person-shooter: not necessary the very first example ever, but the first to achieve notable popularity, and the progenitor of most of the following examples.
For anyone interested in playing Dune II natively I highly recommend Dune Legacy[0] - an open source implementation which
I personally found much better than OpenDUNE, which the link is based on.<p>[0] <a href="http://sourceforge.net/apps/mediawiki/dunelegacy/index.php?title=Main_Page" rel="nofollow">http://sourceforge.net/apps/mediawiki/dunelegacy/index.php?t...</a>
Oh wow, this takes me back.<p>My first job was at Virgin Games as an artist. I got a beta version of Dune II, and played it obsessively.<p>The artwork Westwood Studios created was very inspiring - their artists were very good and developed some wonder palettes.
Funny, I've been replaying Dune 2 over the past week and a half. Despite the controls being somewhat clunky (no selecting multiple units, your units won't defend themselves in a lot of cases, etc.) this game has <i>character</i> and <i>charm</i>, not to mention hours and hours of gameplay. I have been hoping that games like this, King's Bounty, Settlers, XCom, and others from that era would show up for mobile platforms. A lot of them would work really well on a touchscreen device.
Awesome. I'm not so excited about the tiny 320x200 viewport though. Why not zoom it to fit the browser window?<p>Strangely, they seem to have managed to disable the browser's built-in zooming.<p>So yeah, fun, but squinty.
I played this game a lot a few years ago :).<p>It amazing/annoying how different the UI is from the modern games. For example to move a unit you must click the "move" button and the click the place where you want to go. There are a million of details that make modern games easier to play.
played a lot of Dune II in programming class back in the days. Also got caught a couple of times. Learned two thing you can't teach in a class room, culture and how to slack like a pro
FYI, there is a post from the author, describing some game designs and listing existing bugs (unfortunately, Russian only) - <a href="http://habrahabr.ru/post/159501/" rel="nofollow">http://habrahabr.ru/post/159501/</a><p>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).<p>He also lists hotkeys:<p><i>A</i>ttack, <i>M</i>ove, <i>H</i>arvest, <i>R</i>etreat, <i>G</i>uard, <i>T</i>ab, <i>B</i>uild