In the first part of this tutorial we have learned some basics about vectors in 2d and logic of simulating radial gravity. Now it is time to put what we have learned into practice.
When i played angry birds space first time, i really loved the concept. I didn’t think about how Rovio made it because i knew they used physics engine for it and i really didn’t know much things about using physics engines. Today i still don’t know much 🙂 so i challenged myself to simulate radial gravity without using any physics engine. Aaand challenge accepted.
While i was doing some experiments with bitmap masking, i had an idea. Could i create an effect that make an image look like it is in the water? After some work, i got pretty satisfying result with some basic bitmap masks. In this tutorial i will show you my way and i am sure you can get better results by trying with different masks.
Jumping is one of the main movements that you can’t think of a game character without it. Although it is very easy to write a basic jumping code sometimes you want your characters to jump more realistically. In this post i will write how you can do this without adding physics. If you need physics engine just for jumping then this post is absolutely for you.