Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas
暫譯: JavaScript 遊戲、動畫與模擬的物理學:使用 HTML5 Canvas

Adrian Dobre, Dev Ramtal

  • 出版商: Apress
  • 出版日期: 2014-05-29
  • 售價: $3,440
  • 貴賓價: 9.5$3,268
  • 語言: 英文
  • 頁數: 508
  • 裝訂: Paperback
  • ISBN: 1430263377
  • ISBN-13: 9781430263371
  • 相關分類: HTMLJavaScript物理學 Physics
  • 海外代購書籍(需單獨結帳)

商品描述

Have you ever wanted to include believable physical behaviors in your games and projects to give them that extra edge? Physics for JavaScript Games, Animation, and Simulations teaches you how to incorporate real physics, such as gravity, friction, and buoyancy, into your HTML5 games, animations, and simulations. It also includes more advanced topics, such as particle systems, which are essential for creating effects such as sparks or smoke. The book also addresses the key issue of balancing accuracy and simplicity in your games and simulations, and the final chapters provide you with the information and the code to make the right choice for your project.

Physics for JavaScript Games, Animation, and Simulations assumes you have a basic knowledge of JavaScript and HTML5. However, no previous knowledge of physics is required—only some very basic math skills. The authors present everything from basic principles to advanced concepts in an approachable way, so you’ll be able to follow the logic and easily adapt the principles to your own applications.

The book is packed full of practical examples of how you can apply physics to your own games and applications. Spring behaviors can be used for anything from tweaking lowrider suspension to creating cloth simulation; flotation mechanics enable the simulation of submersibles or dirigibles; you can even create your own solar system with accurate orbits and gravity. It doesn’t matter if you’re modeling the Lorentz force in an electromagnetic field or you’re modeling the lift force in a flight simulator, Physics for JavaScript Games, Animation, and Simulations enables you to fill your games and applications with accurate and realistic effects.

商品描述(中文翻譯)

您是否曾想在您的遊戲和專案中加入可信的物理行為,以增強其吸引力?JavaScript 遊戲、動畫與模擬的物理學教您如何將真實的物理現象,如重力、摩擦和浮力,融入您的 HTML5 遊戲、動畫和模擬中。它還包括更高級的主題,例如粒子系統,這對於創建火花或煙霧等效果至關重要。本書還解決了在遊戲和模擬中平衡準確性與簡單性的關鍵問題,最後幾章提供了幫助您為專案做出正確選擇的信息和代碼。

JavaScript 遊戲、動畫與模擬的物理學假設您對 JavaScript 和 HTML5 有基本的了解。然而,並不需要具備物理學的先前知識—只需一些非常基本的數學技能。作者以易於理解的方式呈現從基本原則到高級概念的所有內容,因此您將能夠跟隨邏輯並輕鬆將這些原則應用到自己的應用程式中。

本書充滿了如何將物理應用於您自己的遊戲和應用程式的實用範例。彈簧行為可以用於調整低底盤懸吊或創建布料模擬;浮力機制使得潛水艇或飛船的模擬成為可能;您甚至可以創建自己的太陽系,並準確模擬軌道和重力。無論您是在模擬電磁場中的洛倫茲力,還是在飛行模擬器中模擬升力,JavaScript 遊戲、動畫與模擬的物理學都能讓您的遊戲和應用程式充滿準確且真實的效果。