loading
Alright so you know a little batch eh? You wanna make a computer game now, well lets examine the basics. You can make a text based game, like a quiz game or something, but you can not and i mean CAN NOT make a multiplayer warfare game with upgrading towers and training your soldiers, dont bother trying to do anything with graphics. So lets get started

Step 1: Making the Quiz

a quiz is better and easier for beginners, and for learning so we will make a quiz game. So we will start off by making a startup menu

by typing

@echo off
echo Welcome To Quizamo
echo Where you try to answer all 3 questions to win, 5 MILLION DOLLARS!!!
echo So would you like to start or quit?
title QUIZAMO

Step 2: Inputs and Labels

Now we have this:

@echo off
echo Welcome To Quizamo
echo Where you try to answer all 3 questions to win, 5 MILLION DOLLARS!!!
echo So would you like to start or quit?
title QUIZAMO

but we need to label it as main:

@echo off
:MAIN
echo Welcome To Quizamo
echo Where you try to answer all 3 questions to win, 5 MILLION DOLLARS!!!
echo So would you like to start or quit?
title QUIZAMO

Now we need to add some questions, but first access them
So type this next:

set /p input=Start?
if %input%==start goto QUESTION1
if %input%==quit exit

Perfect

Step 3: Questions

Alright now that we have the Main Menu we need the game itself. Here is an example:


:QUESTION1
echo What is yours but used more by others
set /p input=Answer?
in %input%==name goto QUESTION2
echo WRONG
goto MAIN
:QUESTION2
cls
echo CORRECT
echo.
echo The man that makes it doesn't use it, the man who buys it doesn't need it, the man that uses it doesn't want it. What is it?
set /p input=Answer?
in %input%==coffin goto QUESTION3
echo WRONG
goto MAIN
:QUESTION3
cls
echo CORRECT
echo.
echo What goes up but dont come down
set /p input=Answer?
if o%input%==age goto WINNER
echo WRONG
goto MAIN


Step 4: Winning

Now you have the Main Menu, and the game itself, what happens when you win? try this:

:WINNER
cls
echo YOU WON
echo.
echo YOU HAVE 5 MILLION DOLLARS NOW
echo.
echo CONGRATS
echo.
echo Play again?
set /p input=Play?
if %input%==yes goto MAIN
if %input%==no exit

There you have completed your game, pleas leave comments on how well this worked for you!

COMPLETE FINISHED SCRIPT:
 
@echo off
echo Welcome To Quizamo
echo Where you try to answer all 3 questions to win, 5 MILLION DOLLARS!!!
echo So would you like to start or quit?
set /p input=Start?
if %input%==start goto QUESTION1
if %input%==quit exit
:QUESTION1
echo What is yours but used more by others
set /p input=Answer?
in %input%==name goto QUESTION2
echo WRONG
goto MAIN
:QUESTION2
cls
echo CORRECT
echo.
echo The man that makes it doesn't use it, the man who buys it doesn't need it, the man that uses it doesn't want it. What is it?
set /p input=Answer?
in %input%==coffin goto QUESTION3
echo WRONG
goto MAIN
:QUESTION3
cls
echo CORRECT
echo.
echo What goes up but dont come down
set /p input=Answer?
in %input%==age goto WINNER
echo WRONG
goto MAIN
:WINNER
cls
echo YOU WON
echo.
echo YOU HAVE 5 MILLION DOLLARS NOW
echo.
echo CONGRATS
echo.
echo Play again?
set /p input=Play?
if %input%==yes goto MAIN
if %input%==no exit

Step 5: Tips, and Warnings

TIPS

- You can change the color by typing in color then the colorcode, to find the colorcodes open cmd promt and type color /?

-To add graphics(I have not tested this) I heard you can use an DOS photo editor or something, or open a photo with a cmd

-You can add more questions easily by copy and pasting from question# to the line b4 question#+1

WARNINGS

-Do not set up a questionaire to steal peoples passwords, that is illegal and abusing the priveledge of the game
i accidently said in in the final script, its supposed to be if
I don't get these people
I've never thought such games would still be around here; what about burning a -question quiz on a floppy disk and adapting these ancient drives to an LTE, USB (with arduino) or VGA port? THANKS a lot, now I have one more reason to prepare for May's lockdown...
Sorry, but what exactly are you talking about?
We could copy the file on a floppy disk, and play it there, but, since there aren't any computers with floppy drives around, now there's the need for an adapter (that could have an output as in all types of ports I mentioned before and more are available). A complete 'computer' would be possible, too, but I have to think about it in detail later: in May we have the final exams and I need to prepare for this project either before March or in June. Since we have a very strict math teacher and I'm one of the best students in that class (that doesn't mean I'm not a lazy dude), the ones she prepares for the next years before the rest and makes special competitions for, I don't think 'lockdown' isn't appropriate (BTW, I live in Albania, that coffin-shaped country in the west Balkans). Again, THANKS.
hehehe it omitted the parentheses

About This Instructable

1,960views

21favorites

License:

Bio: If my codes don't work on mobile it's a glitch try it on pc before you say "where does this go???!"
More by warspyking:How To Hide Apps iOS 6 How to create a simple, basic, computer game with batch How To Recover Your Account 
Add instructable to: