wbochar
Registered: May 2002 Posts: 29 |
C64 32 Sprites 8x4 and Gaps
I have an ASM program that is trying to display 32 Sprites. I get all 32 on the screen as long as there is a 2px width gap between them. They are laid out in a grid (see below) so each line group has the same xpos (set once)
The moment I either make the raster happen earlier (corrupts the sprite) if not I get a horizontal gap between each grouping.
Fussing with the rasterline and Ypos of the sprites is not working.. is this possible?
Notes:
Numbers are sprites slots, Letters are sprite bitmaps in non-stretched mode (21px tall). I have also turned off the top/bottom borders.
AA:0-AB:1-AC:2-AD3-AE4-AF5-AG6-AH7
AI:0-AJ:1-AK:2-AL3-AM4-AN5-AI6-AO7
BA:0-BB:1-BC:2-BD:3-BE4-BF5-BG6-BH7
BI:0-AJ:1-BK:2-BL:3-BM4-BN5-BI6-BO7
Raster IRQ fires at:
BorderTopIRQ:
0 : turn off upper border
: Set Sprites 0-7 (No Stretch, Enable, X-pos)
: Update RasterIRQ Line to LogoIRQLine1
LogoIRQLine1:
10 : Set Sprites 0-7 y-position (RasterLine+2)
: Set Sprites 0-7 bitmaps (AA,AB,AC,AD...)
: Update RasterIRQ Line to LogoIRQLine1
LogoIRQLine2:
10+(21*1) : Set Sprites 0-7 y-position (RasterLine+2)
: Set Sprites 0-7 bitmaps (AJ,AK,AL,AM...)
: Update RasterIRQ Line to LogoIRQLine2
LogoIRQLine3:
10+(21*2) : Set Sprites 0-7 y-position (RasterLine+2)
: Set Sprites 0-7 bitmaps (BA,BB,BC,BD...)
: Update RasterIRQ Line to LogoIRQLine3
LogoIRQLine4:
10+(21*3) : Set Sprites 0-7 y-position (RasterLine+2)
: Set Sprites 0-7 bitmaps (BJ,BK,BL,BM...)
: Update RasterIRQ Line to BorderBottomIRQ
BorderBottomIRQ:
250 : turn off lower border
: Update RasterIRQ to the BorderTopIRQ
|