Jump to content
IGNORED

Insight on Light Radius


Danest

Recommended Posts

Haunted House and Adventure both used a light radius around the player when in a maze -- you could see what was inside of your light radius, like walls of a maze, but not beyond it. Does anyone have any insight on how they did that, especially with so little ram? I mean, it's not a bullet, it's probably not a sprite... I can imagine it wouldn't be hard on a modern computer's resources but I really don't know what they did on an atari to do that. In fact I find it amazing that adventure (and certain other more-advanced-than-usual-games) were created at all on an Atari at all.

Link to comment
Share on other sites

You can use Stella to figure out things like this. It has a handy Debug Color mode that makes it so you can see all the objects. The debugger also has a TIA tab that shows the state of all the objects.

 

Screenshot of Adventure:

post-3056-0-80738700-1375711632_thumb.png

 

Screenshot of Adventure using Debug Color mode. Toggle this setting by hitting the keys COMMAND-COMMA on a Mac or ALT-COMMA on other systems.

post-3056-0-80561800-1375711637_thumb.png

 

This are the object colors in Debug Color Mode.

post-3056-0-17549100-1375711776_thumb.gif

 

Stella debugger showing showing 4x player and Playfield Priority. To enter the debugger hit ` (the key to the left of the 1 and just below ESCAPE). Hit it again to exit the debugger.

post-3056-0-62008100-1375711736_thumb.png

 

"player" is what sprites were called when the Atari was designed, so for Adventure the light radius is a sprite set to 4x size. The playfield is also set to have priority over the other objects so that they get drawn behind it. Finally the play field is colored the same as the background.

 

 

 

Now try this with Haunted House and tell me what you found :)

  • Like 3
Link to comment
Share on other sites

Correct. In both games, bit2 is set in CTRLPF to make sprites be hidden under playfield pixels...and the "light" is drawn at quad width using GRP1. That sprite and it's missile have lowest priority (other than the background color) when CTRLPF = %-----1--, so Adventure's ball sprite or Haunted House's GRP0 eyes are visible above the sprite that the light is drawn with.

Link to comment
Share on other sites

  • 2 years later...

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