Route

icon

Project Info

Developed For: University (Computer Graphics Coursework)

Platforms: Windows

Responsibilities: Programming, Design, asset preparation

Tools: C++, Win32 API, OpenGL 

Team size: 1

Time Frame: 3 months

Introduction

‘Route’ is a game developed using C++ and OpenGL. In this game, players control a car moving along a pre-constructed path to collect coins and reach the end of the track. It was built on a template provided by the university, so it wasn’t created entirely from scratch. My contributions included writing shaders for various effects, programming the gameplay mechanics, and setting up the scene, etc.

Main Features

Here are some of the main features of this game:

  1. The path the car follows consists of several connected segments, which can be a line, an arc, or a Bézier curve.

  2. A basic particle system was created to render a rain effect in the game. It utilizes instance rendering and includes various properties like particle speed, size, spawn shape, color, texture, and more.

  3. An outline shader is created for UI text, featuring properties such as text and outline color, outline width, and more.

  4. Some static objects, like coins, are rendered using instance rendering.

  5. Pressing the ‘H’ key allows us to toggle the scene between night and daylight modes.

  6. By pressing ‘F’, we can toggle the car’s headlights on and off.

  7. Using the ‘A’ and ‘D’ keys, we steer the car left and right, respectively.

  8. Pressing the ‘V’ key allows us to change the game’s view.

  9.  There are five views: behind the car, to the left of the car, to the right of the car, above the car, and a free view.
  10. When in free view, the ‘WASD’ keys and mouse movements can be used to navigate the scene.