Live data from Hacker News

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

github.com

71–80 of 99 posts

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

#75
post #49

Earlier quoted context omitted.

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.

Good on you man. If I got an email that said “opportunity: port 20+ cpp app to web” I would chuckle and close that sucker real quick. Modern cpp I maybe can deal with. That 90s stuff is real bad.

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

#76

Any recommendations to learn to build cross-platform games like this? I work on frontend projects day-to-day. I'd love to build a simple cross-platform game in C/Zig/C++ for some variety and to learn lower-level programming. I've looked at Handmade Hero in the past but its specific to Windows at the moment.

It’s 99% due to nostalgia but look at chocolate doom. It’s a tightly coded 2.5D game. There’s TONS of documentation on how it works. Recreating the engine in a familiar language and playing the WADs of you childhood is fun. But if you want 3d with OpenGL maybe look at quake. That’s how I learned GL.
Post reply on HN