What I'd really like would be to program a game in C (or classic Turbo Pascal) and have a way to run it "hosted" in a iOS, Android or <whatever platform> native app. Is that possible nowadays?
What I'd really like would be to program a game in C (or classic Turbo Pascal) and have a way to run it "hosted" in a iOS, Android or <whatever platform> native app. Is that possible nowadays?
The web environment would provide all the API support for your game: graphics, audio, networking, etc. in a cross platform way.
This works today - many game engines compile to wasm, from Unity to Godot - but it is more popular to ship a native build of the engine on each platform rather than use a web environment. But that's because those engines take the time to port to each of those platforms; instead, you can use wasm + the web to get portability in a much simpler way (but with some limitations, of course).
I'm not aware of a tech stack that does that.
This promises a single C code base and portable executable generation for
Linux
MacOS
Windows
FreeBSD
OpenBSD
NetBSD