Ok, this next set of commands are all really simple as well, but are nice to have.Ĭls - cls is a command that I use a lot. " Your players can then press any key, when they are ready, in order to continue playing. When you use this code it shows up as "Press any key to continue. Pause - This command is used when you want your players to take a break, and is used most often when you want to give them time to read some text. This can be useful in keeping your text uncluttered. (with a period) is used to create a blank line in your game. For example you can type: "echo Hello adventurer!", and the people playing your game will see is "Hello adventurer!" (So long as you typed in off).Įcho. Commands are each of the words that we type in to the program that have a function such as the echo, or pause commands.Įcho - echo is used to display regular text in your game. Batch is a language that runs primarily out of your Windows command prompt.Not only is it useful, but it can also be used to create amazing text-based games! What is a text-based game you ask? It's a game (a very simple one) in which the user interacts through the use of text and choice-making.You will learn how to set up situations in which the characters will have to make choices about how they want to approach the problem.Ĭode! Now you're ready to begin typing your first lines of code, as well as learning you first commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |