Introducing the Colour Maximite 2


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 6382
Posted: 07:15am 09 May 2020      

Functionality to load CMM sprite files is part of the "compatibility" capability of the CMM2 and has a couple of extensions

Sprites can be loaded from Maximite SPRITE files using SPRITE LOAD filename$.
There is now has an optional parameter available in the first line of the sprite file.
Vertical size is implemented and need not be 16, No. of sprites as before, new parameter is the width of sprites

e.g. (a red mouse pointer)
13,1,19
4
44
4 4
4  4
4   4
4    4
4     4
4      4
4       4
4        4
4         4
4          4
4      444444
4   4  4
4  44  4
4 4  4  4
44   4  4
     4  4
     4444




SPRITE LOAD fname [,start_sprite_number]
SPRITE LOAD loads CMM1 style sprite files. This change allows you to load multiple CMM1 style sprite files by specifying the start sprite number of each file making sure they don’t overlap.

To try it, save the above as "mouse.spr"
Then:

SPRITE LOAD "mouse.spr",5
SPRITE SHOW 5,100,100,1

Edited 2020-05-09 17:18 by matherp