Book Image

PhoneGap By Example

Book Image

PhoneGap By Example

Overview of this book

Table of Contents (17 chapters)
PhoneGap By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Crazy Bubbles - Your First HTML5 Mobile Game

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