Jump to content
  • entries
    4,954
  • comments
    2,718
  • views
    1,809,628

Turning gray


atari2600land

318 views

About a month ago, I tried to make a gray shade in Frank the Fruit Fly and failed miserably. It worked, but Frank kept acting weird. I decided to come back to it today. I think I found out the reason why. I was using the a variable to move Frank around AND to switch between the two screens that made the gray shade possible. So I tried changing the a to b and lo and behold, Frank quit acting weird.

        mov        b, [graytimer]        inc        b        mov        [graytimer], b                test    b, 1        jnz        _t2    mov        x1, title1    jmp        _t1_t2:    mov        x1, title2_t1:        mov        [REG_BASE+REG_LCD_TILEBGMEM], x1


So in the end all I needed to do back then was change a to b in my bit of code. But there is a downside to all of this. I don't think I can do the gray effect when I need the b variable for something else, which is most of the screens I have all ready. But I'll try to do it with more screens and see what happens.
blogentry-9475-0-91476900-1551990687.png
I bought Togepi's Adventure game but the guy hasn't shipped it yet. He said he'd do it on Thursday, and today is Thursday. Getting anxious to see whether it has been shipped or not because I paid dearly for it.

0 Comments


Recommended Comments

There are no comments to display.

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...