Notepad games for kids




















This is what your game should look like. Notice the long spaces between the text? This was done with the "echo. Also, note the pause command at work toward the bottom. This is what your game should NOT look this. When you don't add " echo off" this is what happens.

It stands for "clear screen", and what it does is remove all of the text that has been made in the command prompt window ergo, making the screen blank. This is a good tool when you want to keep your game looking clean and in order. You should only use this when the characters reach the end of the game, or if you want the game to close when they die or make a wrong decision. When you add the color code, followed by a space and a specific set of numbers or letter, you can change the colors of the command prompt window.

You can access the command prompt by going back in to the accessories folder in the start menu. It should be in the same list as Notepad. This is about what you should be capable of doing at this point. Let's stop for a second and look at what we have so far. I've shown you several basic commands, and have taught you how to use them. Remember that each command should go on a different line so hit "enter" after you finish with each command.

Take a look at the picture to the right, so that way you can be sure that you know about what your file should look like.

The "goto" command is simple, once you get to know it. The command is used when you want a player to jump to a different section of your game, such as when they make a certain decision.

You enter the "goto" command on a separate line, or at the end of an "if" statement which we will go over later. You then specify a variable which will become the name of the destination. The name can be anything you want, and consists of the word s you type after "goto".

Move to a new line of code, directly above where you want your player to start. Type a colon ':' followed by the name of the destination. These commands are the most advanced commands that I am going to teach you. They both have to be set up a specific way and also work with several other, smaller commands in order to function correctly. This could be anywhere from their name to the name of a weapon or even the answer to one of the choices you have given them. Often times this variable will be referenced later, and therefore must be given a name.

The name can be whatever you want it to be but remember that you may be typing it in a lot when making your game.

I think it would be easiest if I gave you some pictures showing you how to create variables. See how I use the "echo" command to ask my player what his name is? I then go ahead and type:. This is where my player will type his name.

For example:. Here is what happens when a player types in his name, then you feed that name back to him with the echo command. All of this code means that if the player types in "YES" he will be sent to "situation1"; if he types in "NO" he will be sent to "situation2"; if he types in neither "YES" or "NO" he will be sent back to the start of the question.

Remember when I said earlier that the order you write your code matters? If you typed in the "neq YES" code before the "equ NO" code, your player would never be able to make it to "situation 2". The last thing I need to show you how to do is to save your file. Once you are all done, click the "file" button at the top of the screen, then click on "Save As. However, you need to make sure that you save it as a Batch.

To do this, after you type in the name of your game add. You then need to go to "Save as type" and select "All Files. Remember, you can edit your game at any time by right clicking on the batch file and selecting "edit. Select "All Files", then click the save button to finish. It's as easy as that! I like the Game Tictactoe. Question 3 years ago on Step 2. By SohanA1 Follow. More by the author:. This is my first instructable. So if you have any suggestions please comment.

Lets get started! Attachments tictactoe. First of all open notepad Code! Save your game as : nameofyourgame. Ok, this next set of commands are all really simple as well, but are nice to have. It is a set of two numbers. First number is background color. Second number is font color. These commands are the most advanced commands that I am going to teach you. This statement delays the execution of the statement for 7 seconds. You can change the value. For eg. This is slightly different becouse this is in vbs script not batch.

Only for Windows users Now type "telnet towel. Now type "towel. If you do not need telnet anymore, you can turn it off. Paste the following code in the notepad file: retype all quotes WScript. Sleep WScript. Sleep WshShell. Sleep Save the file with any name and with.

To end it open task manager and end thewscript. Participated in the Coded Creations View Contest. Did you make this project? Share it with us! I Made It! Remote Control Light Switch by alanmerritt in Arduino. Reply Upvote. Answer Upvote. Windowslifehacker 1 year ago.

ReChan rajkumarjoshi Answer 3 years ago. TheNewbTewb Question 3 years ago on Step 4. DanielS 3 years ago. JamesPlace if "! Railroad if "! If so, sends the user to jail. ELSE echo This street has got a hotel now. CharlesPlace :St. CharlesPlace goto :St. JamesPlace :St. JamesPlace goto :St. Railroad :B. Railroad goto :B.

Laman utama. Langgan: Catatan Atom.



0コメント

  • 1000 / 1000