top of page

Follow and Run away game!

This video is about a game toolkit that I created while learning Game Development using OpenGL.

This video contains a sample play from my very first game created from scratch using a game toolkit created from scratch.

BASIC GAME TOOLKIT

A room with a sphere, teapot and a cube.

Camera can be controlled using W, A, S, D, Z and X.

  (z-)X  W(y+) Z(z+)

  (x-)A  S(y-)  D(x+)

Rotate the scene using arrow keys.

Sphere is controlled by the player and can be moved in all 3 dimensions.
To control the sphere -

   (z-)U  I(y+) O(z+)

   (x-)J  K(y-) L(x+)

Teapot is a following object. When the sphere is within 50.0 pixels of
its vicinity, the teapot starts following the sphere. Additional effects
(for learning purposes) activate like a repetitive warning and a couple of
specular lights. However, the sphere is faster than the teapot.
While following, if the teapot lags by more than 50.0 pixels, it
starts returning to its original position, deactivating any special effects
on the scene.

The cube is a repellent object. Whenever the sphere comes close to the cube,
it floats away from it (the sphere) along the line joining their centers.
Cube position is randomely selected within the room at every run.

Objective of this (extremely basic) game is that the player has to manipulate the
position of the teapot by controlling the sphere in such a way that the cube and teapot
collide. If they collide, the player wins!

This game does NOT implement specialKeys function of OpenGL, it implements InputManager so there can be multiple inputs from the keyboard simultaneously for controlling the sphere, moving the camera, etc.

NOTE:: I've made this game just to demonstrate the capabilities of this tookit.

Further improvements to this game toolkit:
-- collision manager for all collidable objects
-- Collidable game objects
-- Collider chain implementation

bottom of page