Re: [stella] variations on a theme

Subject: Re: [stella] variations on a theme
From: Nick S Bensema <nickb@xxxxxxxxxxxx>
Date: Tue, 20 Jan 1998 21:44:27 -0700 (MST)
>
>> I think that it would be better to convert the code to the standard format,
>> as this would allow other things like diagonal moving bombs.
>
>Can you do this, or do you want me to try?
>
>> Couldn't the already existing destroy-the-shields routine be generalized for
>> use with bombs and player shots?
>
>I can use the existing routine to easily make an invaders-destroy-shields
>routine, but it'd be difficult to do it within the same code.  Reason: the
>players-destroy-shields routine searches from the bottom up to find a
>pixel to remove, while the invaders-destroy-shields must start at the top
>of the shield and go down.  It's easier to copy the routine and change a
>couple things than to try to shoehorn everything into one routine.

Combat stores shapes from 0 to 150 degrees, and once it hits 180 degrees
it must flip the sprite two ways: once by setting the REFP register for
that player, and flipping the player data in memory, vertically.

Whether it flips the player or not, it has to copy the data into RAM
anyway, so it uses the same routine to do both.  A simple status
register determines whether the counter is incremented with a DEY, or
a DEY followed by two INY's.  I don't have the details right now, but
if you want you can look it up yourself and see how this was done and
see if this could be applied to INV.

--
Stella list is Administered by krishna@xxxxxxxxxxxx <Glenn Saunders>
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/stella.html
+-shameless plugs-------------------------------------------------------+
| Stella documentary at http://www.primenet.com/~krishna                |
| Nick's VCS links via http://www.primenet.com/~nickb/atariprg.htm      |
| Write the best game, win framed autographs of famous Atari alumni!!   |
+-----------------------------------------------------------------------+

Current Thread