xc.js 0.1

I’m finally ready to release something I’ve been working on for a while.

xc.js is a framework for developing 2d games in Javascript. The main backend right now is HTML canvas but there is also a working iOS backend.

The framework is based on a thin compatibility layer that makes it quite easy to port to a new platform. The iOS port took less than a day to get where it is. I plan on porting to Android soon and other platforms are definitely a possibility. The goal of xc.js is to enable games to be written once in Javascript and ported with minimal effort to many platforms.

This is a 0.1 release and, as such, expect bugs and missing functionality. With that said I’m working on it constantly and I’ve already written a couple of complete games with the framework.

If you’re interested, I’d encourage you to head over to www.getxc.org and read some more. You can download the framework to play with but there’s also a neat browser based interactive demo using Mozilla Skywriter. A direct link to the interactive demo is www.getxc.org/try.html.

xc.js is BSD licensed and you can get the source from my github page. If you’re so inclined, please fork it and add cool stuff!

I write all of the framework code in CoffeeScript, a great little language that compiles to Javascript and makes it much nicer to work with. If you have to write a lot of Javascript I’d suggest checking it out.

The framework is pretty simple; there is only graphics functionality. It’s design was largely inspired by Cocos2d’s scene/node hierarchy. There are a lot of things to be done, but big items on my todo shortlist include:

If you just want to see it in action, there’s a demo game on the main page of getxc.org.