Box2D for Flash Games
暫譯: Flash 遊戲的 Box2D
Emanuele Feronato
- 出版商: Packt Publishing
- 出版日期: 2012-10-22
- 售價: $1,250
- 貴賓價: 9.5 折 $1,188
- 語言: 英文
- 頁數: 166
- 裝訂: Paperback
- ISBN: 1849519625
- ISBN-13: 9781849519625
海外代購書籍(需單獨結帳)
相關主題
商品描述
Create amazing and realistic physics-based Flash games using Box2D
Overview
- Design blockbuster physics game and handle every kind of collision
- Build and destroy levels piece by piece
- Create vehicles and bring them to life with motors
In Detail
Physics games are getting more and more popular, and Box2D is the best choice if you are looking for a free, stable and robust library to handle physics. With Box2D you can create every kind of 2D physics game, only coding is not the fun part, but the game itself.
"Box2D for Flash Games" will guide you through the process of making a Flash physics game starting from the bare bones and taking you by hand through complex features such as forces, joints and motors. As you are learning, your game will have more and more features, like the physics games you are used to playing.
The book analyzes two of the most played physics games, and breaks them down to allow readers to build them from scratch in a step-by-step approach.
By the end of the book, you will learn how to create basic primitive bodies as well as complex, compound bodies. Motors will give life to cars, catapults and siege machines firing bullets, while a complete collision management will make your game look even more realistic.
If you want to make full Flash games with physics, then Box2D for Flash Games will guide you through the entire process of making a Flash physics game.
What you will learn from this book
- Create a physics world with gravity
- Manage materials assigning physics properties
- Interact with physics bodies using mouse or keyboard
- Build vehicles with joints and motors
- Handle every kind of collision
- Add forces and impulses to bodies
- Turn your graphic assets into physics bodies
- Fire bullets and destroy bodies
Approach
This book is a step by step guide to create games with Box2D explained in a simple and friendly way.
Who this book is written for
Are you familiar with ActionScript3 and want to explore the capabilities of physics in game design using Box2D, then this book is for you. You don’t have to be an AS3 hero: if you know how to create classes and functions with AS3, then you can make your first physics game!
商品描述(中文翻譯)
使用 Box2D 創建驚人且真實的基於物理的 Flash 遊戲
概述
- 設計熱門的物理遊戲並處理各種碰撞
- 逐步構建和摧毀關卡
- 創建車輛並用馬達使其活過來
詳細內容
物理遊戲越來越受歡迎,而 Box2D 是您尋找免費、穩定且強大的物理處理庫的最佳選擇。使用 Box2D,您可以創建各種 2D 物理遊戲,編碼本身並不是有趣的部分,而是遊戲本身。
《Box2D for Flash Games》將指導您從最基本的開始製作 Flash 物理遊戲,並手把手帶您了解複雜的功能,如力、關節和馬達。在學習的過程中,您的遊戲將擁有越來越多的功能,就像您習慣玩的物理遊戲一樣。
本書分析了兩款最受歡迎的物理遊戲,並將其拆解,以便讀者能夠逐步從零開始構建這些遊戲。
在本書結束時,您將學會如何創建基本的原始物體以及複雜的複合物體。馬達將為汽車、投石機和發射子彈的攻城器帶來生命,而完整的碰撞管理將使您的遊戲看起來更加真實。
如果您想製作完整的物理 Flash 遊戲,那麼《Box2D for Flash Games》將指導您完成整個製作 Flash 物理遊戲的過程。
您將從本書中學到什麼
- 創建具有重力的物理世界
- 管理材料並分配物理屬性
- 使用滑鼠或鍵盤與物理物體互動
- 使用關節和馬達構建車輛
- 處理各種碰撞
- 為物體添加力和衝量
- 將您的圖形資產轉換為物理物體
- 發射子彈並摧毀物體
方法
本書是一本逐步指南,以簡單友好的方式解釋如何使用 Box2D 創建遊戲。
本書的讀者對象
如果您熟悉 ActionScript3 並希望探索使用 Box2D 在遊戲設計中物理的能力,那麼這本書適合您。您不必是 AS3 英雄:如果您知道如何使用 AS3 創建類和函數,那麼您就可以製作您的第一個物理遊戲!