In the previous chapter, you learned how to implement a Cordova application with the Sencha Touch library. You also learned how to implement a web service and integrate it with the Cordova application. This chapter is about building an HTML5 game and packaging it with PhoneGap to run on mobile devices.
In this chapter, we will cover the following topics:
Choosing a game framework
Introduction to Phaser
What is HTML5 Canvas
Planning the game
Generating a Cordova application
Preparing and creating the game
Working with assets
Handling touch events
Implementing game logic