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

Implementing the Start view


The Start view is very simple. Think of it as a menu screen that allows the player to start the game or to make changes to how the game works. There's also one component that's not terribly obvious if you haven't played the game yet: the title is animated.

When done, we'll have a view that looks like the following screenshot:

Getting on with it

As always, let's first start with the template in www/html/startView.html. Use the following code:

<html>
<body>
<div class="ui-container">
<div class="game-title">%APP_TITLE%</div>
<div class="game-actions action-group">
<div class="game-play button">%PLAY%</div>
<div class="game-options button">%OPTIONS%</div>
</div>
</div>
</body>
</html>

As templates go, this is nothing new by any stretch of the imagination. There's one thing you should take note of: we've previously used a navigation bar—that's totally absent here and it's on purpose. We...