Skip to reading
Text & Sierra-Style Adventures

36. Walking and typing must take turns

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView illustrations

When the command field owns the keyboard, arrows should edit the line rather than move the character. When the field releases focus, arrows can control the player. This handoff is the part most likely to make a parser game feel broken if it is overlooked.

Source table from 36. Walking and typing must take turns, page 39
SituationWhat should happen
Walking, then SpaceThe command field takes focus. Type a command.
A printable letter while not typingThe controller opens the graphical command field and inserts that first character.
Typing, then EnterThe field submits once and releases focus in graphical mode.
Reply open, then EnterThe reply closes; that Enter does not become another command.
Typing, then EscapeThe field releases focus so movement can resume.
Text-only modeThe command field regains focus after each response.

Figure 23. After closing the reply, the scene is visible again and movement can resume.

Use Arrow Keys rather than WASD when automatic type-to-open is enabled. Otherwise a letter such as W is both the beginning of a command and a movement key. You can support both schemes, but you must decide which behavior takes priority.

Page 39 of 68Permalink
Go to page