mapeditor / mapeditor/tiled

Hexagonal map exporting with weird values

Open
#1,098 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

I believe this issue is related to issue #1097. Because Hexagonal are actually isometric maps, the value being pushed out to Lua for the tile width is a bit strange. With a hex tile size of 32x32, the map tile width is exported as 51. This causes rendering issues that are only solved by changing the value to 50 in my library.

if self.orientation == "hexagonal" then
    self.tilewidth = self.tilewidth - 1
end

I think it might be better to treat hex tiles as orthogonal instead of isometric.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read issue #1097 alongside the hexagonal map export behavior, then reproduce the 32x32 case that emits a tile width of 51. Trace where the hexagonal tile width is sent to Lua and determine the intended orthogonal or isometric handling; done means the exported value no longer requires the reported Lua workaround and rendering behaves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
game-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.