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

Version shows “PHASE 2 V0.6”.
Options Menu Design
A good options menu should:
| Principle | Implementation |
|---|---|
| Clear layout | One option per line |
| Visual feedback | Highlight current selection |
| Immediate effect | Changes apply instantly |
| Easy navigation | Up/down to move, space to toggle |
Common Game Options
| Option | Purpose |
|---|---|
| Sound on/off | Accessibility, preference |
| Board size | Game length variation |
| Difficulty | Challenge level |
| Controls | Input preference |
Menu State Machine
Options screens are another game state:
GS_OPTIONS equ 3
; In main loop dispatch:
cp GS_OPTIONS
jr z, state_options
The Complete Code
This code sample could not be loaded. The file may be missing or the path may be incorrect.
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