As far as determining which OS the game is running under is it better to use preprocessor directives or find some code on google to see if it is mac, windows, or linux. Or should I just let someone else use the GPL to port it?
As far as determining which OS the game is running under is it better to use preprocessor directives or find some code on google to see if it is mac, windows, or linux. Or should I just let someone else use the GPL to port it?
Well what kind of game are you making? Is it going to be text based or use some sort of graphics?
Woop?
It is using allegro which is cross platform just a small RPG to see how well this group will work together. The reason I ask for how to see if it is mac, linux, or windows is in the filenames since I know on windows you would use something like "art\\blah.bmp" and on linux you use "art/blah.bmp" or that is at least according to a friend of mine that is using linux much more than I am.
Last edited by ~Kyo~; 08-25-2005 at 04:06 AM. Reason: typo
You use the \\ because it is an escape character so thats why when you open files you use this. Oh and you should use the grabber to put your bitmaps into a .dat file it is quite handy.
Woop?
lol sorry I had a typo
from what I have heard \\ is for windows and / is for linux I was told \\ will not work on linux and need to know if that is true and if it is I need some way to figure out what OS it is running under
re-read prog-bmans post
He never said if it worked on linux or not and since I will be as bold as to make the assumption that most users on this site use windows I would still like to see it worded as you use \\ in both of those OSes or you use \\ in windows and / in linux
Use / in both OSes; use \\ in Windows.
http://groups.google.com/group/comp....3ac81f37b60ca9
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Alright I get it now thanks for all who posted.Originally Posted by Dave_Sinkula