Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: hellninjas on January 15, 2012, 03:42:18 pm

Title: The Follower
Post 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
Title: Re: My first C++ Game
Post by: DJ Omnimaga on January 15, 2012, 04:14:46 pm
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.
Title: Re: My first C++ Game
Post by: hellninjas on January 15, 2012, 04:23:46 pm
Done! I hope this becomes a long project :D
Title: Re: Rain my first C++ game!
Post by: hellninjas on January 15, 2012, 07:44:01 pm
VER. 0.3 is up!
http://www.mediafire.com/?d1pxav5acbea8ub
Also, yah think rain is a good name?
Title: Re: Rain my first C++ game!
Post by: ruler501 on January 20, 2012, 08:10:21 am
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
Title: Re: Rain my first C++ game!
Post by: Scipi on January 20, 2012, 09:06:34 pm
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?
Title: Re: Rain my first C++ game!
Post by: ruler501 on January 20, 2012, 10:13:27 pm
Homer they arent easter eggs if he tells you about them :P
We'll have to find them in the source
Title: Re: Rain my first C++ game!
Post by: thydowulays on January 20, 2012, 10:34:11 pm
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. :)
Title: Re: Rain my first C++ game!
Post by: hellninjas on January 20, 2012, 10:42:48 pm
wouldn't cin.get() require cin.ignore() before hand?
And does anyone know a different way to clear the screen other than system("CLS"); ?
Title: Re: Rain my first C++ game!
Post by: Scipi on January 20, 2012, 10:52:39 pm
You could check for the OS and have a different command depending upon OS.
Title: Re: Rain my first C++ game!
Post by: ruler501 on January 20, 2012, 10:53:10 pm
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
Title: Re: Rain my first C++ game!
Post by: thydowulays on January 20, 2012, 10:53:34 pm
No, you dont need a cin.ignore() before cin.get().
Title: Re: Rain my first C++ game!
Post by: hellninjas on January 20, 2012, 10:54:47 pm
okay i added, im also removing system("CLS"); until i find a good command :D will upload in a min...
Title: Re: Rain my first C++ game!
Post by: ruler501 on January 20, 2012, 10:58:56 pm
yay I'll be glad to look through it. Good job with all  youve done so far
Title: Re: Rain my first C++ game!
Post by: Juju on January 20, 2012, 11:39:55 pm
I guess this snippet can be useful for clearing the screen.

Code: [Select]
#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:
Code: [Select]
#ifdef WIN32
    #define wipe() system("cls")
#else
    #define wipe() system("clear")
#endif
Title: Re: Rain my first C++ game!
Post by: hellninjas on January 20, 2012, 11:52:46 pm
:O JUJU! I love you!
Thanks a bunch!/me begins typing more code!
EDIT: D: Double post D:
Title: Re: The Follower
Post by: hellninjas on January 22, 2012, 11:08:59 pm
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!!
Title: Re: The Follower
Post by: Scipi on January 23, 2012, 12:32:40 am
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.