changed coordinates

This commit is contained in:
Jesper Lundin 2007-04-04 18:15:11 +00:00
parent e19132c65f
commit ecf3190f28
2 changed files with 2 additions and 3 deletions

View file

@ -5,13 +5,12 @@ import ei.engine.scene.Sprite;
public class Tank extends Unit{
public Tank() {
this(5, 5);
this(0, 0);
}
public Tank(int x, int y){
super(10);
setSprite(new Sprite("Tank", "data/units/tank.png"));
getSprite().setLocation(new Vector2f(200, 200));
getSprite().getTexture().setTextureWidth(90);
getSprite().getTexture().setTextureHeight(50);
getSprite().getTexture().setWidth(90);