Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void bitmapGraphicsTest(){
- VBlankIntrWait();
- SetMode( MODE_3 | BG2_ON);
- u16 *temppointer;
- temppointer = BG_COLORS;
- for(i=0; i<9; i++) {
- *temppointer++ = 0;
- }
- unsigned short* Screen = (unsigned short*)0x6000000;
- for(u8 x=0;x<240;x++){
- for(u8 y=0;y<160;y++){
- Screen[(y * 240) + x] = RGB16(x % 32, y % 32, (x + y) % 32);
- }
- }
- for(int i = 0; i < 256; i++) VBlankIntrWait();
- SetMode( MODE_0 | BG0_ON | OBJ_ON);
- loadTilesAndPalette();
- initMenu();
- currState = STATE_MENU;
- }
Advertisement
Add Comment
Please, Sign In to add comment