Startsidan  ▸  Texter  ▸  Teknikblogg

Anders Hesselbom

Programmerare, skeptiker, sekulärhumanist, antirasist.
Författare till bok om C64 och senbliven lantis.
Röstar pirat.

Commodore 128 bitmap graphics 1/2

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)…

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.

Categories: Geeky

Tags: C128

Leave a Reply

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



En kopp kaffe!

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!

Bjud på en kopp kaffe!

Om...

Kontaktuppgifter, med mera, finns här.

Följ mig

Twitter Instagram
GitHub RSS

Public Service

Folkbildning om public service.

Hem   |   linktr.ee/hesselbom   |   winsoft.se   |   80tal.se   |   Filmtips