Building Games for Firefox OS
Free!
With Membership
$7.99
Suggested price

Building Games for Firefox OS

A quick guide about creating casual 2D games with HTML5

About the Book

Join us in the quest for building games for Firefox OS, the new mobile operating system by Mozilla. Empowered by this books practical approach you will learn thru examples how to develop a full game from the beginning all the way to the distribution in the Firefox Markeplace.

Recommended Readers

All those interested in developing games with web technologies. Everyone that wants to seize the opportunity to blaze their own path on a new mobile market

Knowledge Requirements

To better enjoy this book the reader should have intermediate knowledge of HTML, CSS e Javascript.

This is an early release. The book still going thru revisions and more content will be added.

About the Author

Andre Garzia
Andre Garzia

Andre Alves Garzia is a mobile application developer and web developer. He has been a speaker in many conferences and workshops talking about Firefox OS such as MobileConf, RioJS, Campus Party Recife and FISL

Bundles that include this book

Free!
With Membership
$9.99
Bundle Price

Table of Contents

    • Warning
    • Acknowledgments
    • This book is in perpetual beta
    • Me, myself, and I
    • Want to know more about Firefox OS Dev?
    • How this book came to be
    • Staying up to date
    • Source code
    • Donations
    • How to contact the author
    • Cover Illustration
    • Who should read this book
    • Feedback & Pull Requests
    • Version history
  • Introduction
    • Firefox OS
    • Fighting Against Proprietary Silos
    • Cross-platform Technologies At Its Heart
    • The Platform That HTML5 Deserves
    • Accessing The Hardware Using The WebAPI
    • Freedom To Develop And Distribute
    • Firefox OS & Game Development
    • Why Develop Games?
    • Summary
  • Setup For Firefox OS Development
    • The Gecko Engine
    • What applications do you need?
    • App Manager Setup
    • Installing the Firefox OS Simulator
    • Summary
  • The App Manager
    • Launching The App Manager
    • Adding Apps
    • Running your app
    • Updating your app
    • Debugging
    • Testing apps on a real device
    • Connecting with a Firefox OS device
    • Summary
  • About Games
    • What Are Games Anyway?
    • What Makes a Good Game?
    • Can’t You Give Me a Straight Answer?
    • What Should I Do Then?!
    • Keeping a Game Design Journal
    • Summary
  • Our Game
    • Introducing Foxnoid
    • A Good Introductory Game
    • Room For Experimentation
    • A Look At The Big Picture
    • Our Plan
    • Why Phaser
    • Summary
  • Setting Up Our Game
    • Application Types
    • The Application Manifest
    • There Is No Place Like Home
    • Adding The Phaser Framework
    • The CSS
    • The HTML
    • Our Application Manifest
    • Summary
  • Initializing Foxnoid
    • A Bit About Game Lifecycle
    • Game States
    • What Should Our Initialization Handle?
    • Initializing Phaser
    • Summary
  • Managing Assets
    • Defining Atmosphere
    • Planing For Different Form Factors
    • Planning Our Game Assets
    • Building The Preload Game State
    • Summary
  • Gameloop
    • What Is The Essential Part of a Game?
    • Thinking About Our Game Loop
    • Initializing Our World
    • Simulating The World
    • Summary
  • Handling Input
    • The Action That Drives The Game
    • Touch Input Considerations
    • Keyboard Input
    • Gamepad Input
    • Controlling Our Game
    • Summary
  • Winning or Losing
    • Game Over Scenario
    • Game Win Scenario
    • Summary
  • Engaging Players
    • Making The Game A Journey
    • Creating New Levels For Our Game
    • Summary
  • The Firefox Marketplace
    • Checklist before even thinking about sending an app to the marketplace
    • Preparing your app for submission
    • Submitting your app to the marketplace
    • Summary
  • Appendix 1: Useful Links
  • Appendix 2: Javascript Books
  • Appendix 3: Game Development Books
  • Appendix 4: Firefox OS Related Links
  • Appendix 5: Gameloop Chapter Code
  • Appendix 6: Input Chapter Code
  • Appendix 7: Levels Chapter Code

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub