Fixed the mouse y invert thingy
This commit is contained in:
parent
5d07cd2dee
commit
575e0158ea
3 changed files with 8 additions and 9 deletions
|
|
@ -53,9 +53,9 @@ public class Map {
|
|||
* @return The coordinate of the pos
|
||||
*/
|
||||
public Vector2f getPixelByPos(int x, int y){
|
||||
x = (int)(POS_SIZE*x);
|
||||
y = (int)(POS_SIZE*y);
|
||||
return new Vector2f((int)x,(int)y);
|
||||
float xf = (POS_SIZE*x);
|
||||
float yf = (POS_SIZE*y);
|
||||
return new Vector2f(xf,yf);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue