graphics - Old 8 bit retro video emulation - sprite drawing -
i'm trying understand how sprites drawn onto scanlines of example vdp 9929a graphics chip, emulation.
there limit of 4 sprites per scanline, mean cannot have more 4 sprites same y coordinate?
if cascade them draw 32 sprites on each line below 1 , 1 pixel right of each other overlapping each other, result in centre of 16 sprites being drawn on same line. still drawn correctly not scanline relating starting y coord. hope i'm making sense.
thanks in advance.
there can no more 4 sprites on single scanline; additional sprites' horizontal pixels dropped. sprites higher priority drawn first.
in other words, each line, chip draw 4 sprites highest priority exist on line, not start on line.
1111 3333 5555 1111 2222 3333 4444 5555 6666 1111 2222 3333 4444 5555 6666 1111 2222 3333 4444 5555 6666 2222 4444 6666
....where 1 highest prio, scan line 1 draw sprite 1,3,5, scan line 2-4 draw 1,2,3,4, scanline 5 draw 2,4,6.
1111 3333 5555 1111 2222 3333 4444 1111 2222 3333 4444 1111 2222 3333 4444 2222 4444 6666
Comments
Post a Comment