Original Post
I am using SDL and C++ to make a decent 2D game. I was wondering if this method would work, be just as fast, and what other problems may arise if I do it.
Put all of my variables in "variables.h"
Put all of my surfaces in "surfaces.h"
Make a .h for every function.
SDL functions, int main() and the game loop all go in "main.cpp"
And then a .h that has the class for rocks (CRock.h), enemies (CEnemy.h) etc.
What would be the disadvantages of doing this? Is this slow?
I like to keep my code as organized as possible because I am a messy person who hates messes. (A.k.a psychopath). If my code is messy, I would probably give up on the project (thats why I hate DirectX so much for those of you wonder why. Thats also why I hate JAVA, though it has probably gone through quite a few changes since I used it.)
Thanks in advance.