Skip to content

scene camera

ABKQPO edited this page May 4, 2026 · 4 revisions

navigation: title: Camera & Viewport parent: index.md

Camera & Viewport

Viewport size variants, camera presets, and pan/offset tests.

Viewport Size Variants

256×96 (wide/short):

128×128 (square):

384×256 (large):

Camera Presets

<GameScene> / <Scene> new attributes:

  • perspective="isometric_north_east" / "isometric_north_west" / "up" — pick a yaw/pitch/roll preset;
  • rotateX / rotateY / rotateZ — explicit per-axis overrides applied on top of the preset;
  • offsetX / offsetY — screen-space pan (units: blocks);
  • centerX / centerY / centerZ — explicit world-space rotation center (overrides auto-center).

NE vs NW preset:

Top-down view (up):

Pan Offset

offsetX / offsetY pan — right scene offset by +2 / +1 blocks:

DiamondAnnotation Default Color

Without color, the diamond defaults to bright green (compare against an explicit red diamond):

Default green diamond (no `color` attribute) Explicit red

Clone this wiki locally