Commodore 128 bitmap graphics 1/2

Part 1. Part 2.

When Commodore 128 vector graphics can’t provide the desired details, there is an option to do bitmap graphics. The 128 have a built in command for creating pixel perfect graphics called SPRSAV. You can create a pattern using the built-in editor (SPRDEF)…

01

…and transfer the data into a string variable, and then copy that data to the screen, like so:

10 COLOR 0, 13
20 COLOR 4, 13
30 COLOR 1, 1
40 COLOR 2, 8
50 COLOR 3, 12
60 GRAPHIC 3, 1
70 SPRSAV 1, A$
80 GSHAPE A$, 10, 10, 2 : REM DRAW SPRITE AT 10, 10
90 GSHAPE A$, 20, 11, 2
100 GSHAPE A$, 30, 12, 2

02

This should be enough for anyone, but if you like, you can also access the graphics memory directly.

Leave a Reply

Your email address will not be published. Required fields are marked *