Prev: 55407 Up: Map Next: 55458
55408: Goldfish Game: Print Boats
Used by the routine at GoldfishGame.
Set attributes.
GoldfishGame_PrintBoats 55408 LD A,16 Set INK: BLACK (0).
55410 RST 16
55411 XOR A
55412 RST 16
55413 LD A,17 Set PAPER: WHITE (7).
55415 RST 16
55416 LD A,7
55418 RST 16
Graphics are created like fonts, they are 8x8 pixel UDG character blocks arranged sequentially into grids.
55419 LD HL,39148 Write 39148 (Graphics_GoldfishGameBoat1) to *CHARS.
55422 LD (23606),HL
Start fetching UDGs from Graphics_GoldfishGameBoat1.
55425 LD A,32 A=initial sprite ID: 32.
55427 LD C,15 Print co-ordinates: 15/ 24.
55429 LD B,24
55431 LD D,8 Width and height: 12/ 8.
55433 LD E,12
55435 CALL GoldfishGame_PrintSprite Call GoldfishGame_PrintSprite.
55438 LD HL,39916 Write 39916 (Graphics_GoldfishGameBoat2) to *CHARS.
55441 LD (23606),HL
Start fetching UDGs from Graphics_GoldfishGameBoat2.
55444 LD A,32 A=initial sprite ID: 32.
55446 LD C,33 Print co-ordinates: 33/ 24.
55448 LD B,24
55450 LD D,8 Width and height: 12/ 8.
55452 LD E,12
55454 CALL GoldfishGame_PrintSprite Call GoldfishGame_PrintSprite.
55457 RET Return.
Prev: 55407 Up: Map Next: 55458