Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 554 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
554
Dung lượng
8,15 MB
Nội dung
[...]... Google and Apple All is not rosy in the HTML5gamedevelopment 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 gamedevelopment 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 gamedevelopment 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: MOBILEHTML5 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 gamedevelopment 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 mobileHTML5gamedevelopment Part I, “Diving In,” teaches you over the course of three chapters how to build a mobileHTML5game 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 HTML5Gamedevelopment is more disjointed than Flash Make sure you pay close attention to Chapter 7, “Learning About Your HTML5GameDevelopment 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 HTML5gamedevelopment on the desktop is still in its infancy, mobileHTML5gamedevelopment 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 MobileHTML5 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