Jump to content
IGNORED

Code for screen color changing


CrazyChris

Recommended Posts

I'm not a programmer, just an Atari 2600 enthusiast.

 

On the original Atari brand 2600 games, after a few minutes when

the game was over the screen would start changing random

colors. Possibly to prevent screen burn in?

 

Did Atari have their own code to do this?

 

Wouldn't it be cool if this was available to programmers

who want to make their homebrews more authentic.

 

Chris

Edited by CrazyChris
Link to comment
Share on other sites

I'm not a programmer, just an Atari 2600 enthusiast.

 

On the original Atari brand 2600 games, after a few minutes when

the game was over the screen would start changing random

colors. Possibly to prevent screen burn in?

 

Did Atari have their own code to do this?

 

Wouldn't it be cool if this was available to programmers

who want to make their homebrews more authentic.

 

Chris

I think Atari did have a standardized code technique for this, and I think it's been discussed on the Stella list. You don't have to use that specific method, though; you can just change the color registers every so often if no input has occurred.

 

Michael

Link to comment
Share on other sites

True that. Many games stored a dedicated color table in RAM...which is pretty wasteful if the game you are developing has cycles to spare whenever color values are stored to the registers (or at least storing them to temp ram).

 

Just search for "attract mode" in a commented disassembly or source code. It's basically taking the original color fetched from a table, EORing that with an updated timer, then using AND to trim off bits according to the B&W switch status (AND #$FF = color, AND #$0F = B&W).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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