#16182 - darknet - Tue Feb 10, 2004 8:15 am
Hey everyone,
I want to display a bitmap in mode 3 (for its high quality) and then go to another bitmap when the start button is pressed. Basically, I want what would become a splash screen that leads to a menu screen.
Here's what i have so far and all it does is display the first image (because i'm using the same buffer? how'd i clear it? should i use a different mode??):
int main()
{
SetMode(MODE_3 | BG2_ENABLE);
while(1) {
if( ((*BUTTONS) & START_BUTTON)) {
for(int y = 0; y<160; y++)
for(int x = 0; x< 240; x++)
DrawPixel3(x,y, intro_Bitmap[y * 240 + x]);
}
else{
for(int z = 0; z<160; z++)
for(int w = 0; w<240; w++)
DrawPixel3(w,z, blueback2_Bitmap[z*240 + w]);
}
}
return 0;
}
and i obviously have a drawpixel function and the right defines for the buttons. I want to transition between the two when start is pressed.
Thanks for any help and sorry for such a long post,
-Mike
I want to display a bitmap in mode 3 (for its high quality) and then go to another bitmap when the start button is pressed. Basically, I want what would become a splash screen that leads to a menu screen.
Here's what i have so far and all it does is display the first image (because i'm using the same buffer? how'd i clear it? should i use a different mode??):
int main()
{
SetMode(MODE_3 | BG2_ENABLE);
while(1) {
if( ((*BUTTONS) & START_BUTTON)) {
for(int y = 0; y<160; y++)
for(int x = 0; x< 240; x++)
DrawPixel3(x,y, intro_Bitmap[y * 240 + x]);
}
else{
for(int z = 0; z<160; z++)
for(int w = 0; w<240; w++)
DrawPixel3(w,z, blueback2_Bitmap[z*240 + w]);
}
}
return 0;
}
and i obviously have a drawpixel function and the right defines for the buttons. I want to transition between the two when start is pressed.
Thanks for any help and sorry for such a long post,
-Mike