Skip to content

A minigolf game written without a game engine in C

License

Notifications You must be signed in to change notification settings

enigames/minigolf

 
 

Repository files navigation

Minigolf

A minigolf game written without a game engine in C. Try it here (Works best in Chrome): http://mgerdes.github.io/minigolf.html

Image

  • Used the Sokol libraries to create a cross platform application with 3D graphics and audio. This allowed using Emscripten to compile into JavaScript and make it playable at the link above.
  • Wrote the Physics code to handle collision detection and collision response for the golf ball.
  • Used ImGui to create in games tools for fast iteration. Also created an in game-editor that can be used to modify the terrain of a hole and then quickly play to get fast feedback. The game-editor can also run Scheme scripts to generate the points and faces of more interesting models.

Image

  • Used the library Lightmapper to generate lightmaps for the terrain and also xatlas to generate lightmap UVs. These lightmaps are then baked into the files for the courses. It can also interpolate between multiple samples to create lightmaps for some moving objects.

Image

Image

About

A minigolf game written without a game engine in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 76.6%
  • C++ 21.4%
  • GLSL 0.7%
  • Scheme 0.7%
  • Objective-C 0.6%
  • HTML 0.0%