Files
sporel-module-vagrant-skeleton/init.lua
Axel Meyer 60afa48976 fix(vagrant): wrap world rendering in camera.begin/finish
Map + furniture + puppet now render via the 2D camera so the camera
target (= puppet position) appears at screen-center. Without the wrap,
world rendering happened in raw window-coords: puppet at world (320,240)
appeared at screen upper-left, mouse-screen-to-world math was correct
but mouse cursor over the visible puppet computed dx/dy from puppet's
world position to mouse_world which was OFF-by-(w/2,h/2). Visual result:
head pointed in wrong direction relative to actual mouse position.

Spine-prototype already used this pattern (init.lua:128). Aligning
vagrant-skeleton with that convention.
2026-05-18 20:26:45 +02:00

8.6 KiB