Adapting Javascript game for mobile

Posted by Cardin on Game Development See other posts from Game Development or by Cardin
Published on 2012-12-07T03:09:40Z Indexed on 2012/12/07 5:22 UTC
Read the original article Hit count: 238

Filed under:
|

I'm currently developing a Javascript web game for desktop users. It is a sort of tower-defense game that relies on mouse input only, developed on canvas using EaselJS. In the future, or perhaps simultaneously, I would like to adapt the game for mobile devices.

I can see at least 3 potential areas in shifting from desktop to mobile: 1. resolution size and UI rearrangement, 2. converting mouse events to touch events, 3. distribution as native app wrapper or mobile Web.

What would be the best strategy to facilitate this desktop to mobile conversion? For example, should I try to code the game for both platforms, or port the game UI over to mobile by branching the code base. Should I just publish on the mobile Web or wrap the game in a native app framework? And if I were to code for both platforms using the same codebase, should I register both click and touch events, or remap click events to touch using dispatchEvent?

© Game Development or respective owner

Related posts about JavaScript

Related posts about mobile