| ← 95D0 | Map | 9610 → |
95E0: Draw the playfield border
|
Composes the static playfield border into the tile map and their attribute cells.
It draws top and bottom strips, four corners, and one side wall on the edge opposite the bat.
|
|||
| draw_playfield_border | 95E0 | LD HL,TILEMAP_BASE+$42 | Top edge: 28×2-cell strip at tile-map rows 2–3, col 2 |
| 95E3 | CALL draw_wide_strip | ||
| 95E6 | LD HL,TILEMAP_BASE+$2C2 | Bottom edge: 28×2-cell strip at rows 22–23, col 2 | |
| 95E9 | CALL draw_wide_strip | ||
| 95EC | CALL draw_side_wall | Side wall: 18×2 cells down rows 4–21, on the side opposite the bat. The bat side picks col 0 or col 30. | |
| 95EF | LD HL,TILEMAP_BASE+$40 | Top-left corner (2×2) at row 2, col 0 | |
| 95F2 | LD DE,corner_tl | ||
| 95F5 | CALL draw_corner_block | ||
| 95F8 | LD HL,TILEMAP_BASE+$2C0 | Bottom-left corner at row 22, col 0 | |
| 95FB | LD DE,corner_bl | ||
| 95FE | CALL draw_corner_block | ||
| 9601 | LD HL,TILEMAP_BASE+$5E | Top-right corner at row 2, col 30 | |
| 9604 | LD DE,corner_tr | ||
| 9607 | CALL draw_corner_block | ||
| 960A | LD HL,TILEMAP_BASE+$2DE | Bottom-right corner at row 22, col 30. The code falls through into the corner-block routine, which draws it. | |
| 960D | LD DE,corner_br | ||
| ← 95D0 | Map | 9610 → |
