1st Edition

HTML5 Game Engines App Development and Distribution

By Dan Nagle Copyright 2014
    216 Pages 120 B/W Illustrations
    by A K Peters/CRC Press

    216 Pages
    by A K Peters/CRC Press

    This book is an introduction to development with HTML5 game engines, an in-depth look at some popular engines, downloadable example projects for each engine, and techniques on how to package and distribute the final app to all the major platforms.

    HTML5 Game Development
    Introduction to HTML5
    The HTML5 Standard
    HTML5, the New Living Standard
    HTML5 Stands Alone
    Source Code
    A Touch of Game Design
    HTML5 Hello World Canvas
    Pong Game Board
    Pong Game Loop
    Pong Game Refactoring

    HTML5 Development Strategies
    Development Strategies
    Browser Wars?
    HTML5 Sound and Music
    Testing on Mobile Devices
    Optimizing the Page for Mobile
    Chrome Developer Tools

    HTML5 Game Engines
    Crafty
    Source Code
    Introduction
    Crafty Pong
    HTML5 Game Graphics

    EaselJS
    Source Code
    Introduction
    Tic-Tac-Toe
    Setup
    Hello EaselJS
    PreloadJS for EaselJS
    EaselJS Sprites
    Tic-Tac-Toe Implementation

    Impact
    Source Code
    Introduction
    Setup
    Hello Impact
    MechaJet Implementation
    Weltmeister
    main.js
    Player Entity
    Level 2

    Turbulenz
    Source Code
    Introduction
    WebGL
    Installation
    From Source
    Hello Turbulenz App
    Turbulenz Game Structure
    Sky Marble Implementation
    Other Turbulenz Tips

    HTML5 App Distribution
    Chrome Web Store
    Source Code
    Introduction
    Chrome Web Store
    From Web App to Chrome App

    Apple iOS App Store
    Source Code
    Introduction
    Device Provisioning
    Ejecta
    More Notes
    Preparing for the App Store

    Google Play Store
    Source Code
    Introduction
    CocoonJS

    Facebook App
    Source Code
    Introduction
    Setup
    App Registration
    Tic-Tac-Toe on Facebook

    Windows and Mac Native
    Source Code
    Introduction
    node-webkit
    Windows Distribution
    Mac Distribution

    Final Notes
    Plugins
    Desktop Stores
    Monetization
    Signing Off

    Tools Appendix

    Bibliography

    Index

    Biography

    Since graduating magna cum laude in computer engineering from Mississippi State University in 2003, Dan Nagle has worked with numerous software platforms and architectures and has written apps for Android, Windows, Mac, Linux, iOS, numerous web apps, network servers, and pure embedded C.
    For about four years, he owned and operated a web company focused on website hosting and custom game development. Before that, he was an electrical engineer developing embedded systems.
    Currently, Dan Nagle is a senior software engineer writing control software and web interfaces for network devices distributing HD video. He can be reached through his website at http://DanNagle.com/