O'Reilly logo

Creating Mobile Apps with Sencha Touch 2 by Bryan P. Johnson, John Earl Clark

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Game On

A quick browse through any of the online app stores quickly shows that the largest segment of the mobile applications market belongs to gaming. While most programmers would not think of JavaScript when it comes to developing games, it is actually well suited for a wide variety of games, including turn-based strategy games.

These games require only limited animation and can easily be built using the Sencha Touch Framework and the Sencha.io platform for communication. For turn-based strategy games, we only need to do a few basic things such as:

  • Build a game board
  • Build the individual pieces
  • Handle moves
  • Handle the outcomes when one piece attacks another
  • Handle communication of the moves between players at the end of a turn
  • Define the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required