Game Development with Three.js (Paperback)

Isaac Sukin

  • 出版商: Packt Publishing
  • 出版日期: 2013-10-28
  • 售價: $1,080
  • 貴賓價: 9.5$1,026
  • 語言: 英文
  • 頁數: 118
  • 裝訂: Paperback
  • ISBN: 1782168532
  • ISBN-13: 9781782168539
  • 相關分類: JavaScriptWebGL
  • 立即出貨 (庫存=1)

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

商品描述

With Three.js you can create sophisticated 3D games that run in the web browser. This book is aimed at both the professional game designer and the enthusiast with a step by step approach including lots of tips and examples.

Overview

  • Develop immersive 3D games that anyone can play on the Internet
  • Learn Three.js from a gaming perspective, including everything you need to build beautiful and high-performance worlds
  • A step-by-step guide filled with game-focused examples and tips

In Detail

The advent of WebGL and its inclusion in many browsers enabled JavaScript programs running in a web browser to access the GPU without a plugin or extension. Three.js is a next generation high-level library that makes it possible to author complex 3D computer animations that display in the browser using nothing more than a simple text editor. The development of these new tools has opened up the world of real-time 3D computer animations to a far broader spectrum of developers.

Starting with how to build 3D games on the web using the Three.js graphics library, you will learn how to build 3D worlds with meshes, lighting, user interaction, physics, and more. Along the way, you'll learn how to build great online games through fun examples. Use this book as a guide to embrace the next generation of game development!

Moving on from the basics, you will learn how to use Three.js to build game worlds using its core components, including renderers, geometries, materials, lighting, cameras, and scenes. Following on from this, you will learn how to work with mouse and keyboard interactions, incorporate game physics, and import custom models and animations. You will also learn how to include effects like particles, sounds, and post-processing. You will start by building a 3D world, and then create a first person shooter game using it. You will then be shown how to imbue this FPS game with a "capture the flag" gameplay objective. With Game Development with Three.js, you will be able to build 3D games on the Web using the Three.js graphics library.

What you will learn from this book

  • Set up a Three.js scene representing a game world
  • Understand the types of Three.js components, including geometries, materials, lighting, cameras, and renderers
  • Interact with your games using the mouse and keyboard
  • Structure your worlds with various approaches to physical collision
  • Construct complex levels using several different methods
  • Extend the Three.js framework with custom game-specific classes
  • Gain insight into development processes and important design and performance considerations for web games
  • Achieve a basic understanding of multiplayer game networking

Approach

A step-by-step, example-based guide to building immersive 3D games on the Web using the Three.js graphics library.

Who this book is written for

This book is for people interested in programming 3D games for the Web. Readers are expected to have basic knowledge of JavaScript syntax and a basic understanding of HTML and CSS. This book will be useful regardless of prior experience with game programming, whether you intend to build casual side projects or large-scale professional titles.

商品描述(中文翻譯)

使用Three.js,您可以在網頁瀏覽器中創建精緻的3D遊戲。本書針對專業遊戲設計師和愛好者,以逐步的方法提供許多技巧和示例。

概述:
- 開發任何人都可以在網際網路上玩的沉浸式3D遊戲
- 從遊戲的角度學習Three.js,包括構建美麗且高性能世界所需的一切
- 提供以遊戲為重點的示例和技巧的逐步指南

詳細內容:
WebGL的出現及其在許多瀏覽器中的包含,使得在網頁瀏覽器中運行的JavaScript程序能夠在沒有插件或擴展的情況下訪問GPU。Three.js是一個下一代高級庫,它使得使用僅僅一個簡單的文本編輯器就能夠創建在瀏覽器中顯示的複雜3D計算機動畫成為可能。這些新工具的開發為更廣泛的開發人員打開了實時3D計算機動畫的世界。

從使用Three.js圖形庫在Web上構建3D遊戲開始,您將學習如何使用網格、照明、用戶交互、物理等構建3D世界。在此過程中,您將通過有趣的示例學習如何構建出色的在線遊戲。使用本書作為指南,迎接遊戲開發的下一代!

從基礎知識出發,您將學習如何使用Three.js的核心組件構建遊戲世界,包括渲染器、幾何體、材質、照明、相機和場景。接著,您將學習如何使用滑鼠和鍵盤交互,結合遊戲物理,導入自定義模型和動畫。您還將學習如何包含粒子、聲音和後處理等效果。您將首先構建一個3D世界,然後使用它創建第一人稱射擊遊戲。然後,您將學習如何賦予這個FPS遊戲一個“奪旗”遊戲目標。使用Three.js遊戲開發,您將能夠使用Three.js圖形庫在Web上構建3D遊戲。

本書的學習重點:
- 設置代表遊戲世界的Three.js場景
- 了解Three.js組件的類型,包括幾何體、材質、照明、相機和渲染器
- 使用滑鼠和鍵盤與遊戲進行交互
- 使用不同方法結構化世界,包括物理碰撞
- 使用多種不同方法構建複雜的關卡
- 通過自定義遊戲特定類擴展Three.js框架
- 瞭解Web遊戲開發的開發流程、重要設計和性能考慮因素
- 基本了解多人遊戲網絡

這是一本基於示例的逐步指南,使用Three.js圖形庫在Web上構建沉浸式3D遊戲。

本書適合對在Web上編程3D遊戲感興趣的人。讀者預期具備基本的JavaScript語法知識和對HTML和CSS的基本理解。無論您打算構建休閒的小項目還是大規模的專業遊戲,本書都將非常有用。