Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By : Kerri Shotts
Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By: Kerri Shotts

Overview of this book

<p>PhoneGap allows you to use your existing knowledge of HTML, CSS, and JavaScript to create useful and exciting mobile applications.<br /><br />This book will present you with 12 exciting projects that will introduce you to the dynamic world of app development in PhoneGap. Starting with their design and following through to their completion, you will develop real-world mobile applications. Each app uses a combination of core PhoneGap technologies, plugins, and various frameworks covering the necessary concepts you can use to create many more great apps for mobile devices.</p>
Table of Contents (21 chapters)
PhoneGap 3.x Mobile Application Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What do we build?


In this project, we're going to put together a game called Cave Runner. Okay, it won't win any prizes based on the originality of the game (or the title), nor will it win "the best game of the year" prize. But it's amusing and has a lot of potential to expand in various ways, so it serves as a good base, especially for the quick and diverting category many games try to fit into.

What does it do?

To accomplish this, we're going to heavily rely upon the HTML5 Canvas, which is the only way we're going to achieve anything even approaching 60 frames per second (the target for most games). Even so, only recent and powerful devices are going to meet this target, so we will also need to use some mathematics in order to create a game that isn't reliant on hitting 60 fps. If the game's timing relied solely on hitting 60 fps, 30 fps would feel as if we're playing the game in slow motion. Instead, we have to act like we're running at 60 fps—even if we can't display that many frames...