Author Topic: The Follower  (Read 6906 times)

0 Members and 1 Guest are viewing this topic.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
The Follower
« 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
« Last Edit: January 21, 2012, 12:56:51 am by hellninjas »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My first C++ Game
« Reply #1 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.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: My first C++ Game
« Reply #2 on: January 15, 2012, 04:23:46 pm »
Done! I hope this becomes a long project :D

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Rain my first C++ game!
« Reply #3 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?
« Last Edit: January 15, 2012, 07:44:27 pm by hellninjas »

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Rain my first C++ game!
« Reply #4 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
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Rain my first C++ game!
« Reply #5 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?

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Rain my first C++ game!
« Reply #6 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
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Rain my first C++ game!
« Reply #7 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. :)
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Rain my first C++ game!
« Reply #8 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"); ?

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Rain my first C++ game!
« Reply #9 on: January 20, 2012, 10:52:39 pm »
You could check for the OS and have a different command depending upon OS.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Rain my first C++ game!
« Reply #10 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
« Last Edit: January 20, 2012, 10:54:52 pm by ruler501 »
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Rain my first C++ game!
« Reply #11 on: January 20, 2012, 10:53:34 pm »
No, you dont need a cin.ignore() before cin.get().
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Rain my first C++ game!
« Reply #12 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...

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Rain my first C++ game!
« Reply #13 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
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Rain my first C++ game!
« Reply #14 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
« Last Edit: January 20, 2012, 11:47:02 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.