Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Sprite Image Calculating
Posted by: Bod/STAX Feb,01.2013-20:15 

Is there an easy way to work out what image to display when using a sin-curve?

What I mean by this is something similar to the old snurkel scrollers where you need to display a certain font that has been pre-rotated for a specific sin-offset.

I am trying to add the proper enemy waves in my game. If you check the original R-Type the first two waves you encounter are the red aliens and then you encounter two waves of five sprites each that always face the direction they are travelling along the sin-curve, this is what I need to calculate.

I could do this by hand but it would take quite a bit of time to get right which is why I was wondering if there was an easy way to do it.







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Sprite Image Calculating Bod/STAX Feb,01.2013-20:15
  Re: Sprite Image Calculating WayneKerr Feb,03.2013-00:29
    Re: Sprite Image Calculating ggn Feb,04.2013-08:22
      Re: Sprite Image Calculating Bod/STAX Feb,04.2013-18:23


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson