3 ms·
How do you make a game that can work on Mac and Win and Linux at the same time? What is the easiest way?
by desireco42 10y ago
How do you make a game that can work on Mac and Win and Linux at the same time? What is the easiest way?
- DizzyDoo 10y agoThe easy way is to write it at a higher level, and let the abstraction handle the meat of it for you. The easiest way is just to use an engine, an existing array of tools and frameworks that manages the abstraction in such a manner that (for the most part) you just have to select the build target. In this specific case, I used the Unity engine. I write in C#, and with Mono/OpenGL, Unity can build executables to various platforms, on (mostly) the same code.
- desireco42 10y agoThank you.
- drharby 10y agoI hear xamarin's toolset compiles to multiple platforms, if you know csharp. kinda the route im going for my game.
- zyxley 10y agoIf you want to work in HTML5, Electron or Cordova can both take you pretty far. http://electron.atom.io http://electron.atom.io https://cordova.apache.org https://cordova.apache.org This won't work for all apps, but (for example) a lot of simple mobile apps use Cordova with faux-native UI frameworks, and there are a lot of graphics-lite games out there using NW.js or Electron on desktop.