Builds

13 repos

Showing 13 of 13 projects

Screenshot of OpenGL Target

~/builds/opengl-target

11

OpenGL Target

A 3D shooting-range game built from scratch in C++ and OpenGL

Source

OpenGL Target (internally named GunGame) is a 3D shooting-arena game written in C++ on top of raw OpenGL, GLUT, and GLEW. The player aims with the mouse and fires at moving targets, with hits tracked against a scoring system.

Bullet trajectories, hit detection against targets and level boundaries, and the camera/object transforms all run through OpenGL's matrix pipeline, driven from a single game loop in gungame.cpp.

Highlights

  • Mouse-driven aiming and firing with bullet trajectory and hit-detection against moving targets
  • Wall and boundary collision handling for the play area
  • Scoring system tied to target hits
  • Built with GLUT/GLEW on raw OpenGL; compiles via Makefile or a single g++ command
  • Ships a Dockerfile/docker-compose setup and an accompanying course PDF (Target Practice assignment)