changed the pos of the texture

This commit is contained in:
Ziver Koc 2007-04-04 15:20:53 +00:00
parent 1ffdb1015f
commit e9db4c48e3

View file

@ -3,13 +3,17 @@ package ei.game.input;
import ei.engine.LWJGLGameWindow;
import ei.engine.input.MouseInput;
import ei.engine.scene.Sprite;
import ei.game.scene.Map;
public class InGameMouseInput extends MouseInput{
private static final int CAMERA_MOVE_BORDER = 40;
private static final float CAMERA_MOVE_SPEED = 6.0f;
public InGameMouseInput() {
super("InGameMouseInput","data/cursor.png");
private Map map;
public InGameMouseInput(Map map) {
super("InGameMouseInput","data/cursor/cursor.png");
this.map = map;
Sprite s = getSprite();
s.getTexture().setTextureWidth(50);
s.getTexture().setTextureHeight(50);