#18725 - punchy - Thu Apr 01, 2004 8:59 pm
Hi,
my project has a playfield that is 240 pixels wide by 256 pixels high, so i want to provide a scaled videomode so that the whole playfield can be shown on screen at once. I'm using interrupts to monkey around with the bg scroll registers at each screen line which scales the tile backgrounds very nicely. The problem is with the sprites.
I only want to alter the sprites vertical height, and I also want to provide sprite flipping. I'm still playing around with the sprite parameters, but it's currently something like this:
s16 testHoriz = 1<<8;
s16 testVert = 1<<8|1<<6;
rotData[0].pa = testHoriz; // 1<8 or -1<<8 flips sprite horizontally
rotData[0].pb = 0;
rotData[0].pc = 0;
rotData[0].pd = testVert;//Using -ve values flips the sprite vertically
So i have 4 sets of parameters for the 4 possible sprite flip combinations.
The problem (finally) is that sometimes the sprites are appearing 1 pixel
out of aligment horizontally. So if i have several sprites nexy to each other, i can see single pixel gaps.
Any help would be most appreciated.
my project has a playfield that is 240 pixels wide by 256 pixels high, so i want to provide a scaled videomode so that the whole playfield can be shown on screen at once. I'm using interrupts to monkey around with the bg scroll registers at each screen line which scales the tile backgrounds very nicely. The problem is with the sprites.
I only want to alter the sprites vertical height, and I also want to provide sprite flipping. I'm still playing around with the sprite parameters, but it's currently something like this:
s16 testHoriz = 1<<8;
s16 testVert = 1<<8|1<<6;
rotData[0].pa = testHoriz; // 1<8 or -1<<8 flips sprite horizontally
rotData[0].pb = 0;
rotData[0].pc = 0;
rotData[0].pd = testVert;//Using -ve values flips the sprite vertically
So i have 4 sets of parameters for the 4 possible sprite flip combinations.
The problem (finally) is that sometimes the sprites are appearing 1 pixel
out of aligment horizontally. So if i have several sprites nexy to each other, i can see single pixel gaps.
Any help would be most appreciated.