[stella] Pointing a sprite at a target.
bob.montgomery at thomson.com
bob.montgomery at thomson.com
Mon Jun 4 11:56:47 CDT 2007
Hi Robert,
Very cool! Thanks for sharing.
-Bob
-----Original Message-----
From: stella-bounces at atari2600.org [mailto:stella-bounces at atari2600.org]
On Behalf Of R Mundschau
Sent: Saturday, June 02, 2007 11:22 PM
To: Atari 2600 programming list
Subject: [stella] Pointing a sprite at a target.
A topic was posted on the AA forums about figuring out how to point a
sprite at another object on the screen. A space ship for example
with 16 facings needs to point at the player's ship. I have found a
solution for this problem that I think works well. I posted the
solution on AA, but I know not everybody looks there so I wanted to
share a copy of my solution with the mailing list. I have attached a
demo binary (use joy1 to move the white arrow around the purple one),
and the source code for the subroutine that finds the direction.
Cheers!
Robert M
More information about the Stella
mailing list