Game Development Community

Mac to Windows?

by Fredulus Ripplinger · in Torque Game Engine · 06/15/2008 (12:41 pm) · 4 replies

If I program my whole game on Mac, get finished, and want to release it for windows, too, how do I do that? I've seen some links floating around for CodeOnce or something, but it never actually says how to do it.

#1
06/15/2008 (4:01 pm)
If you don't actually change any C++ code, then it's pretty simple. Just copy your game folder over to a PC, drop in the .exe from the Windows version of Torque, test, package and ship. It's unlikely that anything that worked on the Mac version will fail on the PC.

If you have made modifications to C++ code, then you need to get a Windows compiler (there's a free version of Microsoft's C++ compiler available from their website, sorry don't have a link handy). You'll have to compile for Windows and then use your newly compiled version as the .exe rather than the one that comes with Torque.
#2
06/15/2008 (4:17 pm)
So if I add some C++ stuff, it's fine, right? Just if I change existing code?
#3
06/15/2008 (6:47 pm)
If you add or modify C++ code, that's fine, but you still need to do the same changes and additions to the Windows version, unless those changes were intended to be Mac specific.

If your changes used Mac specific function calls or something, then you'd need to rewrite those sections for Windows.
#4
06/15/2008 (9:19 pm)
Thanks a lot!