Fixed Box class and some bugs in texture

This commit is contained in:
Ziver Koc 2007-04-15 18:52:42 +00:00
parent 1f3806b288
commit d2fce2161e
9 changed files with 108 additions and 94 deletions

View file

@ -28,10 +28,7 @@ public class Map {
for(int j=0; j<hight ;j++){
Sprite s = new Sprite("MapPos("+i+","+j+")","data/map/sand.jpg");
s.setLocation(new Vector3f(i*POS_SIZE,j*POS_SIZE,0));
s.getTexture().setTextureWidth(POS_SIZE+1.2f);
s.getTexture().setTextureHeight(POS_SIZE+1.2f);
s.getTexture().setWidth(POS_SIZE);
s.getTexture().setHeight(POS_SIZE);
s.setSize(new Vector2f(POS_SIZE,POS_SIZE));
mapNode.add(s);
}
}