Skip to content

A simple car sandbox implemented using OpenGL and C++

Notifications You must be signed in to change notification settings

gjain-7/opengl-car-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opengl-car-game

Simple car game written in C++, using OpenGL 3.3.

Notable features include:

  • Shadow mapping
  • Dynamic particle system
  • Lap and Scoring
  • Penalty and Time Keeping

Dependencies

Ubuntu/Debian
sudo apt-get install libglfw3-dev libglm-dev
Vcpkg on Windows
vcpkg install --triplet x64-windows glfw3 glm

Build

If dependencies are visible to CMake by default, can build like so:

git lfs pull
mkdir build
cd build
cmake ..
make

Otherwise, you'll need to point CMake to the Vcpkg toolchain file to find the dependencies and specify the triplet. For example on Windows:

git lfs pull
cmake .. -DCMAKE_TOOLCHAIN_FILE="[vcpkg root]\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows
.\opengl-car-game.sln

Usage

./opengl-car-game basic|physics

basic - No intertia, simple turning

physics - uses formula for more realistic driving experience.

Todo

  • Make track
  • Display
    • speed
    • lap count, timer
    • score (custom)
  • Headlight on/off
  • Camera views (left,right,top,inside,back,front)
  • Weather change
  • Sound
  • Wrong Way
  • Menu
  • Obstruction

About

A simple car sandbox implemented using OpenGL and C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •