Re:Open Golf: A cross-platform minigolf game written in C
by foo92691 on Thursday March 24, 2022 @01:30PM
(#30792929)
What's the TLDR on how to compile the C code to run in the browser?
[ Parent
| on HN ]
Re:Open Golf: A cross-platform minigolf game written in C
by hoten on Thursday March 24, 2022 @01:36PM
(#30793020)
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
by flatiron on Thursday March 24, 2022 @07:48PM
(#30797008)
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
by hoten on Sunday March 27, 2022 @02:51AM
(#30818291)
It's actually a purely voluntary endeavor. I'm attempting to port a game engine called Zelda Classic to the web. So far, so good!
Re:Open Golf: A cross-platform minigolf game written in C
by nikki93 on Friday March 25, 2022 @10:36PM
(#30808805)
Here's a little template that uses Raylib: https://github.com/nikki93/raylib-template