Skip to content

Commit

Permalink
HexMap: fixed map loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlary committed Sep 14, 2024
1 parent e4367c4 commit a9c6ddc
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 180 deletions.
17 changes: 12 additions & 5 deletions demo/node_3d.tscn
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
[gd_scene load_steps=2 format=3 uid="uid://bt0soj2wvavie"]
[gd_scene load_steps=2 format=4 uid="uid://bt0soj2wvavie"]

[sub_resource type="MeshLibrary" id="MeshLibrary_amnye"]
[ext_resource type="MeshLibrary" uid="uid://ygm46u2uobsa" path="res://tileset.tres" id="1_43pbi"]

[node name="Node3D" type="Node3D"]

[node name="GridMap" type="GridMap" parent="."]
mesh_library = ExtResource("1_43pbi")

[node name="HexMap" type="HexMap" parent="."]
mesh_library = SubResource("MeshLibrary_amnye")
cell_shape = 1
cell_size = Vector3(1, 1, 1)
mesh_library = ExtResource("1_43pbi")
cell_size = Vector3(1.154, 1, 1.154)
cell_center_y = false
data = {
"cells": PackedByteArray("")
}
metadata/_editor_floors_ = [0, 0, 0, 0]
Loading

0 comments on commit a9c6ddc

Please sign in to comment.