However, the best april fools joke evar was of course, from IGN (I think?). See, one year, IGN claimed that you could get Luigi in Pokemon if you fed a Snorlax a water stone and flipped your gameboy upside down, it would turn into a luigi. What?! I didn't try it! Shut up!
Anyway, here's what I have of Pong Advance so far:
#define RGB(r, g, b) (r + (g << 5) + (b << 10))#define WIDTH 160#define HEIGHT 128struct{ int x, y; int score; } Paddle[2];struct{ int x, y; int vx, vy; } Ball;unsigned short *VideoBuffer;unsigned short *FrontBuffer = (unsigned short*)0x6000000;unsigned short *BackBuffer = (unsigned short*)0x600A000;*(unsigned long*)0x4000000 = (0x5 | 0x400);volatile unsigned int *Buttons = (unsigned int*)0x4000130;volatile unsigned short *Scanline = (volatile unsigned short*)0x4000006; void Init(void){ Paddle[0].x = 5; Paddle[0].y = (HEIGHT / 2) - 5; Paddle[0].score = 0; Paddle[1].x = WIDTH - 10; Paddle[1].y = (HEIGHT / 2) - 5; Paddle[1].score = 0; } void WaitForVsync(void){ while(*Scanline < HEIGHT) {} }void FlipPage(void){ if(*(unsigned long*)0x4000000 & 0x10) { *(unsigned long*)0x4000000 &= ~0x10; VideoBuffer = BackBuffer; } else { *(unsigned long*)0x4000000 |= 0x10; VideoBuffer = FrontBuffer; } }
Yay!