Tiled P5 — image/group layers, Wang GID resolution, isometric/hex/staggered #73
Labels
No labels
area:ci
area:docs
area:input
area:net
area:rendering
area:repo
area:stdlib
area:tooling
area:types
cleanup
dx
priority:high
priority:low
priority:medium
proposal
status:in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: workshopsoft/ludic#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up P5 of the Tiled design (#66). Design record: Design: Tiled maps §3.
Scope — breadth
<imagelayer>(parallax,repeatx/repeaty, transparent colour);<group>nested layers (offset/opacity/visible/tint recursive); layertintcolor, blendmode(1.12),opacity.hexsidelength,staggeraxis/staggerindex). Low priority — our target is orthogonal.Golden fixtures
isometric_grass_and_water.tmx(iso + Wang corner set);isometric_staggered_grass_and_water.tmx;hexagonal-mini.tmx,test_hexagonal_tile_60x60x30.tmx; hand-authored group + image-layer (repeat) + blend-mode fixtures (design §4).Acceptance
Depends on #69. Priority low.
P5 landed in
main(78a5719).<imagelayer>renders with parallax + optionalrepeatx/repeatytiling across the view (image loaded relative to the map file);<group>layers flatten at build (children render in file order), with offset/opacity/tint queryable (Tiled.layer_kind/layer_offsetx/layer_offsety/layer_opacity/layer_tint) and a group's tint applying recursively.Tiled.cell_x/Tiled.cell_ycompute a tile cell's screen position for orthogonal, isometric ((x−y)·tw/2,(x+y)·th/2), staggered, and hexagonal (rows step by(tileh+hexsidelength)/2, alternate rows shoved perstaggerindex); the tile draw places cells through them.Acceptance
isometric_grass_and_water.tmx(64×32 iso) andhexagonal-mini.tmx(14×12, hexside 6, staggeraxis y) with hand-computed coordinates.Proven by
examples/library/tiled_p5.ludic(14 assertions) inx test(96 passed).