Sub topic 6
Going beyond presets: granular and modular options
This chapter assumes you have read the chapter on difficulty presets and the one on difficulty levers. You should be comfortable reading TypeScript data structures and functions. Presets answer the question "how hard should this be?" with one choice. Granular options let players answer a set of narrower questions: "which parts of this game are hard for me, and which are not?"
Why presets are not enough
A preset bundles many levers into one label. That works when a player's needs line up with the bundle. They often do not.
Consider three players:
- One player has fast reflexes but struggles to read dense maps. They want hard combat and generous navigation help.
- One player has a tremor and cannot hold a button down. They want normal enemy health and a toggle in place of a hold input.
- One player loves a boss fight but dislikes the platforming before it. They want to soften one and keep the other.
No single position on an easy-to-hard scale serves all three. A preset forces each of them to pick the closest bundle and accept the parts that do not fit. They may end up too bored in one area or locked out of another.
Granular settings fix this by exposing individual levers. Modular settings go one step further by grouping those levers by the kind of challenge they affect, so players can find the right control without reading a long list.
One data model for presets and granular options
The simplest sound design keeps a single settings object and treats a preset as a way to fill it in. A preset is a starting point. The player's changes are layered on top.
interface DifficultySettings {
enemyDamageMultiplier: number;
enemyHealthMultiplier: number;
aimAssistStrength: number; // 0 (off) to 1 (strong)
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 };
}
// A player picks Normal but turns on frequent checkpoints.
const settings = resolveSettings('normal', { checkpointFrequency: 'frequent' });resolveSettings spreads the preset first and the overrides second. In an object spread, later keys win, so any value the player set replaces the preset's value. Values the player did not touch still come from the preset.
Partial<DifficultySettings> means every field in the override object is optional. The player's saved overrides can therefore be small. If they changed one thing, you store one key.
What to store
You have two choices for saving a player's configuration.
| Approach | What you save | Strength | Weakness |
|---|---|---|---|
| Save the resolved object | Every final value | Simple to load. Immune to later preset changes. | Loses the information about which values the player chose. |
| Save the preset name plus overrides | `'normal'` and `{ checkpointFrequency: 'frequent' }` | Keeps player intent. Can show "Normal (modified)". | A balance patch that edits a preset also changes this player's untouched values. |
The second approach is usually better, with one caution. If you patch a preset after launch, players who never overrode a value will feel the change. That may be what you want if the patch fixes a bug. It may be unwelcome if it silently makes the game harder. Version your saved settings, and decide deliberately whether a patch should migrate players.
Showing "Custom" honestly
Once a player overrides any value, they are no longer on the preset they started with. Your interface should say so. If the menu still reads "Normal" while enemy damage is doubled, the label is misleading, and the player cannot trust what they read.
A small helper makes the state explicit.
function differsFromPreset(
preset: PresetName,
overrides: Partial<DifficultySettings>,
): (keyof DifficultySettings)[] {
const base = PRESETS[preset];
return (Object.keys(overrides) as (keyof DifficultySettings)[]).filter(
(key) => overrides[key] !== undefined && overrides[key] !== base[key],
);
}
const changed = differsFromPreset('normal', { checkpointFrequency: 'frequent' });
console.log(changed); // ['checkpointFrequency']The function ignores overrides that match the preset, so a player who changes a slider and changes it back is shown as unmodified again. Use the returned list to show "Normal (1 change)" and to highlight the changed rows. Offer a "Reset to preset" action next to it. Without a reset, players who experimented are afraid to touch the controls.
Grouping options into modules
A long flat list of sliders overwhelms people. Group options by the kind of challenge they affect. Common groups are:
- Combat: enemy damage, enemy health, aim assistance, enemy aggression.
- Movement and platforming: fall damage, ledge forgiveness, jump timing windows, game speed.
- Puzzles and navigation: hint availability, objective markers, route guidance.
- Resources and survival: ammo, healing items, hunger or stamina drain.
- Input and interface: hold versus toggle, button remapping, timing prompts, text size.
- Failure and recovery: checkpoint frequency, retry limits, penalty on death.
Modules let a player say "make combat easy, keep puzzles as they are." They also give you a natural place to split options between difficulty and accessibility, which the earlier chapter on those distinctions treats as separate goals. Input and interface options are usually accessibility. Enemy health is usually difficulty. Keeping them in separate groups makes the difference visible to players.
A modular layout can be expressed in the data model by nesting.
interface CombatSettings {
enemyDamageMultiplier: number;
enemyHealthMultiplier: number;
aimAssistStrength: number;
}
interface FailureSettings {
checkpointFrequency: 'sparse' | 'normal' | 'frequent';
infiniteRetries: boolean;
}
interface ModularSettings {
combat: CombatSettings;
failure: FailureSettings;
}
type ModularOverrides = {
[K in keyof ModularSettings]?: Partial<ModularSettings[K]>;
};
function mergeModular(
base: ModularSettings,
overrides: ModularOverrides,
): ModularSettings {
return {
combat: { ...base.combat, ...overrides.combat },
failure: { ...base.failure, ...overrides.failure },
};
}A shallow spread of the whole object would replace an entire group when the player changed one field in it. Merging each group separately preserves the untouched fields. This is a common bug in nested settings code.
Choosing the right control type
The control shapes how players think about a value. Pick it to match the lever.
- Toggle: for on or off choices such as infinite retries. Easy to understand, with no in-between.
- Discrete choice: for a few named levels, such as checkpoint frequency. Names are easier to reason about than numbers.
- Slider: for continuous values such as game speed. Show the current value and the default. Without a visible default, players cannot tell how far they have moved.
- Per-item choice: for options tied to one feature, such as which puzzles show hints.
Prefer discrete steps over a fine-grained slider when small differences cannot be felt. A damage multiplier that moves in steps of 0.01 gives players a precision they cannot perceive. Steps of 0.25 are easier to compare and test.
Validation and dependencies
Granular settings can combine into states you did not design for. Plan for these cases.
- Out-of-range values. Clamp or reject values that fall outside the range you tested. A saved file may be edited, corrupted, or written by an older version.
- Conflicting options. If "infinite retries" is on, a "permadeath" option has no meaning. Disable or hide the dependent control and say why.
- Degenerate combinations. An enemy damage multiplier of zero together with infinite retries makes combat meaningless. This may be a valid choice for a player who wants to explore the story. If you allow it, you should do so on purpose, not by accident.
- Combinations you have not tested. With five options of three values each, there are 243 combinations. You cannot test all of them by hand. Test the extremes of each option, a few realistic mixed profiles, and the presets.
Deciding what to expose
Every option has a cost: interface work, testing, localization, and support. Use these questions to decide whether a lever deserves a control.
- Does it address a real, distinct need that a preset cannot meet?
- Can the player understand what it does from its name and a one-line description?
- Can you keep the game coherent across its full range?
- Does it avoid breaking story beats, tutorials, or scripted events?
If an option fails the third or fourth question, narrow its range or leave it out. A slider limited to a range you have tested is better than a wide one that produces broken encounters.
A decision flow for the settings screen
The diagram below shows how a settings screen can move a player from a preset to a customized configuration while keeping their state clear.
Common mistakes
- Exposing raw internal numbers. "Enemy damage multiplier: 1.5" means little to most players. Add a plain description such as "Enemies deal 50% more damage."
- Hiding the defaults. Players need a way to see what the original value was.
- Replacing presets with a wall of options. Many players want a quick answer. Keep presets as the first step and put granular controls behind them.
- Failing to apply changes visibly. Where possible, let players see or feel the effect, for example with a preview or a practice area.
- Shallow merging. As shown above, a shallow spread over nested settings wipes out untouched fields.
- Silent patches. Changing a preset's values after release can alter the experience of players who never customized.
Exercise
A player chose the "hard" preset and overrode only aimAssistStrength to 0.5. Their saved data is { preset: 'hard', overrides: { aimAssistStrength: 0.5 } }. What does resolveSettings return for enemyDamageMultiplier and aimAssistStrength, and what does differsFromPreset return for this player?
Show answer
enemyDamageMultiplier is 1.5, taken from the hard preset because the player did not override it. aimAssistStrength is 0.5, because overrides are spread after the preset and replace its value of 0. differsFromPreset('hard', { aimAssistStrength: 0.5 }) returns ['aimAssistStrength'], since 0.5 differs from the preset's 0. The interface can therefore show "Hard (1 change)".
Exercise
Your game has a flat settings object with nested groups combat and failure. A player changes only combat.aimAssistStrength. Why does { ...base, ...overrides } lose data, and how do you fix it?
Show answer
A shallow spread replaces the whole combat object with the override's combat object, so enemyDamageMultiplier and enemyHealthMultiplier disappear (they become undefined). Merge each group separately, as in mergeModular, so { ...base.combat, ...overrides.combat } keeps the untouched fields.
Exercise
Name two reasons to store the preset name plus overrides instead of only the resolved values, and one risk of doing so.
Show answer
Storing the preset name and overrides keeps the player's intent, so the interface can show "Normal (modified)" and offer a reset. It also keeps the saved data small, because only changed keys are stored. The risk is that a balance patch to the preset changes values the player never touched, which can silently alter their difficulty. Version the saved settings and decide whether to migrate.