Skip to content

Repository files navigation

2DProGolf

简体中文

Play online

2DProGolf is a procedural side-view golf prototype about reading terrain, wind, club choice, and the shape of every shot.

2DProGolf cover

About

The game combines a 2D course with airborne depth simulation. Hills, ground materials, wind, and club parameters all affect the ball, while the camera and off-screen hole indicator keep long shots readable.

The current web build also contains a growing career-style structure around the core golf loop. It is playable, but still being refactored and expanded rather than presented as a finished commercial game.

How to play

  • Start a new game from the title screen.
  • Press near the ball, drag away from the intended shot direction, and release to swing.
  • Drag elsewhere on the course to pan the camera.
  • Use the on-screen controls to choose a club and plan around wind, slope, and terrain friction.
  • Reach the hole in as few strokes as possible.

Mouse and touch input share the same aiming and camera gestures.

Features

  • Procedural terrain with contour shading and terrain-specific friction.
  • Wind, slope, club choice, and 2D-plus-airborne ball movement.
  • Camera pan, ball follow, and an off-screen hole indicator.
  • Save and load support for the current browser session.
  • Separated data, engine, and view folders as an incremental refactor baseline.

Development

Requires a current Node.js installation.

npm install
npm run dev

Create and preview a production build:

npm run build
npm run preview

The deployable site is built with Vite and published through the GitHub Pages workflow in .github/workflows/deploy.yml.

Status

The core golf loop and browser build are playable. The repository is still an active prototype: architecture extraction, campaign content, balance, and production-level testing are incomplete.

License

No open-source license is currently included in this repository.

About

A playable procedural side-view golf prototype about terrain, wind, and shot planning.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages