Skip to content
Game 5 Unit 22 of 128 1 hr learning time

Options Menu

Create an options screen for configuring game settings like sound and board size.

17% of Ink War

Options menus let players customise their experience. Even simple toggles make a game feel more complete.

Run It

pasmonext --sna inkwar.asm inkwar.sna

Unit 22 Screenshot

Version shows “PHASE 2 V0.6”.

Options Menu Design

A good options menu should:

PrincipleImplementation
Clear layoutOne option per line
Visual feedbackHighlight current selection
Immediate effectChanges apply instantly
Easy navigationUp/down to move, space to toggle

Common Game Options

OptionPurpose
Sound on/offAccessibility, preference
Board sizeGame length variation
DifficultyChallenge level
ControlsInput preference

Options screens are another game state:

GS_OPTIONS  equ     3

; In main loop dispatch:
            cp      GS_OPTIONS
            jr      z, state_options

The Complete Code

What You’ve Learnt

  • Menu systems - Navigation and selection patterns
  • Settings storage - Variables for user preferences
  • State machine expansion - Adding new game states

What’s Next

Unit 23 implements the board size variation option.

What Changed

Unit 21 → Unit 22