Making a Game With Notepad

by Raven Codes in Circuits > Software

7494 Views, 5 Favorites, 0 Comments

Making a Game With Notepad

2015_03_15_12_53_26_1280x800.bmp

Today i will teach you how to make your own game with note pad.

This Game will be a number guessing Game.

How to Make the Game

First Open Notepad

Type @echo off (Will Only Show what we type and not the code)

Now were gonna do are title (Title Shows the Name of the game at the top of the game screen)

Go to the next line and Type Title Number Guessing Game

Now were Gonna Type :Start on the Next line (That Says its the begining of the game)

Then On the next line Type Mode 50,30 (50 is the game screen width and 30 is the height)

Now we can star writing the game

Type Whats Below:

echo Welcome to my Number Guessing Game
echo Please Enter Your Name

set /p name=
if '%name%' == '' goto Begin

:Begin
cls
echo %name% What do you want to do?

echo.
echo 1)Start Game

echo 2)Change Color
echo 2)Exit Game

set /p choice=
if '%choice%' == '1' goto Game
if '%choice%' == '2' Exit

:Game
cls

echo Guess a number between 1-100
set /p number=

if '%number%' == '23' goto Win1
cls

echo Incorrect!!
echo 1)Guess Again

echo 2)Hint
set /p choice=

if '%choice%' == '1' goto Game
if '%choice%' == '2' goto Hint

:Hint
cls

echo Its in the 20's
pause

goto game
:Win1

cls
echo Correct!!

Pause
goto Game2

:Game2
cls

echo Guess a number between 1-100
set /p number=

if '%number%' == '47' goto Win1
cls

echo Incorrect!!
echo 1)Guess Again

echo 2)Hint
set /p choice=

set /p choice=
if '%choice%' == '1' goto Game2

if '%choice%' == '2' Hint2
:Hint2

cls
echo Its in the 40's

pause
goto game2

:Win1
cls

echo Correct Again!!
Pause

goto Game3
:Game3

cls
echo Guess a number between 1-100

set /p number=
if '%number%' == '62' goto Win3

cls
echo Incorrect!!

echo 1)Guess Again
echo 2)Hint

set /p choice=
if '%choice%' == '1' goto Game3

if '%choice%' == '2' Hint3
:Hint3

cls
echo Its in the 60's

pause
goto game3

:Win3
cls

echo Wow your on a roll!!
Pause

goto Game4
:Game4

cls
echo Guess a number between 1-100

set /p number=
if '%number%' == '87' goto Win4

cls
echo Incorrect!!

echo 1)Guess Again
echo 2)Hint

set /p choice=
if '%choice%' == '1' goto Game4

if '%choice%' == '2' Hint4
:Hint4

cls
echo Its in the 80's

pause
goto game4

:Win4
cls

echo Right Again!!
pause

goto Round2
:Round2

cls
echo Guess a number between 1-200

set /p number=
if '%number%' == '145' goto wern

cls
echo Incorrect!!

echo 1)Guess Again
echo 2)Hint

set /p choice=
if '%choice%' == '1' goto Round2

if '%choice%' == '2' Hintx
:Hintx

cls
echo Its in the 100's

pause
goto Round2

:wern
cls

echo Correct!!
Pause

goto Rgame
:Rgame

cls
echo Guess a number between 1-200

set /p number=
if '%number%' == '92' goto Rwind

cls
echo Incorrect!!

echo 1)Guess Again
echo 2)Hint

set /p choice=
if '%choice%' == '1' goto Rgame

if '%choice%' == '2' hintss
:hintss

cls
echo Its in the 90's

pause
goto Round2

:Rwind
cls

echo You've One The Game!!
Pause

goto Start

How to Save and Play Game

Save as Guessing Game.bat

to Run Game double click on it or right click and open