Sub topic 6
Going Beyond Presets: Granular and Modular Options
Prerequisites and design goal
Assume you understand a game's core loop, can read simple TypeScript data structures, and know the difference between difficulty, accessibility, and assistance. This chapter focuses on settings that let players adjust one part of the experience without changing every other part.
A difficulty preset is a convenient starting point. It becomes limiting when a player wants Normal combat with frequent checkpoints, or Hard enemies with stronger aiming assistance. Granular settings solve this problem by exposing individual parameters. Modular settings group those parameters into independent systems, such as combat, navigation, timing, and recovery.
Separate settings by player need
Each option should have one clear purpose. A setting that changes enemy health affects challenge. A setting that increases subtitle size affects access to information. An aim assist option may help a player use a controller without making enemies weaker.
| Setting | Primary effect | Common player need |
|---|---|---|
| Enemy health multiplier | Changes how long enemies survive | Challenge preference |
| Subtitle size | Changes the readability of dialogue | Visual access |
| Aim assist strength | Helps target enemies | Motor access or control preference |
| Checkpoint frequency | Changes the cost of failure | Time or persistence preference |
Keep these categories separate in the interface and in the data model. A player should not need to select an easier combat preset just to increase text size.
Compose a preset with overrides
Store presets as complete settings objects. Then apply a partial override object on top. A partial override contains only the values the player changed.
interface DifficultySettings {
enemyDamageMultiplier: number;
enemyHealthMultiplier: number;
aimAssistStrength: number;
checkpointFrequency: "sparse" | "normal" | "frequent";
infiniteRetries: boolean;
}
type PresetName = "story" | "normal" | "hard";
const PRESETS: Record<PresetName, DifficultySettings> = {
story: {
enemyDamageMultiplier: 0.5,
enemyHealthMultiplier: 0.75,
aimAssistStrength: 0.8,
checkpointFrequency: "frequent",
infiniteRetries: true,
},
normal: {
enemyDamageMultiplier: 1,
enemyHealthMultiplier: 1,
aimAssistStrength: 0.4,
checkpointFrequency: "normal",
infiniteRetries: false,
},
hard: {
enemyDamageMultiplier: 1.5,
enemyHealthMultiplier: 1.25,
aimAssistStrength: 0,
checkpointFrequency: "sparse",
infiniteRetries: false,
},
};
function resolveSettings(
preset: PresetName,
overrides: Partial<DifficultySettings> = {},
): DifficultySettings {
return { ...PRESETS[preset], ...overrides };
}
const settings = resolveSettings("normal", {
checkpointFrequency: "frequent",
});
console.log(settings);The spread operation copies the preset first. The second spread operation replaces only properties in overrides. This preserves a stable baseline while allowing customization.
Control dependencies and invalid combinations
Granular options can interact. For example, an invulnerability assist may make a damage multiplier meaningless. A navigation mode may require a map marker system. Decide whether options are independent, dependent, or mutually exclusive.
Use validation after resolving settings:
- Clamp numeric values to safe ranges.
- Reject unknown option names.
- Explain when one option disables another.
- Preserve the player's choices when possible.
- Avoid silently changing a value without showing the reason.
A modular design can represent each group separately:
flowchart TD
A[Preset] --> B[Combat settings]
A --> C[Recovery settings]
A --> D[Information settings]
E[Player overrides] --> B
E --> C
E --> D
B --> F[Validated final settings]
C --> F
D --> Fcaption: Settings are resolved by module and then validated as one final configuration. alt: A preset and player overrides feed combat, recovery, and information modules, which combine into validated final settings.
Present choices without overwhelming players
Expose a small number of high-impact controls first. Put detailed controls behind an Advanced or Custom section, but do not hide essential accessibility options there. Each option needs a plain description and, where useful, a preview.
Show the current preset as a starting point, then label changes clearly. For example, “Normal, customized” tells the player that the original preset remains the reference while one or more values differ.
Exercise
Exercise
A player wants standard enemy strength, frequent checkpoints, and large subtitles. How should these choices be represented?
Show answer
Resolve the Normal preset, override checkpoint frequency with "frequent", and store subtitle size in a separate information or accessibility module.