Hi everyone,
I'm going to list some tricks, tips and examples for using 7800basic. Many have also been generously offered by Mike @RevEng and Lewis @Muddyfunster. I'll provide a Table of Contents so they will be easy to find as I add them or have questions about them.
Display, Sprites and Images
Clear Palette
Clear Palette (Double-Buffer)
Sprite Animation
TallSprite [Updated]
Quick Score [Updated]
Centering Text
Singlewide Text in Double
Sprite Animation
Most games will require some sort of sprite animations eg. players, enemies, bullets, explosions etc. Depending on your requirements there are many ways to achieve this.
Example 1 (Simple increment)
Simple increment of a frame tracking index will update the animation each frame. To repeat the animation we check for the last frame and reset the index back to 0.
rem vars
dim frameIndex = var0
rem increment frame
frameIndex = frameIndex + 1 : if fra