• Advertisement
Sign in to follow this  

warlords

This topic is 4321 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

Advertisement
Quote:
Original post by phil67rpg
I am programming a warlords clone and need to animate the ball on the screen, I am using openGL and c++
I'm sure people would be happy to help, but if you want answers you have to ask questions :-)

Rather than try to give advice on how to do that, I'll just refer you to this excellent article.

Share this post


Link to post
Share on other sites
what actual part of animating the ball are you having trouble with?

do you have the 'sprites' for the ball yet?
is this a 2d game or 3d game? (im unfamilliar with warlords)

How much have you already done on the ball animation, and where are you stuck now?

Share this post


Link to post
Share on other sites
it is 2d and I need a general animation algorithm, I almost have it figured out, the ball reflects off the borders of the screen at present,

Share this post


Link to post
Share on other sites
Animation in 2D usually means you have a list of frames that you iterate through to achieve the illusion of the object doing something.

If you mean moving the ball around on screen, I recommend looking into glTranslate*() where * is i, f, or d -- representing the integer, float, and double types respectively.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement