Jump to content
  • Advertisement
Sign in to follow this  
namragog

total newbie wants to make simple text games but needs help.

This topic is 2879 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

Hi, um, I am not sure what programming language to use, it doesn't matter, as long as it's the one most or second most used. (C++? java?) could someone please help and tell me what to download so I can start making a text game?

oh, and im on a PC.

Share this post


Link to post
Share on other sites
Advertisement
could i make those games with the black background and white text in it? (and if possible, other colored text?) if so, I will get it.

Share this post


Link to post
Share on other sites
Yep; I haven't used python in a while, but a quick google shows that it can output to the console. It can also change the color of the text and background (or just portions of text) - but only the limited colors that the console allows (10 or so colors - same as C++).

Share this post


Link to post
Share on other sites
...

What are you expecting the tutorial to tell you?

What do you consider "a text game"?

Is there some specific text game you would like to make?

Share this post


Link to post
Share on other sites
Quote:
Original post by namragog
I have looked at the tutorials and stuff, but I can't find one on how to make a text game. please help!


The best way to learn how to make a text game is first of all getting familiar with the language you are going to use, because doing so will most likely inspire you to figure out how to design your game. I have never used Python myself, but most programming languages make heavy use of data structures that allow you to store multiple "units" of the same type (eg. swords, rooms, players, messages etc.).

For example, let's say you are making a quest game where the user has to walk around in a virtual world and the actions he/she performs decides what is going to happen, like

"You are standing in an old house, to you left is a door and to your right is a chest."
> open chest
"You open the chest and find a short sword (1D6)"

In this case you would probably make a data structure representing a location (eg. the old house) containing information like what to display to the player when he/she enters ("You are standing in an old house, to you left is a door and to your right is a chest."), a list of objects in the room like the chest which would be a unit of another data structure (a container) with information about what is inside of it (the short sword, or perhaps nothing). Also, you would have a data structure representing a command (eg. "open") and write a set of functions to scan user input ("open chest") and take actions accordingly (in our example inform the user he/she has opened the chest and give him/her a short sword).

I hope this will help you get started.

Share this post


Link to post
Share on other sites
Specifically, to make a text game, the easiest and most common way is to make a console application. All you really need to know is how to throw text to the screen, and take text from the user. Start basic and work your way up. Make a password prompt, "Guess the number from 1-10" type game, try to make tic-tac-toe after that, maybe make a poker game.

I'm not familiar with python but I know a good book to look at for C++ would be "Beginning C++ Game Programming." It'll teach you the basics of the language as well as how to make small text based games. From there, you can make what ever you'd like.

Share this post


Link to post
Share on other sites
Quote:
Original post by slynk
Specifically, to make a text game, the easiest and most common way is to make a console application. All you really need to know is how to throw text to the screen, and take text from the user. Start basic and work your way up. Make a password prompt, "Guess the number from 1-10" type game, try to make tic-tac-toe after that, maybe make a poker game.

I'm not familiar with python but I know a good book to look at for C++ would be "Beginning C++ Game Programming." It'll teach you the basics of the language as well as how to make small text based games. From there, you can make what ever you'd like.


Hey im also a complete n00b at programming but i'v bought this book "Beginning C++ Game Programming." i haven't really read much of it yet but from what i can see and what i'v heard it's the best place to start learning C++. i would really suggest you get this book.

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!