All posts tagged html5

Angel Code’s BMFont plugin for enchant.js

In Alien Bio Lab, the HTML5 game we are currently working on, we use a bitmap font for our score label.

Enchant.js has a bitmap font plugin called draw.text.js, but I find it to be too strict, having to format the font atlas to be exactly like the one in the example.

I don’t want to do this manually (who does?), and usually I’d go with my favorite bitmap font creator, Angel Code’s BMFont.

BMFont is very easy to use, popular and supported by many engines, as far as I’ve seen. So I think it would be nice if we have a plugin that will let enchant.js support this as well.

Based on draw.text.js, I’ve created bmfont.enchant.js, a plugin that will let you use a bitmap font generated from BMFont in your enchant.js application. Since the plugin use xmlparser to parse the font information, you have to test it on your local or non-local server, otherwise it won’t be able to load the xml file.

It’s still an alpha version so I’m sure there’s a lot of room for improvement. I’ll add text alignment in the next version, but if anyone would like to add anything or modify it, feel free to use it in anyway you want!

Hello from Coffee Dog Games

Hello everyone! Hima’s here. Seeing as game development in HTML5 for mobile is still new, I think it would be great to write about how we work on our games as well as sharing our experience on developing game for mobile web browser.

We have been using enchantjs , a wonderful game framework for javascript. The framework is from Japan, and while it has an English website, the documentation on the English part is still lacking. This is unfortunate, considering how good and easy to use the framework is!

Currently, the framework has been used to create more than three hundred games already. You can play some of those games on

The framework is also free and opensource, with MIT or LGPL license. It also works well on all mobile platform, as far as we have tried.

Hopefully what we do here would help promoting this framework to the English speaking developers!