Log inGet started
Package

settings.module

Newest version

README.md

riceAndShine.settings

The player's own game settings for Rice and Shine: master, music and effects volume, mouse look sensitivity and inverted vertical look. Kept per player in saveKit (Save.get("rs_settings")), so they come back on every visit.

  • Settings.get() the values in force { master, music, effects, sensitivity, invertY }.
  • Settings.set(key, value) changes one, saves it and applies it.
  • Settings.reset() puts them all back to their defaults.
  • Settings.apply() applies them: volumes through riceAndShine.audio.applySettings when that module has it (else the mixer's master and music / sfx / ui / ambience channels), sensitivity and invert on this peer's controller.orbital_follow rig (sensitivity = 0.005 x multiplier). Cheap when nothing changed; riceAndShine.hud's tick calls it.

The pause menu (menuTabs/game.menuTab) is where the player changes them. The engine's own camera settings (System tab) still apply on top: the engine scales the look by its look speed before the rig multiplies it by this one.