Omnimaga
General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: hellninjas on January 15, 2012, 03:42:18 pm
-
Im making a game sort'ove like Zork on the old PC's...
It's in C++ and may not be the best ever but im really
trying!
Ill be posting version information below and downloads will be from mediafire! - Now in RAR form with Changelogs!
Also im trying to think of a name for it... Any suggestions?
Name is currently: The Follower
-
Interesting, I'm not much into menu/word-based games, but one suggestion I would give is to remove the delay when some stuff occurs and make it instant or require pressing Enter to continue, because otherwise I always end up trying to type stuff and then pressing enter, only to find out it automatically continues by itself.
-
Done! I hope this becomes a long project :D
-
VER. 0.3 is up!
http://www.mediafire.com/?d1pxav5acbea8ub
Also, yah think rain is a good name?
-
Could you please releasse the source? Also does this depend on any windows only libraries?
I run linux primarily and I'd like to be able to look at your source and play your game
-
Hmm. I don't like how some commands close out of the game. Like when the old man asked if I was here for the gas problem I said 'no' and the game closed out :/ Other than that, I love these sort've games :D
Any easter eggs?
-
Homer they arent easter eggs if he tells you about them :P
We'll have to find them in the source
-
Okay, I looked at your source. I would *highly* recommend you just replace all your SYSTEM("PAUSE") statements with cin.get(), since it is cross-platform and it is faster. For SYSTEM("CLS"), I couldn't really find an alternative, so I just replaced it with cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n"; I know its a ghetto way of doing things, but there was no other way..... All in all though, good work! The game has choices for lots of things! Hopefully this may become a C++ version of scribblenauts in a way. :)
-
wouldn't cin.get() require cin.ignore() before hand?
And does anyone know a different way to clear the screen other than system("CLS"); ?
-
You could check for the OS and have a different command depending upon OS.
-
hellningjas there may(definitely) is a curses way to do it.
and you would want the cin.ignore also. If you are doing a text application you should probably make it curses so you can do some fancy stuff with it
-
No, you dont need a cin.ignore() before cin.get().
-
okay i added, im also removing system("CLS"); until i find a good command :D will upload in a min...
-
yay I'll be glad to look through it. Good job with all youve done so far
-
I guess this snippet can be useful for clearing the screen.
#ifdef WIN32
#define COMMAND "cls"
#else
#define COMMAND "clear"
#endif
#define wipe() system( COMMAND )
Then you can use wipe() instead of system("CLS") or loads of \n.
EDIT: Slightly more optimized:
#ifdef WIN32
#define wipe() system("cls")
#else
#define wipe() system("clear")
#endif
-
:O JUJU! I love you!
Thanks a bunch!/me begins typing more code!
EDIT: D: Double post D:
-
D: Sadly i have some bad news...
Whilst editing meh code... A power outage occurred when I did a cut and paste...
I cutted and power went out... D: D: D: D: D: D: D: D: D:
I am going to try to spill my information on C++ into another game!!
-
Couldn't you retrieve an earlier version's source from the file you uploaded in this thread? :P
Edit: I don't see the post anymore, so in case you deleted it I could send you your source in a PM or something if you're interested.