Jump to content

Kiwi's Blog

  • entries
    92
  • comments
    70
  • views
    87,998

Scroll screen


Kiwi

550 views

blogentry-24767-128245550004_thumb.png

 

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);

}

2 Comments


Recommended Comments

I know just enough about programming and the Colecovision to be impressed!

 

Procedurally generating graphics feels like cheating.. in a good way :)

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...