Category Archives: Tutorials

2D Rain Effect

Hola Everyone. I am working on a level for 2d game where i needed to add a rain effects. I am using Slick 2D library for making my 2d game. Before i started working on making 2D rain effect , i discussed this topic on slick 2d forum for how to get started ? Here [...]
Also posted in Slick 2D, developer, java, opengl | Tagged , , , | Leave a comment

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 [...]
Also posted in Slick 2D, developer, java | Tagged , | Leave a comment

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 , , , | 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 [...]
Also posted in Tools, developer, java, opengl | Tagged , , | 1 Comment

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 [...]
Also posted in developer, java | Tagged , , , | 2 Comments

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 [...]
Also posted in Opengl with SDL | Tagged , , | 1 Comment

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: [...]
Also posted in developer, java | Tagged | Leave a comment

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 , , , | 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 , , , , | 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 , , , , | 1 Comment
  • Become a GaanZa Fan

    GaanZa on Facebook