This is a big commit. Added mouse cursors and a load bar. Started whit the game. and many many other things

This commit is contained in:
Ziver Koc 2007-03-29 23:21:00 +00:00
parent 448fca2fdf
commit 4e7722fedb
34 changed files with 597 additions and 95 deletions

View file

@ -8,6 +8,8 @@ package ei.engine.effects;
* Visit Our Sites At www.tiptup.com and nehe.gamedev.net
*/
import java.awt.Rectangle;
import org.lwjgl.opengl.GL11;
import ei.engine.scene.Entity;
@ -155,6 +157,8 @@ public class Particles extends Entity{
texture.bindGL();
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
for(int i=0;i<maxParticles;i++) { // Loop Through All The Particles
if (particle[i].active) { // If The Particle Is Active
float x = particle[i].x; // Grab Our Particle X Position
@ -218,6 +222,7 @@ public class Particles extends Entity{
}
}
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
// restore the model view matrix to prevent contamination
GL11.glPopMatrix();
}
@ -249,6 +254,16 @@ public class Particles extends Entity{
particle[i].active = true;
}
}
/**
* Returns the bound of this class
*/
public Rectangle getBound() {
return new Rectangle(
(int)getLocation().getX(),
(int)getLocation().getY(),
(int)size, (int)size);
}
}
class Particle { // Particles Structure