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.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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue