A downloadable game for Windows

About the Game

A Pong clone built in Unity - but with a twist: every single movement, bounce and calculation in the game runs through a custom vector mathematics library written from scratch in C++, compiled as a DLL, and plugged directly into Unity. Unity's built-in math was never used.

Built as a solo assignment at Forsbergs Skola to understand how game engines handle mathematics internally.

The Vector Math Library

  • Full Vec2 and Vec3 implementations written in C++
  • Operations: Add, Subtract, Scale, Magnitude, Normalize, Dot, Cross, Lerp, Slerp, Reflect, Project, MoveTowards, ClampMagnitude
  • C++ to C# interop via DllImport and StructLayout(LayoutKind.Sequential)
  • Performance benchmarks comparing the custom DLL against Unity's built-in vectors
  • Unit tests for every function including edge cases

Gameplay Features

  • Classic Pong mechanics - first to 5 points wins
  • Score tracking for both players with win message display
  • R key to restart at any time

Controls

  • Player 1: W / S — Move paddle up / down
  • Player 2: / — Move paddle up / down
  • R — Restart

Development

Solo project - Forsbergs Skola Game Programming course. The goal was not to build a complex game but to understand the mathematics that power every game engine — and prove it by building those systems from the ground up.

Published 11 days ago
StatusReleased
PlatformsWindows
AuthorValenVier
Tags2D, Multiplayer, pong, Singleplayer

Download

Download
build.zip 36 MB

Install instructions

How to Install

  1. Download the ZIP file
  2. Extract it to any folder on your computer
  3. Open the extracted folder and run PongClone.exe
  4. No installation required

Leave a comment

Log in with itch.io to leave a comment.