- Box2D for Flash Games
- Emanuele Feronato
- 188字
- 2021-08-05 18:44:25
Downloading and installing Box2D for Flash
You can download the latest version of Box2D for Flash either from the official site (http://www.box2dflash.org/download) or from the SourceForge project page (http://sourceforge.net/projects/box2dflash/).
Once you have downloaded the zipped package, extract the Box2D
folder (you can find it inside the Source
folder) into the same folder you are using for your project. The following is how your awesome game folder should look before you start coding:

You can see the Box2D
folder, the FLA file that I am assuming has a document class called Main
and therefore Main.as
, which is the class we will work on.
I would suggest you work on a 640 x 480 Flash movie at 30 frames per second (fps). The document class should be called Main
and the examples will look better if you use a dark stage background color, such as #333333
. At least these are the settings I am using throughout the book. Obviously you can change them as you want, but in that case your final movies may look a bit different than the examples shown in the book.
Now let's import Box2D classes.
- Spark快速大數據分析(第2版)
- Python金融大數據分析(第2版)
- 揭秘云計算與大數據
- 數據庫應用基礎教程(Visual FoxPro 9.0)
- 深入淺出MySQL:數據庫開發、優化與管理維護(第2版)
- WS-BPEL 2.0 Beginner's Guide
- 數亦有道:Python數據科學指南
- 深入淺出Greenplum分布式數據庫:原理、架構和代碼分析
- MATLAB Graphics and Data Visualization Cookbook
- SQL應用及誤區分析
- 中文版Access 2007實例與操作
- 數據挖掘算法實踐與案例詳解
- 數據庫原理及應用實驗:基于GaussDB的實現方法
- Redis 6開發與實戰
- Mastering Java for Data Science