Jump to content

Keeping your game multi-platform


Clackdor
 Share

Recommended Posts

What sort of conditions do you need to meet in order for a program to be multi-platform? By multi-platform, I mean Windows/Linux/Mac.

 

For instance, I am using CodeBlocks instead of Visual Studio and compiling with MiniGW. (I actually have no idea if that makes any difference, I like CodeBlocks interface better.) But I would like to avoid unknowingly relying on tools that would pigeon hole me into Windows only.

Link to comment
Share on other sites

1) CodeBlocks+MinGW indeed helps to write multi-platform software, because MinGW is the same as GNU C++ on other platforms. Visual Studio uses Microsoft's own interpretation of the C++ standard, which is not always compatible with real C++.

2) Avoid all Windows system calls. There are good libraries which are cross-platform and do things much better than the Windows system calls, although they also sometimes do internally Windows system calls, but that doesn't matter because they are used only on Windows, and on other platforms they use their own system calls.

3) Use OpenGL and not DirectX, for additional graphics to LE3. For example Game Installer, Game Updater, Game Launcher, Multhithreaded Loading Screen.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...