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 Rectangular Platform: First we will make a simple platform which would be static and can…
Author: Rahul Srivastava
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 throwing bullets, arrows etc. Making a Bullet: We would consider AR-10 rifle kits bullet to…
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 world and also an abstract function to draw the texture which would have to be…
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 body. While attaching we take care that the texture is of similar shape to the…
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 physics. Box2d is awesome in handling all the physics and gives realistic results. Integrating is…
New Android Game Released!
Hi Everyone, We just launched a new game in the android market. It is called Balloon Shooter. It is available for free. Click here for a detailed description. Here are some screenshots. Here is a game Video: Google Market Link : Download here or Qr Code : Please give suggesstions/feedback in comments or mail us at decisiontreegames@gmail.com
Post Game Score In Facebook from Android
For posting score in Facebook using facebook sdk we first need to create an Android app for Facebook. Go to Facebook Apps Page and login with the account from which you want to create the app. Then go to Create New App and after clicking on it you would get a APP ID and APP SECRET…
Generating Enemies Randomly In Game
In this post we would be focusing on adding game objects automatically in random positions to make high score/infinite mode similar to the one in Polar. Grid: To start off we make a Grid, i.e. we divide the playable screen area into small squares/rectangles of equal size. Then each grid piece would store information like…
Integrating Scoreloop in Libgdx Android
In this post we would be talking about integrating scoreloop in libgdx. We would be assuming that you have created a Scoreloop account and have added a game for which you would have the SECRET String provided by Scoreloop. It is really easy integrating Scoreloop and we would be using their UI; and so we…
Writing Android Specific Code in Libgdx
There are some parts of the code which you would want to run in the android version but not in the desktop version of your game/app like adding ads, integrating scoring libraries like (OpenFeint, Scoreloop etc). It really simple to do that also. There is a post in libgdx project page for how to integrate admob…