diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-21 09:16:24 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-21 09:16:24 +0200 |
commit | b7f765ebe28dd8dea3e4c094c46681fdfec56fc3 (patch) | |
tree | 1d2f39f52ab78e2eb1f7c6cf18e21089240b4a9d /HexMap.gd | |
parent | 7c0292f085fb6a590c64f105647bb8bdd536fef8 (diff) | |
download | godot-hexgrid-b7f765ebe28dd8dea3e4c094c46681fdfec56fc3.zip godot-hexgrid-b7f765ebe28dd8dea3e4c094c46681fdfec56fc3.tar.gz |
HexMap.configure(…) -> HexMap._init(…)
Diffstat (limited to 'HexMap.gd')
-rw-r--r-- | HexMap.gd | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,7 +28,8 @@ var adjacents : Array var search_count : int var stack : Array -func configure(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool) -> void: +func _init(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool, fct : FuncRef) -> void: + tile_factory_fct = fct v = vertical s = side w = s * 1.73205 |