Addded particle engine but it is not finnished yet its some configuration left
This commit is contained in:
parent
01af69cbc8
commit
7c8dba70d1
10 changed files with 577 additions and 33 deletions
|
|
@ -1,7 +1,5 @@
|
|||
package ei.engine.scene;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import ei.engine.texture.Texture;
|
||||
|
|
@ -49,15 +47,7 @@ public class Sprite extends Entity {
|
|||
*/
|
||||
public Sprite(String name, String ref) {
|
||||
super(name);
|
||||
try {
|
||||
this.texture = TextureLoader.getTextureLoaderInstance().getTexture(ref);
|
||||
|
||||
} catch (IOException e) {
|
||||
// a tad abrupt, but our purposes if you can't find a
|
||||
// sprite's image you might as well give up.
|
||||
System.err.println("Unable to load texture: "+ref);
|
||||
System.exit(0);
|
||||
}
|
||||
this.texture = TextureLoader.getTextureLoaderInstance().getTexture(ref);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue