3 ms·
Flash's general architecture makes it a lot easier to create things like 2D games. You certainly can write great games in JS, but it requires a helluva lot more
by ender7 15y ago
Flash's general architecture makes it a lot easier to create things like 2D games. You certainly can write great games in JS, but it requires a helluva lot more domain knowledge, as well as a lot more tweaking and hackery. Many things that are simple in Flash, such as collision detection, are not in JS.
Flash is essentially a system for moving and manipulating sprites, which fits perfectly with a 2D game. HTML/JS is an overgrown document layout system, and it shows.
- watty 15y agoThis is true. Perhaps competitions like this will help the public realize that Flash isn't dead after all (unlike the countless articles that have appeared on HN and claim this).
- Ogre 15y agoThere is a port of Box2D to Javascript (http://box2d-js.sourceforge.net/ http://box2d-js.sourceforge.net/). I don't know what state it's in, I've only ever used the C++ version personally. Which doesn't negate what you said at all, but like with everything else people do in Javascript, creating games with it will get less annoying over time as more people create things like that. Then there are things like Pyjamas that let me write this silly asteroids game in really just a few hours: http://rumsey.org/space/Space.html http://rumsey.org/space/Space.html. It's written entirely in Python (except it uses Flash for sound effects), but compiled to Javascript. I wrote that a couple of years ago, and haven't really followed Pyjamas since, but it was fun. (and yes I know it's got errors depending on the browser, but it should work in anything but IE. I'm sure if I got a newer Pyjamas and recompiled it it would fix it for newer IE versions too.)
- DanielRibeiro 15y agoYou should see EaselJs[1]. It makes creating games in canvas 2D very easy. The creator, Grant Skinner[2], is very famous on the Flash community, and ported many of Flash concepts to EaselJs. [1] http://easeljs.com/ http://easeljs.com/ [2] https://github.com/gskinner https://github.com/gskinner
- starwed 15y agoThat'll eventually be a non-issue, as js libraries arise that abstract away all that stuff. Right now it seems we're in the phase of tons of scattered libraries, all with their own pros/cons, often written by just one or two folk. But eventually something awesome will appear.
- EastCoastLA 15y agoHTML5 based game engines and frameworks take a look at(https://github.com/bebraw/jswiki/wiki/Game-Engines https://github.com/bebraw/jswiki/wiki/Game-Engines)