About
Hole-in-One is a browser-based mini-golf game written entirely in TypeScript, built as a deep dive into 2D physics simulation and game development without relying on a game engine. The mechanics are all hand-rolled: the ball's trajectory is calculated from your aim angle and shot power, collision detection handles the course boundaries and obstacles, and each hole is designed to reward precision over brute force. The game runs directly in the browser with no install required. Building it from scratch in TypeScript — rather than reaching for Unity or Phaser — meant solving genuinely interesting problems around physics, rendering, and game state management, all of which are visible in the source code.
Highlights
- ✓ Physics-based ball movement and collision
- ✓ Multiple holes with increasing difficulty
- ✓ Built entirely in TypeScript with no game engine
Topics
gametypescriptbrowser