Skip to content

Organise game code in four layers and enforce them - #23

Open
LDGerrits wants to merge 2 commits into
minimal-templatefrom
layers
Open

LDGerrits wants to merge 2 commits into
minimal-templatefrom
layers

Conversation

@LDGerrits

Copy link
Copy Markdown
Owner

Game code now sits in four layers in both templates: app (entry scripts and the UI root), features (what the game could ship without), game (always-on systems such as the saved data and the one ProcessReceipt) and platform (game-agnostic Roblox code). Imports only go down, features may import each other but never in a cycle, side folders sit at a fixed depth, and game/ and platform/ hold named modules only. The check enforces all of it: ESLint zones plus a source check in TypeScript, and a require graph read through Rojo's sourcemap in Luau, with messages that say what to do instead. Multi-place games apply the same rules per source root, and the player-data add-ons now live in game/.

Stacked on #22; retarget to main once that merges.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
create-baseplate Ready Ready Preview Nov 25, 2026 2:44pm UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant