side_scroller.component
This package holds more than this page lists. See all of its files in its world.
README.md
controller.side_scroller
Side-scroller camera controller. Fixed-offset camera that follows a target from the side (classic 2.5D perspective). Maintains a constant position relative to the target and looks slightly ahead.
Public fields: target, centerX, centerY, centerZ (fallback), offsetX, offsetY, offsetZ (camera offset from target), lookAheadX, lookAheadY, lookAheadZ (look-at offset from target).
Controls: none — follows the target automatically.
entity(id).component.add("controller.side_scroller", { target = "player", offsetX = -8, offsetY = 3 })