Re:Open Golf: A cross-platform minigolf game written in C
by pjmlp on Thursday March 24, 2022 @02:10PM
(#30793471)
Not to diminish the value of their efforts, welcome to the days of 16 bit game programming, naturally minus the browser part.
Plenty of retrogaming stuff to learn from.
Re:Open Golf: A cross-platform minigolf game written in C
by nikki93 on Friday March 25, 2022 @10:38PM
(#30808810)
I've liked Raylib lately for writing graphicsy applications. Here's a small example that does 3d, runs in the browser, code shown below: https://www.raylib.com/examples/core/loader.html?name=core_3...
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?
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
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