wrox press professional html5 mobile game development (2012)

554 636 0
wrox press professional html5 mobile game development (2012)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Google and Apple All is not rosy in the HTML5 game development picture, however Different devices have different capabilities, levels of performance, and screen resolutions, and navigating the dangerous waters of mobile HTML5 game development requires some careful sailing That’s where this book comes in Its goal is to provide a pragmatic roadmap to build mobile games in HTML5, covering both the possibilities... exciting realm of HTML5 mobile game development presents and I hope you’ll jump aboard INTRODUCTION WHO THIS BOOK IS FOR This book is for anyone who wants to build interactive games in a browser using standards-based, plug-in-free technology It has a focus on mobile game development because this is where HTML5 has an advantage versus competing web technologies such as Flash, but the games you build... GOING MOBILE 51 Introduction 51 Adding Touch Controls 51 Drawing Controls Responding to Touch Events Testing on Mobile x 52 54 56 CONTENTS Maximizing the Game Setting the Viewport Resizing the Canvas Adding to the iOS Home Screen 57 57 57 60 Adding a Score 60 Making It a Fair Fight 61 Summary 64 Part II: MOBILE HTML5 CHAPTER 4: HTML5 FOR MOBILE 67 Introduction 67 Capturing a Brief History of HTML5. .. tablets than ever before, and games (in addition to social networks) account for a significant portion of that time Smartphones and tablets are significantly displacing dedicated mobile gaming devices from Nintendo and Sony With HTML5, game developers now have technology that has the capability to reach more people than ever imaginable from a single codebase HTML5 mobile game development is currently a... hardware-accelerated Canvas support Many of the games run on older versions of Android, but performance will be limited xxiv INTRODUCTION HOW THIS BOOK IS STRUCTURED This book is comprised of seven sections, each with a special purpose to teach you about mobile HTML5 game development Part I, “Diving In,” teaches you over the course of three chapters how to build a mobile HTML5 game from scratch that runs on any... required to get a game up and running quickly without pulling in any external libraries Part II, Mobile HTML5, ” takes a step back and covers in detail the state of HTML5 on mobile devices along with a couple of libraries—jQuery and Underscore.js—that you use to build games in the rest of the book Part III, “JavaScript Game Dev Basics,” first walks you through how to inspect and debug your game and how... History of HTML5 68 Understanding How HTML5 Grew Up “Different” Looking Toward HTML6? HTML7? Nope, Just HTML5 Going to the Spec Differentiating the HTML5 Family and HTML5 Using HTML5 The Right Way Having Your Cake and Eating It, Too Sniffing Browsers Determining Capabilities, Not Browsers Enhancing Progressively Polyfilling in the Gaps Considering HTML5 from a Game Perspective 68 68 69 69 70 70 70... feel right at home The only major stumbling block is that HTML5 Game development is more disjointed than Flash Make sure you pay close attention to Chapter 7, “Learning About Your HTML5 Game Development Environment,” because that chapter shows you how to inspect and debug JavaScript, so you don’t feel lost when something goes wrong in your game Browsers have powerful script-debuggers built in, so you... where this book comes in Its goal is to provide a pragmatic roadmap to build mobile games in HTML5, covering both the possibilities and limitations of the medium If HTML5 game development on the desktop is still in its infancy, mobile HTML5 game development is still embryonic The possibilities to do great things are within reach, but the first smash success in the medium is still to be seen Getting into... less is required to generate a splash than in other established mediums HTML5 games, especially mobile ones, have budgets that are tiny fractions of the millions of dollars that standard PC and console games have, and yet they have the opportunity to create a smash hit in an instant due to the viral nature of the web Mobile HTML5 games have even more potential for explosive growth because they can be . class="bi x0 y0 w1 h0" alt="" PROFESSIONAL HTML5 Mobile Game Development Pascal Rettig Professional HTML5 Mobile Game Development Published by John. country’s oldest monthly HTML5 Game Development meetups in Boston each month and runs the HTML5 Game Development news site html5gamedevelopment.org. ABOUT

Ngày đăng: 21/03/2014, 12:02

Từ khóa liên quan

Mục lục

  • Professional HTML5 Mobile Game Development

    • About the Author

    • Acknowledgments

    • Contents

    • Introduction

    • Part I: Diving In

      • Chapter 1: Flying Before You Walk

        • Introduction

        • Building a Complete Game in 500 Lines

        • Getting Started with Canvas

        • Creating Your Game’s Structure

        • Loading the SpriteSheet

        • Creating the Game Object

        • Adding a Scrolling Background

        • Putting in a Title Screen

        • Adding a Protagonist

        • Summary

        • Chapter 2: Making It a Game

          • Introduction

          • Creating the GameBoard Object

          • Firing Missiles

          • Adding Enemies

          • Refactoring the Sprite Classes

          • Handling Collisions

Tài liệu cùng người dùng

Tài liệu liên quan