Programmerare, skeptiker, sekulärhumanist, antirasist.
Författare till bok om C64 och senbliven lantis.
Röstar pirat.
2014-02-09
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)…
…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
This should be enough for anyone, but if you like, you can also access the graphics memory directly.
Categories: Geeky
Tags: C128
Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!
Leave a Reply