Category Archives: Tutorials
Finding Nearest Sprite For 2D Collision
Hola EveryOne.
There are various methods/ways to detect a collision between two objects. Each having its own advantage and disadvantage and based on our requirement we implement one of the collsion detection algorithm.
Here i am not going to talk about collision algorithm. I am going to talk about determining the nearest object with which collision will [...]
Loading image/Texture Mapping in LWJGL
Hola everyone.
I am currently working on my own two game projects: one project is of mobile phone game and other is 2.5 or side-scrolling 3d game, not much sure. So for second project i am making an small engine that will be used to make 2.5D game or side scrolling 3d game, Just simple and [...]
Also posted in developer, java, opengl Tagged loading image, loading image/texture mapping in lwjgl, lwjgl, texture mapping Leave a comment
Setting Up LWJGL with Netbeans
On Forums, people keeps asking about setting up lwjgl library with netbeans. So here i am going to show the steps to do that.
STEP 1: Go to Tools-> Libariries.Now create new library. Give it a name say “lwjgl21″.
STEP 2: Now we have to configure the library. Click the classpath tab, then click add jars, and [...]
Installing or Setting up JOGL on Ubuntu
Here are the detailed steps to set up or install JOGL on your ubuntu. First of all you have to download the jogl library(according to your machine) from here . I am using Ubuntu 8.04 on intel board so i downloaded jogl-1.1.1-linux-i586.zip.
So extract the zip file. Now open the folder that you have just now [...]
Alpha Blending using OpenGL with SDL
Alpha Blending is a convex combination of two colors allowing for transparency effects in computer graphics. Blending is used to combine the color of a given pixel that is about to be drawn with the pixel that is already on the screen. How the colors are combined is based on the alpha value of [...]
Setting up java classpath on ubuntu
When u install sun’s jdk manually on ubuntu, java classpath doesn’t get set automatically unlike in windows. So when you enter command javac in terminal window, it says “javacĀ command not found”. So here is the very simple way to set up the classpath for java on ubuntu.
STEP 1 : Open the terminal window.
STEP 2: [...]
How to make a exe file of Java Program ?
If you are making a java program for windows operating system only thenĀ wouldn’t it be easy to have a exe file for your java program and distribute it to the users and user would find easy to execute your program. Well i guess yes because exe would definetly make easy for users to execute [...]
Also posted in Tools Tagged .exe file of java, exe4j, java exe maker, making an exe for java app 2 Comments
Setting up Slick 2D with netbeans 6.5.1
Slick2D engine is a high performance 2d game library based on a LWJGL(Lightweight Java Game Library). You can see the current features of Slick2D in their site. Download the library from here.
You can check the games made in Slick2D engine http://www.cokeandcode.com/ and http://slick.cokeandcode.com/gallery.php.
Tutorials : There are good and easy to go tutorials for beginners.
Now download [...]
Also posted in developer Tagged 2D engine, lwjgl, netbeans, Slick 2D, slick 2d with netbeans 8 Comments
2D Sprite Rotation using Opengl with SDL
Rotating 2D Sprite: In my previous post i showed how to move a 2D sprite in two dimensional screen using Opengl with SDL. Now in this post i’l show how to rotate a 2D sprite using Opengl with SDL.
In Opengl, rotation can be made about x axis, y axis and z axis. In different axis [...]
Also posted in Opengl with SDL Tagged 2d graphics, 2d rotation, opengl, sdl, texture mapping 1 Comment




2D Rain Effect