Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

-Fruz-

Hmm.. Copy "circles" not rects?

This topic is 5526 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hmmm... I have seen some "rollerball" type games lately, and some of them use a method of getting the "rolling" look on the ball, that i thaught was knda cool. What they do is that they have a big sprite/pic with a texture on it (ball texture), and calculate where to draw from, considering the speed and movement of the ball. hmmm, maybe a little har do understand.. :\ but the real question is, how can this be done in ddraw? i dont have mych experience, so. well? any help apreciated

Share this post


Link to post
Share on other sites
Advertisement
1) Animate individual frames of the ball turning. See the Donuts sample in the SDK for an example.

OR

2) Blit from a rectangular pattern in a surface onto a small square surface. Change the offset of the the source rectangle so that the pattern in the small square surface "scrolls", then Blit the outline of a circle onto the small square.
Set the colour key colour for the small square to the same as the outline of the circle. And finally blit the small square onto the screen with colour keying enabled. That way you''ll get a circle with a scrolling pattern inside it.

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!