Jump to content
  • Advertisement
Sign in to follow this  
mackay6

Learning C, C++ for Text-based Game

This topic is 4493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!