2D Gravity Game

This is a gravity game that simulates the gravitational effect of each planets on the space shuttle. The game helps the players gain some intuition about the gravitational dynamics. So the gravitational calculations rely on Newtonian dynamics.

Why I made this game:

I was first inspired by the handmadeHero project to code a 2D game engine from scratch in C++ without using any library. So I started programming the game by activating a single pixel at the corner of the client area. Then I learned how to load bitmap files, rotating images, and lots of other techniques, and made this game. Although I am not a real PC gamer, I love the idea of making video games, and this game was my first complete video game.

How To Play

The goal is to drive the spacecraft directly towards the earth without getting pulled and collide to the other planets. Also there is limited fuel for each level, and as the fuel is used, the spacecraft’s mass decreases, so it will accelerate faster.

Up arrow: Accelerate the spacecraft forward.
Left arrow: Rotate the spacecraft anticlockwise.
Right arrow: Rotate the spacecraft clockwise.

Yorum bırakın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Google fotoğrafı

Google hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Twitter resmi

Twitter hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s

%d blogcu bunu beğendi: