Tag Info

Hot answers tagged


Looks like making a new SpriteBatch ever update wasn't such a smart idea of me! Lesson learned!


I think the simplest way would be to convert your coordinates to cube coordinates, then use a lookup table with the offsets to get the coordinates for the adjacent tiles, and then convert the coordinates back. Vector3 coordsToCube(Vector2 coords) { Vector3 cube = new Vector3(); cube.x = coords.x - (coords.y - ((int) coords.y & 1)) / 2 cube.z = ...

Only top voted, non community-wiki answers of a minimum length are eligible