Sign in to follow this  
phil67rpg

warlords

Recommended Posts

jyk    2094
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
SelethD    456
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
tychon    652
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this