Friday, April 10, 2015

Text Adventure Source Code Release

Well...the movement engine at least...

So this is a big day, my first release! Too bad it's garbage. So this is a link to download a text file containing the source code I wrote from scratch for a simple program in C++ that sort of kind of represents my first attempt at a text adventure. It's nothing special, it just handles movement and basic error checking in terms of user input. I also changed the colors of the application.

I made this in like 3 days after learning like very basic C++, I will probably continue development on a text game as it's one of my goals, but I'll be completely rebuilding the engine and focusing it on more objective code rather than gathering user input and checking it via if-else statements. If anything it's a nice bit of code that I think is pretty cleanly written, it showcases my problem solving (no google here folks) process, which is mainly why it's very basic and no advanced methods are used for anything. If you're learning C++ and you want to know how to use and call functions correctly and how to check user input and you need to know a bit about variable types and when to use them, this source code could be a bit of help to you, it's very short and very easy to read, especially when placed in your IDE of choice with C++ syntax highlighting (I recommend Code::Blocks). The source code will compile on any Windows machine (hasn't been tested on other platforms) so enjoy!

No comments:

Post a Comment