Creating a top-down spaceship

Posted by Ali on Game Development See other posts from Game Development or by Ali
Published on 2014-08-25T13:12:01Z Indexed on 2014/08/25 16:29 UTC
Read the original article Hit count: 5656

Filed under:

I'm creating a top-down 2D space game in LIBGDX for android.

When spaceship is going forward it will look like this:

enter image description here

when it goes upward I want to change it's direction with a nice animation so it seems like a real spaceship. A between frame would be like this:

enter image description here

I have rendered the spaceship in different Z axis degrees from ship0 to ship90. Calculating rotation on XY plane wouldn't be so hard, but I don't know how to calculate the rotation on Z axis so I can choose the right sprite to use.

© Game Development or respective owner

Related posts about 2d