Map parallax should work #77
Reference in New Issue
Block a user
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?
Source: TODO.txt (at
bbb7b8f)Tiled writes
parallaxxandparallaxyper layer.akgl_tilemap_load_layersreads
id,opacity,visible,x,yandtypeand not those, so a mapauthored with parallax scrolls flat.
include/akgl/tilemap.h:604already describes an image layer as "one picturerather than a grid, which is what a parallax backdrop wants" -- so the use case is
documented and the factor that drives it is dropped at load.
The draw side is where it lands:
akgl_tilemap_drawpositions a layer againstakgl_camera, and a parallax factor scales that offset per layer.Two related items are worth doing in the same pass, since all three add fields to
akgl_TilemapLayerand each on its own is an ABI break:name, which is dropped the same wayFiles:
src/tilemap.c(akgl_tilemap_load_layers,akgl_tilemap_draw),include/akgl/tilemap.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)