
Thus, 158 becomes the X value, which will be written into the data structure.
NOTE
The X position represents the location of the very first (leftmost) pixel in the full 16-bit-
wide sprite. This is always the case, even if the leftmost pixels are specified as
transparent and do not appear on the screen.
If the sprite shown in Figure 4-2 were located at an X value of 158, the actual image
would begin on-screen four pixels later at 162. The first four pixels in this sprite are
transparent and allow the background to show through.
Figure 4-2: (Position of Sprites)
VERTICAL POSITION
You can select any position from line 0 to line 262 for the topmost edge of the sprite. In
the examples in this chapter, an NTSC window with vertical positions from line 44 to line
243 is used. This allows the normal display height of 200 lines in non-interlaced mode. If
you specify a vertical position (Y value) of less than 44 (i.e., above the top of the display
window) the top edge of the sprite may not appear on screen.
To make a sprite appear in its correct on-screen vertical position, add the Y value to the
desired position. Using the above numbers, add 44 to the desired Y position. For example,
to make the upper leftmost pixel appear 25 lines below the top edge of the screen,
perform this calculation:
Desired Y po vertical-offset of the display window = 25 + 44 = 69
Thus, 69 is the Y value you will write into the data structure.
- 96 Sprite Hardware -
Summary of Contents for Amiga A1000
Page 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Page 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Page 21: ...12 Introduction...
Page 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Page 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Page 101: ...92 Playfield Hardware...
Page 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Page 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Page 229: ...220 System Control Hardware...
Page 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Page 265: ...256 Interface Hardware...
Page 289: ...280 Appendix A...
Page 297: ...288 Appendix B...
Page 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Page 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Page 343: ...334 Appendix F...
Page 351: ...342 Appendix G...
Page 361: ...352 Appendix H...
Page 367: ...358 Appendix I...