diff --git a/src/ei/game/scene/Map.java b/src/ei/game/scene/Map.java index 656e230..2f708ce 100644 --- a/src/ei/game/scene/Map.java +++ b/src/ei/game/scene/Map.java @@ -52,9 +52,9 @@ public class Map { * @param y y pos * @return The coordinate of the pos */ - public Vector2f getPixelByPos(float x, float y){ - x = (int)(POS_SIZE*x*1.2f); - y = (int)(POS_SIZE*y*1.2f); + public Vector2f getPixelByPos(int x, int y){ + x = (int)(POS_SIZE*x); + y = (int)(POS_SIZE*y); return new Vector2f((int)x,(int)y); }