3 ms·
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 te
by mythz 5y ago
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
- foo92691 5y agoWhat's the TLDR on how to compile the C code to run in the browser?
- hoten 5y agoEmscripten. 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.
- flatiron 5y agoGood 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.
- hoten 5y agoIt's actually a purely voluntary endeavor. I'm attempting to port a game engine called Zelda Classic to the web. So far, so good!
- nikki93 5y agoHere's a little template that uses Raylib: https://github.com/nikki93/raylib-template https://github.com/nikki93/raylib-template
- pjmlp 5y agoNot 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.
- deleted 5y ago[deleted]
- nikki93 5y agoI'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_3d_camera_free https://www.raylib.com/examples/core/loader.html?name=core_3...