In this tutorial we will calculate closest point of a contact of a body from another point in box2d in libgdx. In last two tutorials, one using BoundingBox and other using Raycast we queried box2d to get list of nearby bodies. This was used to imitate explosion effect in libgdx. In bounding box we got…
Tag: LibGdx
Add Explosion in Box2D using Raycast in libgdx
In the previous tutorial, we added an option to get list of bodies around the player using QueryAABB method present in box2d in libgdx. This method gives list of all bodies in a bounding box. So it is helpful in giving details of bodies in blast radius. Though the issue is that the bounding box…
Add Explosion in Box2D using BoundingBox in libgdx
In the previous tutorial we added a rotating shield to our player. The shield object would move in uniform circular speed around the player object. The shield was a kinematic body so that we can set velocity every frame to control its movement. In this tutorial, we will learn how to add an explosion using…
Move Box2d Body In Circular Path in Libgdx
Recently there was a need to have a body rotate around another moving body, sort of like a shield. To achieve this functionality, initially we thought of using a revolute joint, available in box2d in libgdx. For revolute joint we would need a base or pivot body around which another body can rotate at a…
Using Scoreoid with Libgdx/Desktop
In January we wrote a post on how to integrate scoreoid in Libgdx for Android. In this post we would be integrating it for the desktop/PC version. For parsing JSON we are using the source code available in this link JSON in Java. Here is the Github link. In this post we would only explain…
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. And we found out edge shapes are quite easy to add in box2d. At the…
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 like in game. At the end of the post, you can find the source files…
Using Scoreoid with Libgdx/Android
In this post(or maybe one more) we would integrate scoreoid with libgdx for Android environment. Before we start, check out Scoreoid here. Let me quote from their site “Scoreoid is a non-restrictive, reliable and easy to use server platform for game developers designed to handle but not limited to leaderboards, game achievements, player login, in-game…
Our Fifth Game-Speedboat Santa released!
Hi, Okay first the big image. Tada. Google Play Store link :- Speedboat Santa. We just released our fifth game in Google play store. Its called Speedboat Santa. As you can see with the name and the game, the December month has had an effect on us. Okay straight to the description. Santa lost his…
New Android Game – Tap Shoot Zombie!
Hi, We have released our fourth game for Android in Google Play Store- Tap Shoot Zombie!. Here is the link. Qr Code: If you would like to earn money while playing at vipcasinosites.com you will find a lot of options to have fun and make some money. Description:- Shoot zombies in this simple fun game….