Benimo12 2021-04-03 23:53
I'm new to BASIC and LowRes has been my go to. How do I show backgrounds in my programs. I've looked at the example programs and still got lost. Also, how do I move sprites and use sprites from a different rom. Thanks a lot
was8bit 2021-04-04 04:18
The Background editor simply creates a file, it doesn't directly effect the visible backgrounds..
What you SEE on the screen is 20x16 cells, and there are 2 backgrounds, BG 0 is in front of BG 1.... and these only hold character# references to the things you draw with Character Designer... and each cell the visible screen not only holds the char# but also the PAL# you want to color it with, and other settings like FLIP
SPRITES are numbered 0-63, and can be given Char#, PAL#, you can edit each sprites size etc... and sprites by default float above both backgrounds... (unless you tinker with the priority settings)
The BIG difference is that background cells are placed by cell block coordinates (20x16) while Sprite are placed by pixel coordinates (160x128) ...
was8bit 2021-04-04 04:20
Also, just to confuse things, the actual background memory for the 2 backgrounds (BG 1, BG 0) are 32x32 cells, even though only 20x16 fit into the visual screen ...
G-9 2021-04-04 07:35
was8bit : BG 0 is in front of BG 1.... and
Wait, are you sure ??
Timo 2021-04-04 09:16
Yes, but you can change the order for individual cell using the priority attribute.
CubicleHead 2021-04-04 12:55
This helped me with sprites...
It was done by was8bit but I made some changes
In the code there is a lot of comments
was8bit 2021-04-04 15:14
@G-9, yes, and this isnt just for lowres, it is a typical approach... the numbers indicate DEPTH or distance away from viewer.... myself i would think of it as adding clear sheets on top of each other, but the typical approach is the reverse....
was8bit 2021-04-04 15:19
@CubicleHead, nice comments :)