How To

Memory and how to have a second background

0

TrashCan Games 2020-01-18 09:07

When I save stuff in the disk why is there 13 empty memory addresses and how to do I use the second background


Timo 2020-01-18 10:12

To program with two backgrounds (or layers) you use the BG command.

BG 0
TEXT 0,0,"------"
BG 1
TEXT 0,0,"BEHIND"

So this is to show two backgrounds AT ONCE. Another thing is, if you want to show them one after another, for example for different game levels...

There are 16 files / ROM entries available in a program. The easiest way is to use only the default entries and ignore the empty ones. But if you make a game with several levels/screens, probably you quickly reach a point where you want to create more than one background in the BG Designer. You can save them in the empty files. Check the command BG SOURCE.

BG SOURCE ROM(4)
BG COPY 0,0,20,16 TO 0,0
WAIT 60
BG SOURCE ROM(5)
BG COPY 0,0,20,16 TO 0,0


TrashCan Games 2020-01-18 11:32

Thanks a lot


Log in to reply.