-
-
Notifications
You must be signed in to change notification settings - Fork 1
Options
John 'Snowdrama edited this page Feb 24, 2026
·
4 revisions
Options are very simple ways to do player settings, there's a bunch of stuff built around them like audio management and such built in, but for things like input settings and difficulty this can also be used.
There is a file in resources that have the default option file, this will get loaded and written the first time the player loads the game.
Here's a mouse senstivity example, there's options sliders that can change the value and then you'd use it like this:
//the second value is the default value
var angleX = MouseMotion.X * Options.GetFloat("mouse_sensitivity_x", 0.5f); If you need to set the value it's
Options.SetFloat("mouse_sensitivity_x", 0.5f);