Create A Game With Notepad Codes On Your PC

We all love to play games, whether it’s racing, shooting or strategy based. But how many of us have ever tried to create their own games. The percentage will be very short, nonetheless, if you are really interested in making one then I will urge to keep reading.

Now, I am sure you are aware of Notepad, but do you know that you can write codes for creating games on Notepad?  If no, well you don’t need to worry about it. It is a simple Notepad program that can run on your PC. Though it is a very powerful program, it is also very east to learn.


notepad codes

Here in the content below, I will show you some of the game codes that you can try on your notepad.

This Notepad codes will help you to create a game for your PC and play, also it will help you to solve various types of issues.

It will also help you to create various types of “text-based games.” Now for sure, you might be wondering, what exactly is a text-based game? It is just a game that the user can easily interact with the use of the text and be making a simple choice. But note it that you will need to arrange the characters according to the criteria, as that will help you to solve the problems on the PC.

To know more about Notepad codes check: Top 5 Notepad Tricks That Can Make Your Work Interesting

Quick Reminder for you about Notepad codes:

Before stepping out into the actual notepad codes, First I would like to share you some of the few things that you need to maintain in the Notepad. Please note it that you do need to keep all the commands in a separate line. So that as soon as you enter the characters in the line then hit the “Enter” button on your keyboard to move to the next line.

Secondly, I would like to remind you about the Batch files, all you need to do is read it from first to end. If you miss out any of the codes then the program will not work, and it will run before the code in the bottom. Make sure that you do check out the batch file before you run.

If you do face a problem and your game doesn’t work properly, then you will need to -go back and make sure that you haven’t made any errors in the Programs.

Let’s Start With Notepad:

Now, let’s start opening a Notepad on your PC.

First click on start, or press the windows key + S, and then type ‘Notepad’. After the search result is completed click on the first option.

notepad game tricks

Code for Notepad: 

Once the app opens up, get the codes and start typing. Here the command is the types of words that when we typed in the program have a function with the following words such as like Pause or echo.

I will share you few commands that will help you to play a game on the PC using Notepad game code list. They are listed below!

notepad codes as echo

  • @echo off: This command will help you to erase all types of unwanted text, that which can interrupt during the game. Make sure that you add this command to your file, as it is added to it you don’t have to type it again for it.
  • echo.: This is a command in the Notepad that will help you to create a blank line in your game. Unfortunately, this command will help to keep all of your text uncultured.
  • Pause: This command “pause” in the notepad will help you to take a break,  While using this code in the notepad, you will get an option to “press any key to continue”.
  • Echo: The command echo in the notepad usually help to display the regular text in the game. For example, if you do type the character “echo Bye Dear!”, then your people who are playing your particular game will see it as “Bye Dear!”

 Must read: Downloading Latest Showbox App for Your Smartphone

Second Set of Commands that will amaze you:

Let me help you with some of the few notepad codes  that will certainly amaze you with its stunning outputs. You will be able to create a game with the help of notepad codes in your PC. Here are the some of the codes given below…!

  • exit: The character itself sounds like it does in the notepad, as it helps to close the games. Note that you can use this command when the character reaches the end point of the game or else you can use when you want to close the game or while making a wrong decision.
  • cls: Most of you must have already used the command cls in the notepad to create a game with the notepad. The character cls stands for “clear screen” and probably it helps to remove all of the text that is made in the cmd(command prompt) window. In fact, this tool is the best regarding keeping your game clean and order.
  • tittle: This command will help you to see the title display whenever you type a title in the bar of the command prompt  window.
  • Color: Using this command is kind of fun, and it can be used to liven up your game. Note it when you do add the color code to the notepad that is followed by the space and the specific set of the numbers or a letter, you will be able to change the colors of the command prompt window. For various types of colors, you can check the procedure in the given list below. You can also access to the command prompt by simply going back to the accessories folder in the start menu of your screen. This should be placed on the same list as similar to the Notepad.
    notepad game tricks

Let’s have a short term of break

Now let’s go back and review what so far have discussed the basic commands for the notepad. Above, I have shown you various types of codes that can be used for the games on your PC. Note that each command must be in a different line, such as like you hit the ‘enter’ button after every command is typed.

Have a look at the screenshot that I have given in the below so that it will help you to get a knowledge of how the format looks like.

  • Goto:  This command is used for the player to jump from one another section of your game to other, as when making a sudden decision. Once you enter goto command to the notepad on a separate line, that will become a destination.

Check: Best Free Online Alarm Clock Websites to Set Alarm Clock

Various types of Notepad codes that will amaze you:

Some of the commands that I am going to share you here is very advanced. These are very specific commands.

  • Set/p variable=: This command is usually used for the player who wants to insert any variables. This can vary from players name to their weapons name, or they can even answer to the choice you provided. In fact, it will be easier if I share you the screen shot of how to create variables.
    Check out the procedure how did I use the “echo” command so that I ask my player what exactly is his name.
  • Set/p name=: this is the place where the player will type his name. Whereas “name’ is in the variable line.
    For example echo Hello %name%, my name is for notepad gamesThis will exactly feed the player with the text that he typed on the screen.

If: The command if is usually used when you want to create if/then statement. Else you can use in a conjunction along with the “set/p” so that you can create choices for the players.

  • You can ask the player with a question”echo” command. Note you clearly state the option for them.
  • Give them a chance to answer along with the “set/p” command.
  • Creating “if” statement will allow your player to have the option to continue the story.

“if” statement is used with the command “equ” and “neq” it means “equals” and “doesn’t equal” to the game.

This is the statement as it will look like:


echo YES or NO

set/p variable=

if %variable%equ YES goto situation1

if %variable% equ NO goto situation2

if %variable neq YES goto start

All of the above codes means that if the player in the game types “YES” he will be directed to the “situation1”. If the player types “NO” then he will be directed to “situation2″, or else if he types”NO” or”YES” then he will be directed to start the question again.

Make sure that you don’t type the code “neq YES” before “equ NO” else your player won’t be able to make it to the “solution2”.

How to Save: Last but not the least that I would like to show you is how to save your file to a particular source. As soon as you are done, you will have to click the “File” button in the above of the screen, then followed by clicking on the”save as.” Clicking on this you will find a display that appears on your screen to create your name and then save to the required source. But note it that you save the file as a Batch(.bat) file, not as a regular text file(.txt).

.bat save files

As you are done with your game name add .bat as the extension. Then you will have to go to “Save as type” and select “All Files.” After that, you just need to hit the options button “‘Save.”

Note, that you can edit your desired game at any time you want by just clicking on the batch file and selecting the option “edit.”


This were some of the easiest Notepad codes for games which you can try out in your laptop or computers. But make sure that you always check the codes that you entered in the source so that everything runs smoothly. If you do have some related queries about the game codes, then feel free to ask. I will assist you with all the problems you got.

Also Read: How to Root Android without PC or Computer Using Apk App



(Visited 308 times, 1 visits today)

Leave a Comment