https://github.com/mgerdes/Open-Golf Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} mgerdes / Open-Golf Public * Notifications * Fork 25 * Star 899 A cross-platform minigolf game written in C. MIT License 899 stars 25 forks Star Notifications * Code * Issues 0 * Pull requests 1 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 3 branches 0 tags Code Latest commit @mgerdes mgerdes Fix the osx build ... 30b10d6 Mar 24, 2022 Fix the osx build 30b10d6 Git stats * 410 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time build Add an icon to the ios build Mar 19, 2022 data Fix a couple of bugs Mar 21, 2022 src Fix the osx build Mar 24, 2022 tools Refactor shaders Feb 21, 2022 .gitignore Fix bug with screen being white Mar 8, 2022 CMakeLists.txt Fix the osx build Mar 24, 2022 LICENSE Initial commit Sep 24, 2020 README.md Fix the osx build Mar 24, 2022 View code [ ] Open Golf Platforms Info Building Windows Linux OSX 3rd Party Libraries README.md Open Golf A cross-platform minigolf game written in C. Platforms * HTML: https://mgerdes.github.io/minigolf.html (Works best in Chrome) * iOS: https://apps.apple.com/us/app/open-golf/id1615224465 * Android: https://play.google.com/store/apps/details?id= me.mgerdes.open_golf * Windows * Linux Info Image * Used the Sokol libraries to create a cross platform application with 3D graphics and audio. * 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 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 Building Windows * To compile run build\build-win64.bat * To start the game run out\win64\golf.exe * This also creates out\win64\golf.sln which can be opened in Visual Studio to compile / run everything Linux * To compile run ./build/build-linux.sh * To start the game run out/linux/golf OSX * To compile run ./build/build-osx.sh * To start the game run out/osx/golf 3rd Party Libraries * cembed * cimgui * fast_obj * glfw * glslcc * imgui * Kenny Art Assets * lightmapper * mattiasgustavsson/libs * miniz * parson * sokol * stb * xatlas About A cross-platform minigolf game written in C. Topics android game c ios gamedev game-development game-dev minigolf Resources Readme License MIT License Stars 899 stars Watchers 10 watching Forks 25 forks Languages * C 84.9% * CMake 7.8% * GLSL 7.0% * Other 0.3% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.