All posts about Box2D

Platform engine using Box2D – Step 2

After publishing Platform engine using Box2D, my attempt to replicate the Rick Triqui‘s main character continues. Now you can move the guy with left and right arrows, aim the bazooka with the mouse and shoot a bullet clicking on the mouse. The bazooka isn’t a Box2D object because I didn’t need to include it into […]

Platform engine using Box2D

Platform engines always represented a challenge for me, you can see my prototypes with AS2 and AS3, and this time I am going to make one using Box2D. Box2D is used as physics engine by PlayCrafter guys, and since the results you can see in Rick Triqui game are really interesting, I’ll start coding my […]

Prototype of a Flash game like Meeblings

You should all known Meeblings and the sequel, Meeblings 2. You have to help the Meeblings (cute creatures I’d love to burn alive) reaching the exit using some special abilities. One of such abilities attracts Meeblings when you click and hold the mouse on a special Meebling. In the prototype you are about to see, […]

Play Mazeroll, my latest Box2D game

After SamePhysics, I made another Box2D game called Mazeroll. You have to drag a maze to made two circles touch, collecting as much red orbs as you can, before time reaches zero. You can find some clues about the making of this game reading The magic of compound objects with Box2D and Perfect maze generation […]

Understanding how Box2D manages boundaries

Sometimes you may need to determine if your Box2D object has fallen off the screen. This mostly happens in games, where you are going to build something and some pieces may fall down, but obviously you can extend the concept to any application you may write. There are two “obvious” ways to do it: 1) […]

Two ways to make Box2D cars

I am showing you two ways to make cars with Box2d, with source codes included These are examples I found on the web – I will make my ones later – you can find interesting in order to make cars using Box2D. Top Down Car Simulation Making a top down game in Box2D is not […]

The engine behind Splitter Flash game : working code

I think we finally have a working slicing engine. It started with The engine behind Splitter Flash game, then come The engine behind Splitter Flash game – first AS3 prototype and The engine behind Splitter Flash game – new AS3 prototypes. Now Guillaume Pommey aka pompom sent us a working version. I revised my prototype […]

Full Totem Destroyer prototype

Some time ago I posted Create a Flash game like Totem Destroyer, and now I am showing you a complete prototype made by Collin Douch. The prototype features slimy and non-removable blocks and collision detection between the totem and the ground. Such detection was made customizing Box2D’s b2ContactListener class. For more information about this class […]

Erase Box: the tutorial

Some days ago I blogged about Erase Box, a Box2D game made with my tutorials, now it’s time to publish Rodrigo‘s tutorial. « On a game I was making, I needed a way to detect if a body was leaving the screen. That can be done by checking the x and y positions of it, […]

Basic Filler engine with Box2D – part 1

Do you remember Filler? In Filler, your goal is simple: fill 2/3 of the level. To create a filler ball, press down. It will grow until you release the mouse button, it hits another filler ball, or a bouncing ball runs into it. I am showing you the first part, the creation of the filler […]