Project

So an interesting idea came to mind while watching my brother play grand theft auto 5. he was working on making a death match for him and his friends to play. so it got me thinking. what if a game was developed where the company spent all their time making weapons, characters and other items to be put into a level and then didnt make any world and put out a bunch of tools for users to make their own levels to play and share.

so i decided i would try to make a project out of that using c++. Now i am not going to be able to make a 3d world of that sort. but what i was thinking is a text based set up that allows the user to decide what exactly happens in the world.

i have been working on my own text based game and i have about 20 different items, 5 potions (still has a small glitch when getting more potions but im working on that), random occurring fight scenes and a leveling up system. so im not exactly new but im by no means good at programming. still learning.

so please no crap if you think its a stupid idea. but if you think its a stupid idea try and tell it in a nice way.

If anyone has some pointers on what i would need to keep in mind or some pages i can read into for the whole user input part of this that would be great.

and also could someone direct me to a good place to work on classes. im struggling a little bit with them. thats where my problem with the potions came up i think.

~Thanks a lot!
closed account (iAk3T05o)
The text based part isn't that good . . .
Why not use a game engine and make it.
because i thought it would be a good way to learn more about how the user can input things of his own and have the program save more complicated things then just a characters name.
closed account (iAk3T05o)
Are you planning on doing this with the console?
yeah.
i wont focus on that though.

do you know where i can go for some instruction on classes?

what i was doing in my text based game was a group of if statements in a function

if(weapon == 0)
{
weaponname = no item
}
else if(weapon == 1)
{
weapon name = sword
}

something along the lines of that

i know the basics of using classes. just not so much how to apply them to an inventory system like that.
void PrimaryHand()
{
if(PrimaryHandItem == 0)
{
PrimaryHandName = "No Item";
PrimaryHandHP = 0;
PrimaryHandSTEAM = 0;
PrimaryHandATT = 0;
PrimaryHandDEF = 0;
PrimaryHandLUCK = 0;
PrimaryHandAGILITY = 0;
PrimaryHandSPEECH = 0;
}
else if(PrimaryHandItem == 1)
{
PrimaryHandName = "Sword";

PrimaryHandHP = 10;
PrimaryHandSTEAM = 0;
PrimaryHandATT = 2;
PrimaryHandDEF = 1;
PrimaryHandLUCK = 1;
PrimaryHandAGILITY = 1;
PrimaryHandSPEECH = 0;
}
}

this is what i have for just a short show of exactly how i did it.
closed account (iAk3T05o)
I'm sure it was an article on this site that said you shouldn't make text based games using the console because it's different from what applies to real games.
ok. thanks. ill look into other ways of doing it.
closed account (iAk3T05o)
If you are 'good' with c++ and want to make other sofware that isn't console like, try qt.
If you want to make this your game with c++ and think you may need or not use graphics, try sfml or sdl.
You can use game engines if you want to make games with a little of/no programming experience.
But if you want to build it from scratch, learn C++ completely before even thinking to do other jobs for making games.

EDIT: Hmm... I think I misread the topic...
Last edited on
Topic archived. No new replies allowed.