- Box2D for Flash Games
- Emanuele Feronato
- 246字
- 2021-08-05 18:44:25
Chapter 1. Hello Box2D World
If you want to create 2D physics-driven games and applications, Box2D is the best choice available. Box2D is a 2D rigid body simulation library used in some of the most successful games, such as Angry Birds and Tiny Wings on iPhone or Totem Destroyer and Red Remover on Flash. Google them, and you'll see a lot of enthusiastic reviews.
Before we dive into the Box2D World, let me explain what is a rigid body . It's a piece of matter that is so strong that it can't be bent in any way. There is no way to modify its shape, no matter how hard you hit it or throw it. In the real world, you can think about something as hard as a diamond, or even more. Matter coming from outer space that can't be deformed.
Box2D only manages rigid bodies, which will be called just "bodies" from now on, but don't worry, you will also be able to simulate stuff which normally is not rigid, such as bouncing balls.
Let's see what you are about to learn in this chapter:
- Downloading and installing Box2D for Flash
- Including required classes in your Flash projects
- Creating your first Box2D World
- Understanding gravity and sleeping bodies
- Running your first empty simulation, handling time steps, and constraints
By the end of the chapter, you will be able to create an empty, yet running world where you can build your awesome physics games.
- 同步:秩序如何從混沌中涌現(xiàn)
- 數(shù)據(jù)浪潮
- LibGDX Game Development Essentials
- 在你身邊為你設(shè)計(jì)Ⅲ:騰訊服務(wù)設(shè)計(jì)思維與實(shí)戰(zhàn)
- ETL數(shù)據(jù)整合與處理(Kettle)
- 輕松學(xué)大數(shù)據(jù)挖掘:算法、場(chǎng)景與數(shù)據(jù)產(chǎn)品
- 數(shù)據(jù)庫(kù)應(yīng)用基礎(chǔ)教程(Visual FoxPro 9.0)
- Hadoop 3.x大數(shù)據(jù)開(kāi)發(fā)實(shí)戰(zhàn)
- 科研統(tǒng)計(jì)思維與方法:SPSS實(shí)戰(zhàn)
- 一本書(shū)講透Elasticsearch:原理、進(jìn)階與工程實(shí)踐
- 大數(shù)據(jù)分析:數(shù)據(jù)倉(cāng)庫(kù)項(xiàng)目實(shí)戰(zhàn)
- Expert Python Programming(Third Edition)
- Access數(shù)據(jù)庫(kù)開(kāi)發(fā)從入門(mén)到精通
- 中國(guó)云存儲(chǔ)發(fā)展報(bào)告
- Arquillian Testing Guide