Log inGet started
Package

config.module

Newest version

README.md

config

The game's numbers and rules, in one table.

Nothing in it runs. Every other part of Chainsaw Simulator reads it: the scene build (scenes/main.scene/build.luau), the yard, the saw, the workpieces, the HUD and the audio. If a number decides how the game feels — walk speed, how fast the chain eats ice, how long the engine takes to stall, what the customers ordered — it lives here and nowhere else.

What it holds

  • title — the game's name.
  • yard — the fenced square's size, where the operator arrives, the work zone, the sawbuck height, and where the two sodium lamp posts stand.
  • player — eye height and field of view.
  • saw — the engine's whole behaviour: the idle and rev RPM band, how fast it spins up and down, the heat rates for gassing and for cutting, the stall, and the bar's reach and bite radius.
  • workpieces — the four things you cut, in metres and voxel counts, with how fast each material gives way and whether it shatters.
  • orders — the eight orders that make a shift.
  • palette — the reference's colours as hex, so the HUD, the screens and the signage are one palette.

Who calls it

require("game.config"). Read-only — nothing should write to the returned table at runtime.