4 ms·
If you rely on common game libraries and widely supported web APIs, you can get quite far with C. Here's an OpenGL and SDL2 game running in the browser that I p
by parasti 3y ago
If you rely on common game libraries and widely supported web APIs, you can get quite far with C. Here's an OpenGL and SDL2 game running in the browser that I ported (and also maintain):
https://play.neverball.org/ https://play.neverball.org/
Getting it to render was the easy part; I've since spent the majority of time getting it to feel native to the browser, implementing responsiveness (web dev term for adapting to viewport size), touch controls, GUI tweaks, working around fullscreen API gotchas (e.g., the Esc key/Back button is reserved), and any other small things that might remind you that this is not a native browser game.
- swingingFlyFish 3y agoDude this is really cool. Do you have a repo or other site where you talk about this?
- PennRobotics 3y agoLooks like https://github.com/Neverball/neverball https://github.com/Neverball/neverball and https://www.neverball.org https://www.neverball.org
- all2 3y agoI don't think I've ever played a game where the laptop touch pad made so much sense. I think that's the most natural feeling UI I've ever used.
- deleted 3y ago[deleted]
- hejira 3y agoGreat game! My four year old got hooked on it too!
- parasti 3y agoThat's awesome!