changed the pos of the texture
This commit is contained in:
parent
1ffdb1015f
commit
e9db4c48e3
1 changed files with 6 additions and 2 deletions
|
|
@ -3,13 +3,17 @@ package ei.game.input;
|
||||||
import ei.engine.LWJGLGameWindow;
|
import ei.engine.LWJGLGameWindow;
|
||||||
import ei.engine.input.MouseInput;
|
import ei.engine.input.MouseInput;
|
||||||
import ei.engine.scene.Sprite;
|
import ei.engine.scene.Sprite;
|
||||||
|
import ei.game.scene.Map;
|
||||||
|
|
||||||
public class InGameMouseInput extends MouseInput{
|
public class InGameMouseInput extends MouseInput{
|
||||||
private static final int CAMERA_MOVE_BORDER = 40;
|
private static final int CAMERA_MOVE_BORDER = 40;
|
||||||
private static final float CAMERA_MOVE_SPEED = 6.0f;
|
private static final float CAMERA_MOVE_SPEED = 6.0f;
|
||||||
|
|
||||||
public InGameMouseInput() {
|
private Map map;
|
||||||
super("InGameMouseInput","data/cursor.png");
|
|
||||||
|
public InGameMouseInput(Map map) {
|
||||||
|
super("InGameMouseInput","data/cursor/cursor.png");
|
||||||
|
this.map = map;
|
||||||
Sprite s = getSprite();
|
Sprite s = getSprite();
|
||||||
s.getTexture().setTextureWidth(50);
|
s.getTexture().setTextureWidth(50);
|
||||||
s.getTexture().setTextureHeight(50);
|
s.getTexture().setTextureHeight(50);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue