Game 5 Unit 27 of 128 1 hr learning time
Screen Transitions
Add smooth wipe effects between game screens for professional presentation.
21% of Ink War
Abrupt screen changes feel jarring. Smooth transitions make state changes feel intentional.
Run It
pasmonext --sna inkwar.asm inkwar.sna

Version shows “PHASE 2 V0.11”.
Transition Types
| Type | Description | Complexity |
|---|---|---|
| Instant | No transition | None |
| Fade | Brightness change | Low |
| Wipe | Progressive reveal | Medium |
| Cascade | Attribute ripple | Medium |
Attribute Wipe
Clear attributes row by row:
transition_wipe:
ld b, 24 ; 24 rows
ld hl, ATTR_BASE
.row:
push bc
ld b, 32 ; 32 columns
.col:
ld (hl), 0 ; Clear attribute
inc hl
djnz .col
; Delay between rows
call short_delay
pop bc
djnz .row
ret
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
- Screen transitions - Professional state changes
- Attribute manipulation - Wipe effects via attributes
- Timing for effect - Speed of reveal matters
What’s Next
Unit 28 adds practice mode with undo functionality.
What Changed
Unit 26 → Unit 27