Raise the Roof: Build Mode, Snapping and Base Pieces Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 13, 2026
- From
- contrib-hcrz9yx0
- Into
- main
- Merged
- Nov 13, 2026
Touch taps on the kit's own buttons (Build, Place, Rotate, Menu, Demolish, Snap, Exit) and the mouse-over-menu test mapped a pointer position to the UI canvas by dividing by ui.pixelRatio only. Touch and pointer positions are in the scene viewport's pixels (the screen-coordinates guide), so whenever the view is offset in the window (the editor's game view) every tap missed: on a touch device build mode could not be opened at all. Both now go through ui.fromViewport (falling back to the ratio when it is unavailable). Verified with simulated touch in a world: before, tapping Build left build mode closed; after, Build opens it, Place builds a Farm (-30 coins), Exit closes it. Version, README changelog and package.yaml moved to 1.0.31.
Source world: 3b494b6c-3abe-45a7-b1af-b8f85b677232 Contributed paths:
- buildPlaceKit.package/README.md
- buildPlaceKit.package/api.module/init.luau
- buildPlaceKit.package/menus.module/init.luau
- buildPlaceKit.package/package.yaml
- buildPlaceKit.package
- buildPlaceKit.package/api.module
- buildPlaceKit.package/menus.module
- buildPlaceKit.package/buildPlaceKit.testSuite/init.luau
- buildPlaceKit.package/controller.module/init.luau
- scenes/main.scene/build.luau
- scenes/main.scene/entrypoint.luau
7 files changed
- ChangedbuildPlaceKit.packageFolderBeforeAfter
- ChangedbuildPlaceKit.package/README.md33.6 KB → 33.9 KBBeforeAfter
- ChangedbuildPlaceKit.package/api.moduleFolderBeforeAfter
- ChangedbuildPlaceKit.package/api.module/init.luau9.3 KB → 9.3 KBBeforeAfter
- ChangedbuildPlaceKit.package/menus.moduleFolderBeforeAfter
- ChangedbuildPlaceKit.package/menus.module/init.luau88.3 KB → 88.8 KBBeforeAfter
- ChangedbuildPlaceKit.package/package.yaml2.1 KB → 2.1 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.