#48899 - QuantumDoja - Sat Jul 23, 2005 10:24 pm
Hi, I have looked though the forums and have seen people talking about multiplexing and they refer to using it in the scenario when you want to have more sprites on screen that 128.
So how does it work....if I had 128 64 by 64 sprites (yes I know, that wont fit into sprite space), how could I draw them all on screen at once....
I have been reading about swapping in sprite data during the HBlank....
Can anyone just tell me a little more?
Kind Regards
_________________
Chris Davis
#48903 - tepples - Sat Jul 23, 2005 10:42 pm
During vblank, fill OAM with data for the topmost sprites.
At specific times during draw, set hblank DMA to rewrite the OAM locations corresponding to the topmost sprites with data corresponding to sprites below them.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#48962 - Miked0801 - Sun Jul 24, 2005 9:34 pm
Beware, with 64x64 sprites, you'll also run into too many sprites on a line issues. Also, with multiplexing, the sprites postions have to be logicall segregated on the screen (In space invaders, your ship sprite is always at the bottom so it is a good canidate for multiplexing, the alien ships and shield barriers are also vertically segregated so same thing. The bullets though are not. Guess why shields were killed when aliens got to the same line as them - that's right because of sprite multiplexing conflicts.
#48972 - tepples - Sun Jul 24, 2005 10:56 pm
Miked0801 wrote: |
(In space invaders, your ship sprite is always at the bottom so it is a good canidate for multiplexing, the alien ships and shield barriers are also vertically segregated so same thing. The bullets though are not. Guess why shields were killed when aliens got to the same line as them - that's right because of sprite multiplexing conflicts. |
Nope. Taito's Space Invaders used a bitmap mode.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#49139 - Miked0801 - Tue Jul 26, 2005 8:02 pm
Lol - was thinking of the Atari 2600 version from my childhood.