Android Layer-List

When you’re working with graphic assets in Android, it’s nearly impossible to avoid importing bitmap files in your project. And that’s ok because for a complicated design (with many shadows and textures for instance) it’s the right solution. Trying to make these graphics work with multiple screens though will eventually get ugly because you’ll have to use 3 or 4 versions for each bitmap. It makes sense then to use any non-bitmap solution where you can. Android’s layer-list is one of these powerful solutions.

Continue reading

Multi-Screen CSS

It’s been some time now that I’m working on a simple game for mobile devices and I’ve chosen Phonegap to build it. Usually when you dive into a new technology and start learning it you discover a lot of problems and you become extremely happy when you solve them. So in this post I will try to describe how I’ve managed to organize my CSS code to make the application adjust to different devices and at the same time minimize the changes I have to make to other parts of the application (like HTML and Javascript). It’s a fairly new problem I’ve encountered so a lot might change to my solution but if that happens I can always post a second article.

Continue reading