Need help with Box2D
Community Forums/Monkey Talk/Need help with Box2D
| ||
I've been using Monkey-X for nearly 3 years now, I find it quite easy to get along with. What I can't get along with is the monkeybox2d module, I can't even seem to get anything basic going. All I ever seem to get is red error squiggles in the JungleIDE editor. Please can anyone direct me to a tutorial on how to get into this?. I don't mean the Box2D.org and many other mainstream tutorials stuff that's already out there, I mean actual monkey related stuff. Cheers. |
| ||
Answered over on SoCoder: http://socoder.net/index.php?topic=5683&seenpost=55162#55162 To get the demo running for Box2D in Jungle: 1. Download the zip for the master repo over at github: https://github.com/philippeback/monkeybox2d 2. Create a folder in your Jungle's additional module folder (set it up under Tools > Preferences> Monkey Language) called "box2d" 3. Extract the zip contents into the box2d folder, so within box2d folder you will have the sub folders collision, common, demo etc 4. Launch up Jungle 5. Click MonkeyX > Update Monkey modules database 6. Click File > New Document and create a test file (test.monkey2) 7. Add the following code: Strict Import box2d.demo Function Main:Int() New MainDemo Return 0 End 8. Compile and run! Done :) See it is in the demo folder :P |
| ||
Thanks, I just read your post on SoCoder. ;-) |