The javascript speed war that’s currently taking place amongst browsers may soon bring a javascript engine fast enough to have a pyromancer-like roguelike running in a browser.


That would be really cool. No more compilation/deployment/platform issue. I’ve been keeping an eye on browsers javascript speed for a few years, hoping that it would become fast enough one day for this :

Well, that day seems really imminent…

8 comments so far

Add Your Comment
  1. That…is quite impressive.
    I haven’t tested the Chrome experiments yet, but I am quite impressed to see this done on a browser natively.
    Is this due to the current rage of Javascript engines like TraceMonkey, V8 and so?
    If so, I am now officially interested on what JS code can do…

  2. I don’t understand what you mean by “hoping that it would become fast enough”; those linked sites seem smooth in my FF3 (Ubuntu linux, core 2 duo 2ghz) and I’m sure Chrome would have no problem.

  3. well on my Athlon 64 2800+ they’re like 2 or 3 fps. And they just basic demo. Add AI, pathfinding and they’ll collapse…

  4. So, can we consider this to be a ‘sneak peak’ at a libtcod-js library? I’d certainly be very interested in such a library, as would a lot of people.

    And be sure to check out the betas /nightlies for a lot of current browsers – Javascript speed increases are somewhat in the order of 200-300 times what they were this time last year, but it’s only just now that they’re starting to trickle down to the end user, and even then, they’re not all in yet.

  5. Well, as I said, I don’t think the speed is high enough now, even on the latest Firefox 3.1 beta, but yeah, a libtcod-js would be awesome.

    I’m not using C++ because I think it’s the best language. There’s simply nothing that can produce something as portable and as fast. Developing TCOD in javascript would be so much better, especially since awesome tools like firebug exist…

  6. Interesting news:


    The Khronos™ Group today announced an initiative to create an open, royalty-free standard for bringing accelerated 3D graphics to the Web. In response to a proposal from Mozilla, Khronos has created an ‘Accelerated 3D on Web’ working group that Mozilla has offered to chair. This royalty-free standard will be developed under the proven Khronos development process with a target of a first public release within 12 months.

    Now how about a browser-based, OpenGL-accelerated 3D Javascript roguelike? 😀

  7. That sounds pretty hot, but libtcod is dedicated to text-mode games only 😉

  8. I’d love to see a next generation roguelike like the one you are developing living in a browser via javascript, if only because it’s about the only way I’ll be able to play it on a Mac, and because the further ascendancy of javascript will continue to kill off slow, clunky embedded applets.

    There’s already a nice javascript parser for zcode-based interactive fiction (the roguelike’s red-headed third cousin) called parchment. http://code.google.com/p/parchment/