quote: Original post by hammerstein_02
Superpig, sorry but no you don''t have to understand classes and inheritance.. I learnt how to program the basics using C++ by doing just this sort of project. I never used objects, just good old variables. The code ended up at 6000 lines.. and was messy as hell, but I wrote a text adventure.. (never finished it, and lost the source!)
I''m trying to encourage good programming practices here. Of course you can do everything in C (you call it C++ but without objects, it might just as well be C ). You can also attack a bear with a drawing pin, or build a computer out of sand. Might take you a while though... To know C++, you have to know classes. That''s pretty much the whole point of C++.
BTW, I was inspired to write a text game by this. I''ve reached around 700 lines (including the large amounts of whitespace added by VC++), and I''ve just about finished the socket-based client/server code. All that remains is soft architecture stuff. And it''s all done using classes. I think I''ll release it for people to use to develop their own (the game-specific code is isolated in a seperate DLL).
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.