Skip to content

IMAC semester 3 C++ and openGL 3 project. temple run clone but about a character running on a spline.

Notifications You must be signed in to change notification settings

OMeyer973/splineRacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

splineRacer

IMAC semester 3 C++ and openGL 3 project. temple run clone but about a plane flying around a spline.

Splineracer demo

see demo video

Install project

mkdir splineRacer-build
cd splineRacer-build
cmake ../splineRacer
make
./src/SPLINERACER

Game engine features

  • Analogic movement in spline-space : rotate around the spline - X-axis: radial angle, Y-axis: radial distance
  • World-space spheric collisions
  • transform animation of objects
  • optimised render and physics - far away objects are not computed

Inspirations and references

Games inspirations

References

Libraries used

  • tinyObjLoader
  • Json for modern c++
  • SDL_mixer
  • FreeType

Possible optimisations

  • less collision detection: sort colliders in a octo-tree like hierarchy

Coding norms

  • all variables must be in lowerCamelCase
int myVariable = 1;
  • Class must have both pragma once and indef..define..endif
  • Class names must be in UpperCamelCase
  • Class members must be protected and have an underscore as prefix ("_")
#pragma once
#ifndef __MYCLASS__HPP
#define __MYCLASS__HPP

class MyClass {
	protected:
    int _myVariable = 1;
}
#endif
  • Comments must be written in english as much as possible
  • Don't forget to use Doxigen syntax when commenting your classes !

About

IMAC semester 3 C++ and openGL 3 project. temple run clone but about a character running on a spline.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published