I have made games with box2dflash, but how much ever i have wanted to try out the test bed, the resources on the net don't help me. I have a folder called Testbed and various Test???.as files inside it. It would be a great help if somebody could just jot down how the testing of a box2dflash game is done. Thank you
So, this is JUST the basic test class. If you throw this into the source path of your project, you should have a fully functional testbed test ready to use. If you want to see WHERE the test is added to the testbed itself, see the Main.as file in the root of the examples folder. This powers the TestBed application. More Notably, Look for the following on line 97 :
You can add your test by class name (TestEmptyTest), and it will show up in their list. What makes it work? 1) Make sure you have the class path able to see the testbed folder 2) import TestBed.*; will bring the class into the Main.as already 3) creating a new instance of your class. Their framework does this for you, as long as you add it to their array. Hope that helps!
|
|||||
|
|