Thegingerbreaddude
Still Fresh
- Joined
- Jun 13, 2004
- Messages
- 48
How hard would the code be to make a game where when A is pressed the screen goes blank white and B makes it go pure black. Any SDK
#include "gp32.h"
u16 *framebuffer;
void main(){
framebuffer= (u16*) FRAMEBUFFER;
gp_SetScreen(framebuffer,16);
gp_ButtonInit();
gp_SetCpuSpeed(40);
int x;
while (1){
if (gp_ButtonResult()&BA){
for(x=0;x<320*240;x++) framebuffer[x]=0xFFFF;
}
if (gp_ButtonResult()&BB){
for(x=0;x<320*240;x++) framebuffer[x]=0x0000;
}
}
}
