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

@ -0,0 +1,12 @@
/**
*
*/
package ei.engine.texture;
/**
* @author Ziver
*
*/
public class MultiTexture {
}

View file

@ -25,9 +25,9 @@ public class Texture {
/** The width of the image */
private int width;
/** The width of the texture */
private int texWidth;
private float texWidth;
/** The height of the texture */
private int texHeight;
private float texHeight;
/** The ratio of the width of the image to the texture */
private float widthRatio;
/** The ratio of the height of the image to the texture */
@ -123,7 +123,7 @@ public class Texture {
*
* @param texHeight The height of the texture
*/
public void setTextureHeight(int texHeight) {
public void setTextureHeight(float texHeight) {
this.texHeight = texHeight;
setHeight();
}
@ -133,7 +133,7 @@ public class Texture {
*
* @param texWidth The width of the texture
*/
public void setTextureWidth(int texWidth) {
public void setTextureWidth(float texWidth) {
this.texWidth = texWidth;
setWidth();
}

View file

@ -91,12 +91,12 @@ public class TextureLoader {
* @throws IOException Indicates a failure to access the resource
*/
public Texture getTexture(String resourceName){
MultiPrintStream.out.println("Loading texture: "+resourceName);
Texture tex = (Texture) table.get(resourceName);
if (tex != null) {
return tex;
}
MultiPrintStream.out.println("Loading texture: "+resourceName);
try {
tex = getTexture(resourceName,