RSS Bot Posted August 22, 2010 Share Posted August 22, 2010 I constructed this scroll screen via programming. Here how I made this screen. static void ScrollScreen(void) { byte x; //declare x rle2vram(PATTERN2RLE, 0x0400); //pour pattern data into char 128-384(my letters are in char 0-127) rle2vram(COLOR2RLE, 0x2400); //pour color data after my letter's color which is in 0x2000-2400 fill_vram(0x1800,0x9D,768);//fill screen with solid yellow tile fill_vram(0x1800,0x98,1);// draw 1 left roller fill_vram(0x1801,0x9a,30);///draw 30 tiles with the = tile fill_vram(0x181f,0x99,1);//draw 1 right roller x = 0; // x equal zero while (x<22) {//loops this nest until x is at 22 fill_vram(0x1820+x*32,0x90,1); fill_vram(0x1821+x*32,0x9B,1); fill_vram(0x183E+x*32,0x9C,1); fill_vram(0x183F+x*32,0x90,1); draws paper edge x++; add 1 to x } fill_vram(0x1AE0,0x98,1); draws bottom rollers. fill_vram(0x1AE1,0x9a,30); fill_vram(0x1AFF,0x99,1); } http://www.atariage.com/forums/blog/340/entry-7365-scroll-screen/ Link to comment Share on other sites More sharing options...
Recommended Posts