项目
在 GitHub 查看
mgerdes/Open-Golf
关于
用 C 语言编写的跨平台迷你高尔夫游戏。
游戏与模拟器实测星标增长
- 24小时
- -1
- 7天
- 0
- 15天
- 0
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
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

- 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.

- 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.

Building
Windows
To compile run
build\build-win64.batTo start the game run
out\win64\golf.exeThis also creates
out\win64\golf.slnwhich can be opened in Visual Studio to compile / run everything
Linux
To compile run
./build/build-linux.shTo start the game run
out/linux/golf
OSX
To compile run
./build/build-osx.shTo start the game run
out/osx/golf
3rd Party Libraries
探索相关项目
加载中…