warlords

Started by
4 comments, last by tychon 18 years ago
I am programming a warlords clone and need to animate the ball on the screen, I am using openGL and c++
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.
how do I animate a ball in warlords clone? I am using opengl and c++.
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?
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,
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.

This topic is closed to new replies.

Advertisement