Fixes
This commit is contained in:
@@ -190,7 +190,7 @@ namespace Marro.PacManUdon
|
||||
|
||||
public static Vector2 PositionToGrid(Vector2 position)
|
||||
{
|
||||
return new Vector2((float)Math.Round(position.x-0.5f)+0.5f, (float)Math.Round(position.y-0.5f)+0.5f);
|
||||
return new Vector2((int)position.x + 0.5f, (int)position.y + 0.5f);
|
||||
}
|
||||
|
||||
public static bool CrossesTileBorder(Vector2 currentPosition, Vector2 nextPosition, Direction direction)
|
||||
|
||||
Reference in New Issue
Block a user