Framework Patterns
Game loops, state machines, interrupts
11
Patterns
5
Platforms
Commodore 64
1 patternSinclair ZX Spectrum
4 patternsGame Loop (HALT)
Frame-synchronised game loop using the HALT instruction. Locks to 50Hz for consistent timing across all Spectrums.
Screen Frame (BASIC)
Draw a 1-cell border around the play area with title and footer bars. The standard game screen layout.
State Machine Loop
Organise game flow with distinct states (title, playing, game over). Clean separation of game phases.
Text Utilities (BASIC)
Centre text on any row and clear rows — two tiny subroutines used in every BASIC game.