home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
251-275
/
apd269
/
docs
/
sprites.doc.pp
/
sprites.doc
Wrap
Text File
|
1977-12-31
|
3KB
|
99 lines
Mobed Sprite Convertor
Written by Martin Jones
As this is one of my "little" utilities I have used AMOS (if I had AMOS
sooner then Mobed could well have been written in it).AMOS should not
be scoffed at by high and mighty m/c programmers it really does have
power and can be used easily.Enough free advertising for Mandarin who
are on 051-357 1275 for credit card orders.Can I just also slip in
that although AMOS will be daunting for a first time user it still
comes recommended and with a little practice you will be cruising.Mobed
will be harder for a novice than AMOS.Enough advertising I say!
For the Sprite hardware the mobs must be in a different format to
normal.Sprites can be either 2 plane (4 colours) or 4 plane (16 colours)
by sticking two sprites on top of each other.A sprite's width is always
16 pixels and so the convertor program will only work with 16*16 mobs.
The convertor program takes a file from Mobed and then converts into
the correct format.This file must be saved as a BIN file without MASK
and without BLIT selected.The file will be saved in the following
format:
For a 2 plane image
2 Control words (Blank) - If requested in the convertor
Line 1 - word low
Line 1 - word high
Line 2 - word low
Line 2 - word high
......
......
Line 16 - word low
Line 16 - word high
For a 4 plane image
Higher number sprite (Lower in the colour selection)
2 Control words (blank) - If requested in the convertor
Line 1 - word low
Line 1 - word high
Line 2 - word low
Line 2 - word high
......
......
Line 16 - word low
Line 16 - word high
Lower number sprite (Higher in colour selection)
2 Control words (blank) - If requested from the convertor
Line 1 - word low
Line 1 - word high
Line 2 - word low
Line 2 - word high
......
......
Line 16 - word low
Line 16 - word high
The information saved is at a minimum,there is no header,it is basically
a binary file.The program will allow you to insert two blank words at the
start of each sprite to act as control words.It is quite crude but
generally what is required by a program like a game or demo.
The file will be resaved as the original filename with ".sp" added
to the end of it.
To run the program type "RAMOS Spconvert" from the CLI.This is best
done after quitting Mobed because Spconvert needs certain files that
must be on the boot disk.The original Mobed disk will have all these
files on it.