---
title: "OpenGL Target — Parth Kapoor"
description: "A 3D shooting-range game built from scratch in C++ and OpenGL"
canonical: "https://parthkapoor.me/builds/opengl-target"
---

# OpenGL Target

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

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.

- Status: shipped
- Language: C++
- Started: May 2025
- Source: https://github.com/parthkapoor-dev/opengl-target

## 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)

## Stack

- **Language**: C++
- **Graphics**: OpenGL, GLUT, GLEW
- **Tooling**: Make, Docker

All builds: [https://parthkapoor.me/builds](https://parthkapoor.me/builds.md)
