Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas

Adrian Dobre, Dev Ramtal

  • 出版商: Apress
  • 出版日期: 2014-05-29
  • 售價: $3,380
  • 貴賓價: 9.5$3,211
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

你曾經想過在你的遊戲和專案中加入可信的物理行為,以使它們更具優勢嗎?《Physics for JavaScript Games, Animation, and Simulations》教你如何將真實的物理,如重力、摩擦力和浮力,融入到你的HTML5遊戲、動畫和模擬中。它還包括更高級的主題,如粒子系統,這對於創建火花或煙霧等效果至關重要。該書還解決了在遊戲和模擬中平衡準確性和簡單性的關鍵問題,最後幾章為你提供了選擇適合你項目的信息和代碼。

《Physics for JavaScript Games, Animation, and Simulations》假設你具有基本的JavaScript和HTML5知識。然而,不需要先前的物理知識,只需要一些非常基本的數學技能。作者以易於理解的方式呈現了從基本原理到高級概念的一切,因此你將能夠理解邏輯並輕鬆地將原則應用於自己的應用程序。

該書充滿了實際示例,展示了如何將物理應用於你自己的遊戲和應用程序中。彈簧行為可以用於調整低車底懸掛系統,也可以用於創建布料模擬;浮力機制可以模擬潛水器或飛船;你甚至可以創建具有準確軌道和重力的太陽系。無論你是在電磁場中建模洛倫茲力還是在飛行模擬器中建模升力,《Physics for JavaScript Games, Animation, and Simulations》都能讓你的遊戲和應用程序充滿準確和逼真的效果。