Author Topic: Fighter v2.0a [C++ Text-Based Game]  (Read 2535 times)

the giant giant issue shouldn't be a problem as dwarf fortress suffers from that too

also include stamina bar :D
It's not an issue, it's really just a joke, I promise.  :cookieMonster:

Code: [Select]
string MonsterNames[] = {"Giant Bat", "Giant Spider", "Giant Giant", "Giant Mouse", "Giant Flea", "Giant Dwarf", "Giant Elf", "Giant Ent"};
Could you, instead of hardcoding monsters, their types and stats, set up a struct featuring prefixes, another struct featuring names, and then base their stats based on their prefix and race?
It would allow for more variety, and less typing on your part.
"struct"

see that's vaguely familiar but i'm not sure what that is exactly

i'll see about that when i know what it is haha


OH I REMEMBER NOW
yeah that'll probably be easier than all that array stuff haha

Maybe if you continue development further than a sort of experiment to test your skills, you could add more depth.
Swords & Sandals style seems to fit. Since it has a text-adventure sort of style, the areas could be described according to how a text adventure would, thus allowing for the end user to mentally represent areas to gain immersion instead of limiting his or her creativity to a graphical representation.
I don't plan to take this any further than a silly fighting game in C++ unless I get bored.

Once I get into doing more than console applications I'll be doing more serious stuff.
« Last Edit: February 08, 2012, 08:59:42 PM by otto-san »

SERIOUS: TEXT ADVENTURE

SERIOUS: TEXT ADVENTURE
YOU SPAWN NEXT TO YOUR BUDDY FRANK IN A DARK ROOM WITH A FLASK


YOU REACH FOR THE FLASK AND ARE ATTACKED BY A GRUE

OPTIONS:
FIGHT
RUN
CHANGE CHARACTER
USE ITEM


UNSUCCESSFUL

GRUE ATTACKS U FOR 15 DAMAGE

ITS SUPER EFFECTIVE

5/20 HP

WHAT NEXT?

but in all seriousness you could really do this.

Code: [Select]
string MonsterNames[] = {"Giant Bat", "Giant Spider", "Giant Giant", "Giant Mouse", "Giant Flea", "Giant Dwarf", "Giant Elf", "Giant Ent"};
Could you, instead of hardcoding monsters, their types and stats, set up a struct featuring prefixes, another struct featuring names, and then base their stats based on their prefix and race?
It would allow for more variety, and less typing on your part.
You should make the enemies more different.
Like, enemies can be Giant, Small, Fat, Muscled or just normal.
Giants would be the strongest of the variants, having more HP and such.
Small have less HP then a normal variant but are faster.
Fat enemies are just incredibly slow.
Muscled enemies do more damage.

Something like that.
Dunno if you did something like that already, but if you did, look for expansions on it.
Yeah, you said it more technically though. :P

Shouldn't it work then?
It still tells me that I need the 2010 edition.

It still tells me that I need the 2010 edition.
well that's odd

once i learn more about C++, i may make some blockland-related stuffs.

i.e. external terrain generator that goes straight to .bls (even though it's possible in TS, C++ may allow for more control and some things i may not be able to do well in TS)
« Last Edit: February 09, 2012, 05:42:14 PM by otto-san »

well that's odd

once i learn more about C++, i may make some blockland-related stuffs.

i.e. external terrain generator that goes straight to .bls (even though it's possible in TS, C++ may allow for more control and some things i may not be able to do well in TS)
Python is much friendlier to use :)
Im already making this again with more features :D
And Python I can give you the source .pyc and a .bat/.command file, and you don't have to worry about multi operating system problems.
Input is as simple as
command = raw_input("Command: ")
:)

Python is much friendlier to use :)
Im already making this again with more features :D
And Python I can give you the source .pyc and a .bat/.command file, and you don't have to worry about multi operating system problems.
Input is as simple as
command = raw_input("Command: ")
:)
i like C++ more because i know how to compile with it

Quote from: game
-----------------------
A Monster has Appeared!
-----------------------
A Death has appeared with 4000 HP!
Which option do you want to use? Type one of the following:
1 - Attack  |  2 - Defend  |  3 - Run
Command - 1
Your attack did 28 damage, and the Death's health is now 3972 and yours is 57
Which option do you want to use? Type one of the following:
1 - Attack  |  2 - Defend  |  3 - Run
Command - 1
Your attack did 79 damage, and the Death's health is now 3893 and yours is 25
Which option do you want to use? Type one of the following:
1 - Attack  |  2 - Defend  |  3 - Run
Command - 1
Your attack did 63 damage, and the Death's health is now 3830 and yours is 2
Which option do you want to use? Type one of the following:
1 - Attack  |  2 - Defend  |  3 - Run
Command - 1
You have died. The game now closes.
GAHHDFLKSJFSJKDakj
I suck at my own game.
Time to add in custom attacks!

Python is much friendlier to use :)
Im already making this again with more features :D
And Python I can give you the source .pyc and a .bat/.command file, and you don't have to worry about multi operating system problems.
Input is as simple as
command = raw_input("Command: ")
:)
>promoting the slow, BDSM snake language on a C forum
Ha!

Don't Python programs require the user to have installed Python or to have its interpreter?
C/C++ is more native(therefore, no need to package some unneeded fat in the installation), and it doesn't take half a second to recieve an output.
All you need is a different compiler, a case or two of code red, and a time waster.

Yeah, you said it more technically though. :P
I actually didn't read that post until after I wrote out my lecture on proper ways to program.

So all I do is type in slash over and over again?

So all I do is type in slash over and over again?
or stab or parry


in v3 there's going to be more attack things but of course it's still going to be a really silly game