Blog Archives

Edge Shape in Box2d

Hi, We have been working on a new 2d libgdx platformer game for sometime now and it is coming along nicely. While working on it we found the need to add an edge shape rather a rectangle for our platforms.

Tagged with: , , , , , ,
Posted in Tutorials

Box2d Revolute Joint Example

Hi, In our upcoming android game we are adding some box2d joints and in this post we would be creating a revolute joint. We are using Libgdx engine to make the game. Below is a screenshot of what  it looks

Tagged with: , , , , , , ,
Posted in Tutorials

Using Box2d Debug Renderer in Libgdx

This is an update to the older example (“using Box2d in Libgdx”) we put in the post here. We added box2d debug renderer to the code which is very simple to add and useful in seeing how box2d objects look

Tagged with: , , , , ,
Posted in Tutorials

Moving Platforms in Box2d in a Specified Path

Hi, In one of the previous post we moved a platform from a point A to point B and then back to point A and so on. In this post we would expand on it and move it in specific

Tagged with: , , , ,
Posted in Tutorials

Box2d/Libgdx Example Code

Hi, We are uploading source code of a simple box2d-libgdx example. Here is the File In the attachment you would find three projects :- BoxLibgdxExample BoxLibgdxExample-desktop BoxLibgdxExample-android UPDATE :- The example now contains box2d debug renderer also which can be used

Tagged with: , , , , ,
Posted in Tutorials

Moving Platforms in box2d

Hi, In this post we would me making moving platforms in box2d. In most of the games especially platformers we have these moving objects which would go on a specific direction for a fixed distance and come back. A Static

Tagged with: , , ,
Posted in Tutorials

Arrows And Bullets in Box2d

Hi, This will be a small post in which we would make a bullet or a projectile which can be added to a game. Most of the games have some sort of ranged weapon or an enemy having ranged weapons

Tagged with: , , ,
Posted in Tutorials

Using Box2d in Libgdx Game Part III

Hi, In this post we would make a box2d object manager to handle creation/deletion of objects. First we would make some changes in the BaseBoxObject class made in the last post to add option of deleting an object from the

Tagged with: , , , ,
Posted in Tutorials

Using Box2d in Libgdx Game Part II

Hi, In our last post we used box2d to make a body and attach a fixture to it. Then wrote fixed step update function to update the box2d physics in the game. Now we would attach a texture to the

Tagged with: , , , ,
Posted in Tutorials

Using Box2d in Libgdx Game Part I

Hello Everyone, Over the course of the next few weeks we would be covering the topic of using Box2d for physics in your libgdx app/game. In our recently released Android Game – Balloon Shooter we used Box2d for all the

Tagged with: , , , ,
Posted in Tutorials
Try our games



Error: Twitter did not respond. Please wait a few minutes and refresh this page.