gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > question about displaying sprites

#24845 - strider - Thu Aug 12, 2004 8:51 am

Hi! I just went through a.v. ebbesen's tutorial on making pong. I decided to try out making a game on my own and i was thinking of making an arkanoid clone. Since arkanoid has many of the same blocks i was wondering if you could just load in a sprite once but draw it multiple times each frame? ie. instead of having
OAMEntry sprites[128]
sprites[0], sprites[1], sprites[2].... etc. for each block could i just use one slot in the array to draw the same picutre of a block many times in different positions on the screen? i hope this makes sense....any help would be greatly appreciated! thanks

#24848 - NoMis - Thu Aug 12, 2004 10:10 am

You have to use seperate OAMEntrys but you can let them use the same Image Cell Data. So you will need less video memory for it. There are ways to increase the number of sprites displayed but they are not worth doing in most situations since 128 is normaly enough.

NoMis

#24876 - tepples - Thu Aug 12, 2004 9:15 pm

In a breakout/arkanoid clone, you're probably going to want to draw the bricks with a Mode 0 tiled background rather than with sprites.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.