#include #include "lib2dh.h" void main () { long x=100,y=100; InitialiseGraphics(); while(PAD!=PADLstart+PADLselect) { RenderPrepare(); ReadPad2(); if (PAD & PADLup) y--; if (PAD & PADLdown) y++; if (PAD & PADLleft) x--; if (PAD & PADLright) x++; //if (CurrentBuffer==0) DrawRectangle(10,10,20,20,0,255,0,4095); //else DrawRectangle(30,10,40,20,0,255,255,4095); DrawRectangle(0,0,SCREEN_WIDTH-1,SCREEN_HEIGHT-1,0,255,255,4095); DrawGradBox(x,y,100,100,0,5, 255,128,0, 255,0,0, 0,255,0, 0,0,255); RenderFinish(); } ResetGraph(3); }