News for hackers. Stuff that matters.
Re:You must learn JavaScript by pzxc on Thursday December 02, 2010 @10:50PM (#1964666)
Don't know what you mean by this comment. There already are plenty of games written exclusively in Javascript. I've written a couple myself. Even if you exclude html5/websockets, it's entirely possible to write a server/client game, even a complex one, just with AJAX (Asynchronous JAVASCRIPT And Xml). And that's not even counting the tons of singleplayer games, hell look at the JS1k and JS10k contests, most if not all of the entries were games.

Edit: or was that sarcasm?

Re:You must learn JavaScript by tlrobinson on Friday December 03, 2010 @02:27AM (#1965095)
He's probably talking about embedding a JavaScript engine within a game to script the lower-level (usually C/C++) game engine, a role that is currently often filled by Lua: http://en.wikipedia.org/wiki/Lua_(programming_language)#Vide...

I wouldn't be surprised if this has been done too, but if it has it's not as popular as Lua.

Re:You must learn JavaScript by ericflo on Friday December 03, 2010 @03:21AM (#1965175)
Yep, exactly. I expect that as node.js rises in popularity in general, JavaScript's use as an embedded game scripting language will rise (possibly at the expense of Lua and Python).

Actually now that I write this, I wonder about the possibility of JavaScript game scripting combined with something capability-aware like Caja for hosted game mods. Could be an interesting area to explore.

Re:You must learn JavaScript by pmjordan on Friday December 03, 2010 @05:21AM (#1965351)
There is a robust implementation of JavaScript for the JVM (Rhino), part of which even ships with Java 6, so scripting a Java-based game seems a straightforward step. On .NET, JScript similarly seems to be an almost first-class citizen (though, unlike Rhino, I've never used it).