Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you make a game that can work on Mac and Win and Linux at the same time? What is the easiest way?


The 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.


Thank you.


If you want to work in HTML5, Electron or Cordova can both take you pretty far.

http://electron.atom.io 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.


I hear xamarin's toolset compiles to multiple platforms, if you know csharp. kinda the route im going for my game.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: