Prev: 50371 Up: Map Next: 50453
50387: Set Pixel Adjustments
Used by the routine at HandleExtraLife.
Sets the number of pixels that the sprite of an object is moved by, in X and Y, from its position. There is an entry point for each of the sets of adjustments that are used, and the one that is used for an object depends on its sprite. The adjustment in X goes in L and the adjustment in Y goes in H.
Input
IX Address of the object
SetPixelAdjustments 50387 LD HL,65272 Set the adjustments of a tree wall, which are 248 in X and 254 in Y.
50390 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
SetPixelAdjustments_Sparkle 50392 LD HL,64756 Set the adjustments.
50395 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
The adjustments of the bottom half of a guard or of a human: 244 in X and 250 in Y.
SetPixelAdjustments_Legs 50397 LD HL,64244 Set the adjustments.
SetPixelAdjustments_Set 50400 JP StorePixelAdjustments Set the adjustments of the object.
The adjustments of rocks and blocks: 240 in X and 248 in Y.
SetPixelAdjustments_Block 50403 LD HL,63728 Set the adjustments.
50406 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
The adjustments of the bricks of graphic number 10: 236 in X and 255 in Y.
SetPixelAdjustments_Bricks10 50408 LD HL,65516 Set the adjustments.
50411 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routines at StartTransformation and HandleTransformation.
The adjustments of the bricks of graphic number 11 and of a transforming player: 244 in X and 254 in Y.
SetPixelAdjustments_Bricks11 50413 LD HL,65268 Set the adjustments.
50416 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
The adjustments of bricks of graphic numbers 12 to 15, balls and fire: 248 in X and 252 in Y.
SetPixelAdjustments_Ball 50418 LD HL,64760 Set the adjustments.
50421 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routine at HandleHumanTop.
The adjustments of 244 in X and 248 in Y.
SetPixelAdjustments_Wide 50423 LD HL,63732 Set the adjustments.
50426 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routines at HandleGargoyle and HandleWulfLegs.
The adjustments of the legs of the wulf and of a gargoyle: 244 in X and 249 in Y.
SetPixelAdjustments_Wulf 50428 LD HL,63988 Set the adjustments.
50431 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routine at HandleWulfTop.
The adjustments of 244 in X and 244 in Y.
SetPixelAdjustments_Wider 50433 LD HL,62708 Set the adjustments.
50436 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routine at HandleCauldronBottom.
The adjustments of the bottom half of the cauldron: 240 in X and 244 in Y.
SetPixelAdjustments_Cauldron 50438 LD HL,62704 Set the adjustments.
50441 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routine at HandleGuardMovingEastWest.
The adjustments of a guard that moves east and west: 244 in X and 7 in Y.
SetPixelAdjustments_Guard 50443 LD HL,2036 Set the adjustments.
50446 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
This entry point is used by the routine at HandleGuardOrWizard.
The adjustments of the top half of a guard: 244 in X and 3 in Y.
SetPixelAdjustments_GuardTop 50448 LD HL,1012 Set the adjustments.
50451 JR SetPixelAdjustments_Set Jump to SetPixelAdjustments_Set.
Prev: 50371 Up: Map Next: 50453