Live data from Hacker News

Open Golf: A cross-platform minigolf game written in C

github.com

41–50 of 99 posts

Re: Open Golf: A cross-platform minigolf game written in C

#44

Cross-platform except for MacOS https://github.com/mgerdes/Open-Golf/issues/3

Builds and runs well in Asahi Linux :) Frame rate isn't great without GPU support, but totally playable.

Absolutely crazy that Asahi Linux beats MacOS on even one silly datapoint of compatibility lol. Open source is sick.

Re: Open Golf: A cross-platform minigolf game written in C

#45

I tried to analyze the running app with the Firefox dev console, but the GitHub hosted page said there were no sources! Browsing the Sokol Github, it looks like it's compiling to web assembly. I'm not very familiar with web assembly, how does one normally debug it?

With the sokol libs as platform abstraction it works quite well to develop and debug a native build in a regular C/C++ IDE and then only cross-compile to WASM. Most bugs are platform agnostic and would also happen in the native build. For the rare case that problems only happen in the WASM build, regular printf-debugging usually works well enough, or in case of WebGL specific problems there will be validation errors on the JS console from the browser's WebGL implementation).

(disclaimer: sokol author)

Re: Open Golf: A cross-platform minigolf game written in C

#47
post #8
post #6

Earlier quoted context omitted.

Hi, have you meet Wordle? :)

But Wordle takes what 15 minutes of your day?

It's not just Wordle proper, though, it's all the variants...Nerdle, Worldle, Heardle, Dordle/Quordle/Octordle/etc...

Re: Open Golf: A cross-platform minigolf game written in C

#48
post #26

Impressive to see C being able to create x-plat 3D games that run in Browser + popular Desktop + Mobile OS's. Typically there's big companies with large dev teams working on accomplishing such a feat & this project does it with with a 50 year old language and a handful of libs

What's the TLDR on how to compile the C code to run in the browser?

Re: Open Golf: A cross-platform minigolf game written in C

#49
post #26

Impressive to see C being able to create x-plat 3D games that run in Browser + popular Desktop + Mobile OS's. Typically there's big companies with large dev teams working on accomplishing such a feat & this project does it with with a 50 year old language and a handful of libs

What's the TLDR on how to compile the C code to run in the browser?

Emscripten. If you use something like SDL porting is trivial.

Working on a project to port a 20 plus year old c/cpp code base to the web. The tooling was like 98% there but I've had to upstream a few fixes or find a workaround every now and then.

Re: Open Golf: A cross-platform minigolf game written in C

#50

Cross-platform except for MacOS https://github.com/mgerdes/Open-Golf/issues/3

They seem to have a build script for "OSX" but maybe it's just incomplete / work-in-progress? It uses glfw, which I know for sure still runs on Mac because I use it in my own cross-platform graphics projects.
Post reply on HN