warlords
I am programming a warlords clone and need to animate the ball on the screen, I am using openGL and c++
Quote:Original post by phil67rpgI'm sure people would be happy to help, but if you want answers you have to ask questions :-)
I am programming a warlords clone and need to animate the ball on the screen, I am using openGL and c++
Rather than try to give advice on how to do that, I'll just refer you to this excellent article.
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?
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.
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
Popular Topics
Advertisement