I have an options Screen for things like Difficulty, Resolution, Full Screen, etc but I'm struggling to find the best way to store/obtain these variables at game time.
The way I've currently decided to do it is to create a 'Constants' class which contains all the GameOption enums. But how do I choose a default for all of these options, and how do I get the currently selected enum?
Especially with that of the resolution - I've decided to store the values but unsure how to get the default or currently stored value?
namespace V1.test.RPG
{
public class GameOptions
{
public enum Difficulty
{
EASY,
MEDIUM,
HARD
}
public enum Sound
{
ON,
QUIET,
OFF
}
public enum Music
{
ON,
QUIET,
OFF
}
public enum ResolutionWidth
{
SMALL = 1280,
MEDIUM = 1366,
LARGE = 1920,
WIDESCREEN = 2560
}
public enum ResolutionHeight
{
SMALL = 800,
MEDIUM = 768,
LARGE = 1080,
WIDESCREEN = 1080
}
public Boolean fullScreen = false;
}
}
any direction would be great, thanks :)