Sign in to follow this  
mackay6

Learning C, C++ for Text-based Game

Recommended Posts

Hello everyone, I have just registered and I am looking for a little bit of advice concerning the design and implementation of a text-based game in the coding world before I advance forth. I have noted that almost all MUDs (text-based games) are coded in either C, C++ and even I have seem some newer ones in C# (tigermud) and PHP mixed with C#. I would like to take the route of C before moving onto C++ but I am still unsure if this is the best option to take. I haven't coded in any other languages as of yet before but I have been reading code and understand the concepts and structures of how it works. If there are any good tutorial links or book references that may help me learn C, C++ concerning games. Thanks

Share this post


Link to post
Share on other sites
The For Beginner's FAQ has some good links, and you might want to check out programmingtutorials.com.

Just know that if you learn C as your first language (like I did) you'll have to un-learn bad habbits that don't work well with OOP when you get to C++. If you want to jump right into OO and C++ seems too difficult, you can also look into C#; it's an excellent language for a beginner.

Share this post


Link to post
Share on other sites
I would learn C++ from the get-go.

If you know C++, you can code and read C just fine. And it's not as if C++ is that much more difficult than C. It simply has a few more features.

Share this post


Link to post
Share on other sites
Quote:
Original post by mackay6
I have noted that almost all MUDs (text-based games) are coded in either C, C++ and even I have seem some newer ones in C# (tigermud) and PHP mixed with C#. I would like to take the route of C before moving onto C++ but I am still unsure if this is the best option to take. I haven't coded in any other languages as of yet before but I have been reading code and understand the concepts and structures of how it works.


If you want to work from an existing codebase, learn the language that codebase is in. If, on the other hand, you want to write your own codebase, you'd be best advised to forget C or C++ and go for a higher level language like Python, Ruby, Java, C#, etc. They will give you better network and string handling, which are the 2 key things you need in MUD-like games.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this