#122017 - purplemaji - Fri Mar 16, 2007 12:38 pm
I'm just getting started developing, and I want to make a simple puzzle game similar to one I've played online. Basically it involves moving around a bunch of square pieces to match them with ones of like color and eliminate them.
I have gone through a couple of tutorials, and haven't had any trouble following them, but now that I have to come up with my own rendering scheme, I need some advice/pointers to put me in the right direction.
At first, I though I would render each block as a sprite, so as it gets moved/slid around, it can be dealt with easily. However, the board will probably me 14 x 9 or 14 x 10, which would eliminate the possibility due to too many (128 sprite max, correct?).
So then I was thinking of tiled, because in the normal state of things, the blocks are arranged in a nice grid that lends itself to tiling. But when a player moves a piece, they slide it into an adjacent spot, and with tiling, I wouldn't be able to slide it over, right? I guess that is what I want to confirm. If I use a tiled scheme, do the tiles fit into a grid only, or can they be in between?
So, assuming you have a 2d array of pieces, each composed of one of 5 styles, what would be your recommended way of rendering them, knowing that 1 or more (up to board size -2) may be moving at any given time? Would you just use framebuffer and blit the pieces into place? Is that fast enough? Is there an easier way?
Sorry for the basic question. This will be my first game dev, and dev on a limited hardware device at the same time, so I just need a little help getting off on the right foot.
Thanks in advance!
PM
I have gone through a couple of tutorials, and haven't had any trouble following them, but now that I have to come up with my own rendering scheme, I need some advice/pointers to put me in the right direction.
At first, I though I would render each block as a sprite, so as it gets moved/slid around, it can be dealt with easily. However, the board will probably me 14 x 9 or 14 x 10, which would eliminate the possibility due to too many (128 sprite max, correct?).
So then I was thinking of tiled, because in the normal state of things, the blocks are arranged in a nice grid that lends itself to tiling. But when a player moves a piece, they slide it into an adjacent spot, and with tiling, I wouldn't be able to slide it over, right? I guess that is what I want to confirm. If I use a tiled scheme, do the tiles fit into a grid only, or can they be in between?
So, assuming you have a 2d array of pieces, each composed of one of 5 styles, what would be your recommended way of rendering them, knowing that 1 or more (up to board size -2) may be moving at any given time? Would you just use framebuffer and blit the pieces into place? Is that fast enough? Is there an easier way?
Sorry for the basic question. This will be my first game dev, and dev on a limited hardware device at the same time, so I just need a little help getting off on the right foot.
Thanks in advance!
PM