Prev: 6D45 Up: Map Next: 6D7D
6D67: Create Introduction Actor
Used by the routines at StartLevelIntroduction and StartCharlieRunning.
Creates an actor for the level introduction, at the right of the screen (horizontal co-ordinate F0 vertical co-ordinate 68). Bytes 05 and 06 of the actor are cleared.
Input
C ID of the actor
DE Address of the sprite ID and the colour
HL Address of the actor
CreateIntroductionActor 6D67 LD (HL),C Write the ID to the actor.
6D68 INC HL Move on to the horizontal co-ordinate.
6D69 LD (HL),$F0 Set the horizontal co-ordinate to F0 (off the right of the screen).
6D6B INC HL Move on to the vertical co-ordinate.
6D6C LD (HL),$68 Write 68 to the vertical co-ordinate.
6D6E INC HL Move on to the colour.
6D6F LD A,(DE) Fetch the sprite ID.
6D70 LD C,A Keep the sprite ID in C.
6D71 INC DE Move on to the colour in the data.
6D72 LD A,(DE) Fetch the colour.
6D73 LD (HL),A Update the actor colour.
6D74 INC HL Move on to byte 04 of the actor.
6D75 LD (HL),C Write the sprite ID to byte 04 of the actor.
6D76 INC HL Move on to byte 05 of the actor.
6D77 LD (HL),$00 Write 00 to byte 05 of the actor.
6D79 INC HL Move on to byte 06 of the actor.
6D7A LD (HL),$00 Write 00 to byte 06 of the actor.
6D7C RET Return.
Prev: 6D45 Up: Map Next: 6D7D