百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

Open-Golf

> 编程语言
开源

一款用 C 语言编写的跨平台迷你高尔夫游戏。

1.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一款用 C 语言编写的跨平台迷你高尔夫游戏。

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.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
  • Kenney Art Assets
  • lightmapper
  • mattiasgustavsson/libs
  • miniz
  • parson
  • sokol
  • stb
  • xatlas

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •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
  • •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.
  • •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
  • •To compile run ./build/build-linux.sh
  • •To start the game run out/linux/golf

> 标签

Candroidcgamegame-dev

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言