Learning HTML5 by Creating Fun Games
暫譯: 透過創建有趣遊戲學習 HTML5

Rodrigo Silveira

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-23
  • 售價: $2,220
  • 貴賓價: 9.5$2,109
  • 語言: 英文
  • 頁數: 374
  • 裝訂: Paperback
  • ISBN: 1849696020
  • ISBN-13: 9781849696029
  • 相關分類: HTML
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Learning should be fun, especially when it comes to getting to grips with HTML5. Each chapter of this book teaches a new concept of HTML5 by helping you develop a relevant game. It’s education without the effort.

Overview

  • Learn the basics of this emerging technology and have fun doing it
  • Unleash the new and exciting features and APIs of HTML5
  • Create responsive games that can be played on a browser and on a mobile device

In Detail

HTML is fast, secure, responsive, interactive, and stunningly beautiful. It lets you target the largest number of devices and browsers with the least amount of effort. Working with the latest technologies is always fun and with a rapidly growing mobile market, it is a new and exciting place to be.

"Learning HTML5 by Creating Fun Games" takes you through the journey of learning HTML5 right from setting up the environment to creating fully-functional games. It will help you explore the basics while you work through the whole book with the completion of each game.

"Learning HTML5 by Creating Fun Games" takes a very friendly approach to teaching fun, silly games for the purpose of giving you a thorough grounding in HTML5. The book has only as much theory as it has to, often in tip boxes, with most of the information explaining how to create HTML5 canvas games. You will be assisted with lots of simple steps with screenshots building towards silly but addictive games.

The book introduces you to HTML5 by helping you understand the setup and the underlying environment. As you start building your first game that is a typography game, you understand the significance of elements used in game development such as input types, web forms, and so on.We will see how to write a modern browser-compatible code while creating a basic Jelly Wobbling Game. Each game introduces you to an advanced topic such as vector graphics, native audio manipulation, and dragging-and-dropping. In the later section of the book, you will see yourself developing the famous snake game using requestAnimationFrame along with the canvas API, and enhancing it further with web messaging, web storage, and local storage. The last game of this book, a 2D Space shooter game, will then help you understand mobile design considerations.

What you will learn from this book

  • Understand why the open web is the best platform to develop for
  • Set up a local web development environment
  • Create DOM-based games such as a typography game using semantic HTML5 tags and CSS3 features
  • Use the new canvas element to create a 2D space shooter game
  • Discover writing portable code while developing a basic Jelly Wobbling Gravity Game
  • Create animations using RequestAninmationFrame while improvising the Snake game.
  • Make your games portable across desktop and mobile devices
  • Get started with WebGL for 3D game development, and with other upcoming HTML5 features and APIs

Approach

By teaching HTML5 by developing exciting games, the reader will see concrete applications for each of the concepts, and will also have a powerful deliverable at the end of each chapter – a fully functional game. We learn the various concepts using very abstract examples – how to model animals, foods, or fictitious machines. This makes learning and understanding a lot easier, and much more enjoyable.

Who this book is written for

If you are are looking to get a good grounding in how to use the new awesome technology that is HTML5, this book is for you. Basic knowledge of HTML and/or HTML5 is welcome, but optional. The book is a friendly and exciting reference for beginners.

商品描述(中文翻譯)

學習應該是有趣的,尤其是在掌握 HTML5 的過程中。本書的每一章都通過幫助您開發相關的遊戲來教授 HTML5 的新概念。這是一種輕鬆的教育方式。

概述
- 學習這項新興技術的基本知識,並享受其中的樂趣
- 發掘 HTML5 的新功能和 API
- 創建可以在瀏覽器和移動設備上玩的響應式遊戲

詳細內容
HTML 是快速、安全、響應式、互動性強且美觀的。它讓您以最少的努力針對最多的設備和瀏覽器。使用最新技術總是很有趣,隨著移動市場的快速增長,這是一個新穎且令人興奮的領域。

《通過創建有趣的遊戲學習 HTML5》將帶您踏上學習 HTML5 的旅程,從設置環境到創建功能完整的遊戲。它將幫助您在完成每個遊戲的過程中探索基礎知識。

《通過創建有趣的遊戲學習 HTML5》採取非常友好的方式來教授有趣、搞笑的遊戲,旨在讓您對 HTML5 有透徹的理解。本書的理論部分僅限於必要的內容,通常以提示框的形式出現,大部分信息解釋如何創建 HTML5 畫布遊戲。您將通過許多簡單的步驟和截圖來構建有趣但上癮的遊戲。

本書通過幫助您理解設置和底層環境來介紹 HTML5。當您開始構建第一個遊戲,即排版遊戲時,您將理解在遊戲開發中使用的元素的重要性,例如輸入類型、網頁表單等。我們將看到如何在創建基本的果凍搖擺遊戲時編寫現代瀏覽器兼容的代碼。每個遊戲都會介紹一個高級主題,例如向量圖形、原生音頻處理和拖放。在本書的後面部分,您將看到自己使用 requestAnimationFrame 和畫布 API 開發著名的貪食蛇遊戲,並進一步增強它,使用網頁消息、網頁存儲和本地存儲。本書的最後一個遊戲,一個 2D 太空射擊遊戲,將幫助您理解移動設計考量。

您將從本書中學到的內容
- 理解為什麼開放網絡是最佳的開發平台
- 設置本地網頁開發環境
- 使用語義 HTML5 標籤和 CSS3 特性創建基於 DOM 的遊戲,例如排版遊戲
- 使用新的畫布元素創建 2D 太空射擊遊戲
- 在開發基本的果凍搖擺重力遊戲時發現可攜式代碼的寫作
- 在改進貪食蛇遊戲的同時使用 RequestAnimationFrame 創建動畫
- 使您的遊戲在桌面和移動設備上可攜帶
- 開始使用 WebGL 進行 3D 遊戲開發,以及其他即將推出的 HTML5 功能和 API

方法
通過開發令人興奮的遊戲來教授 HTML5,讀者將看到每個概念的具體應用,並且在每一章結束時都會有一個強大的交付成果——一個功能完整的遊戲。我們使用非常抽象的例子來學習各種概念——如何建模動物、食物或虛構的機器。這使得學習和理解變得更加容易,也更加愉快。

本書的讀者對象
如果您希望對如何使用這項令人驚嘆的新技術 HTML5 有良好的基礎,本書適合您。對 HTML 和/或 HTML5 的基本知識是受歡迎的,但不是必需的。本書是初學者友好且令人興奮的參考資料。