Text of this page, read by machine (may contain mistakes)
COLECOVIBION
CRAPHICS USERS’ MANUAL Pege 34
LD A,CKLI
iD F,3 ; Copy this generator 3 times
cory) INC KL
LD CHLJ,A
DINZ COPYS
POP KL ; Get Back pointer
LD A.4 3 Tede fer color table
CALL PUT_YRAM
RIT
W_BUF {s the addreas of the work erea for OS routines (!.e. the
ecérese stored at WORKLSGFFER, Seven, Sm Gartridse ROM).
NOTE: In epplicetions where the background color (color0) ef the
patterns ower which the motiic séject ts to mows and the color of the
mobile object itself does net change, the above patch will not be
needed. Instead it is wufficiaaAt te tnitialise the color generators
for the mobile object to the desired eslerif/celor0 combination.
7.8 PUT_SPRITE
This routine handles the Gigplay af all sprite objects; gise0, sisei,
magnified end unmagnified.
The routine uses SPRITE_INDEX in the object's Rhigh lewel definition to
Getermine which of the 32 gprites to use to implement the object.
Fositional information from X and XY LOCATION in the object's STATUS
arez is used to update the wertical and horizontal position entries in
the sprite attribute teble in WRAM. The routine facilitates Sprite
objects bleeding off to tha left as well as completely off the screen
by making use of the sarly ciock sit.
Frame information fer Sprite abjects comes from the FRAME_LTABLE tn the
object's CRAPHICS dete eres. Zach frame is specitied by « COLOR and «
SKAPE Byte. The SHAPE byte {ts addet to the object's FIST CEIN_NAME
(the second entry in the object's CKAPHICS Gata area) and this scm is
then moved to the name antry position in the sprite attribute table.
Bit 7 of the COLOR Byte is modified to reflect the required state of
the early clock Bit and then mowed to color entry in the sprite
attribute table.
7.6 PUT_COMPLEZ
A Compler object is a collection ef “component” objects. Each frame
of a Compler object specifies the positienal relationship and frame to
be tsed for each of the component ebjects. The positional
relationship fer all the component objects is defined in an offset
list and the trame for eech component is ¢efineéd in a2 frame list.
There is one offset list and one frame list for each frame of the
Complex ebject.