One of my earlier game engines. This was a Game project named “Galaxy Pong” , A game where you bounce giant ball that is rolling around the Globe to destroy incoming asteroids. The player controls a paddle (similar to
pong) that moves around the equator and bounces the ball in different directions. With the help of some
more bonus weapons such as turrets.
Challenges in Development
The first challenge that was present in this project was to run the game in a 3D environment and maintaining all the co-ordinates.
The values and co-ordinates had to be calculated in a Speherical co-ordinate system and then converted into XYZ system for the game to run.
To calculate any point on the sphere we need 3 different values. The radius ,and two angles relative to the center ,the polar angle and azhimuth angle.
The dotted lines represents all points with Radius “r”
The two angles from the center of the sphere are used to identify any
point on the sphere.