Too many files for game?

May 30, 2015 at 9:25pm
Ok obviously this is going to be my first game right. It's going to be a text based - rpg. I'm going to begin working on this project as soon as I feel im ready. Now I layed down the foundation of what I might need for this to work. Futhermore, how many files you think any text based rpg game might have.Also all the subjects I might need to learn. These are what I know:
Dynamic Memory Allocation
Polymorphism
Inhertiance
Object Oriented Programming
Abstract classes
.
You can use Inductive reasoning to understand the rest of the things I know. Those are just the more advanced stuff I know.
May 30, 2015 at 9:26pm
do you have a question?
May 30, 2015 at 9:30pm
how many files you think any text based rpg game might have

What kind of files? Source files? Data files?
As far as source files, how many classes is your game going to have?
General rule is one .h and one .cpp file per class plus one for main.cpp.

Last edited on May 30, 2015 at 9:31pm
May 30, 2015 at 9:34pm
AbstractonAnon source files mainly. Yes how many classes will the dang program need.
May 30, 2015 at 9:45pm
Yes how many classes will the dang program need
is that not your decision to make?
May 30, 2015 at 9:57pm
From an industry standard.... How many files an average rpg game will need. Like header, main, and data files.
May 30, 2015 at 10:07pm
thousands.
May 30, 2015 at 10:38pm
Why does it matter? Is there a limit on the number of files you are going to use? It's going to take files as necessary to create the game you want.
May 31, 2015 at 1:32am
The simplest game will need 3 files.
1. The EXE
2. The .dat file with your monster, item and descriptions to make editing and adding stuff easier
3. Your saved game data.

You may also want high scores and other files will come to mind as you start to break things down for simplicity.
May 31, 2015 at 1:34am
Professional Industry guy here. I know games. You'll need several hundreds of thousands of files to make a text based RPG. But you can use inductive reasoning to figure out how much of each kind.
May 31, 2015 at 4:18am
To be honest, the fact that you are asking "How many files will I need to make a game" makes me wonder if you are even ready to make a game.
Because of that, I would greatly recommend you start off with using an RPG maker (or a game engine in general) of some kind, at least for your first one. This will give you a better understanding on what needs to go into even something as simple as a text based RPG.

Or, you can start off with something very very simple. Basically, just one .cpp file with a few nested if's. WARNING: Do not make a full-blown text RPG in this way.

Now, if you were asking "how many TYPES of files will I need," well...I would still question your readiness for a game, but not as much.
> the compiled C++ program
> a variety of external text files where the strings would be stored (It is usually bad habit to store the strings within .cpp files for something like this).
> possible dynamic libraries (in Windows, usually ".dll")
...to name a few.
Last edited on May 31, 2015 at 4:48am
Topic archived. No new replies allowed.