Skip to content

Releases: Zehir/godot-hexagon-tile-map-layer

v2.0.0

01 Mar 15:00
Compare
Choose a tag to compare

Godot minimum version GitHub Downloads (all assets, all releases)

Breaking changes

  • Split the static methods inside a HexagonTileMap class
  • Renammed the cube_rect to cube_rect_corners

Added

  • New method cube_rect to get all cells inside the rect.

Updated

  • Changed the type of axis param from int to Vector3i.Axis. There is no difference in the runtime.
    • cube_reflect(position: Vector3i, axis: Vector3i.Axis) -> Vector3i
    • cube_reflect_from(position: Vector3i, from: Vector3i, axis: Vector3i.Axis) -> Vector3i
    • cube_rect(center: Vector3i, corner: Vector3i, axis: Vector3i.Axis = Vector3i.Axis.AXIS_Y) -> Array[Vector3i]
    • cube_rect_corners(center: Vector3i, corner: Vector3i, axis: Vector3i.Axis = Vector3i.Axis.AXIS_Y) -> Array[Vector3i]

Fixed

  • Fix return type of cube_spiral to be Array[Vector3i]

v1.1.0

22 Feb 22:28
Compare
Choose a tag to compare

Godot minimum version GitHub Downloads (all assets, all releases)

Breaking changes

  • Require Godot 4.4 or later

Added

  • Axis dependant variables that get updated on ready
    • cube_direction_vectors: Dictionary[TileSet.CellNeighbor, Vector3i]
    • cube_side_neighbor_directions: Array[TileSet.CellNeighbor]
    • cube_corner_neighbor_directions: Array[TileSet.CellNeighbor]
  • Methods to get cells position depending of local position
    • get_closest_cells_from_local(local: Vector2, count: int = 1) -> Array[Vector3i]
    • get_closest_cell_from_local(local: Vector2) -> Vector3i
    • get_closest_cells_from_mouse(count: int = 1) -> Array[Vector3i]
    • get_closest_cell_from_mouse() -> Vector3i

Updated

  • Reduce axis comparaison for static methods by caching neighbor_directions and direction_vectors vars

v1.0.1

19 Feb 18:04
Compare
Choose a tag to compare

Godot minimum version GitHub Downloads (all assets, all releases)

Patch Changes

  • Fix incorrect loading of the toolbar

v1.0.0

19 Feb 00:04
Compare
Choose a tag to compare

Godot minimum version GitHub Downloads (all assets, all releases)

Added

  • Initial release