How To Make A Cmd Game

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,419
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 25, 2010

title says it all -


here is the code:
@echo off
color 0d
title test
echo this is a test, do you like the test?
echo.
echo yes
echo no
echo.
set /p input=
if %input%== yes goto yup
if %input%== no goto nope
:yup
cls
title yup
echo it work!
Exit
:nope
cls
title nope
echo nope, well your probably not here!
Exit

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (vjromeguy)

  • No I mean is it possible to save and load a file in your game so you don't have to start over each time?

  • @DrSuperMarioMan6464 I am not sure you would have to look it up in another video... sorry I can not help you on this but I try to look for you.

  • @vjromeguy thanks anyway dude

  • @DrSuperMarioMan6464 no problem

  • How do you make a save file?

  • @DrSuperMarioMan6464 save it on desktop as an .bat file

see all

All Comments (36)

Sign In or Sign Up now to post a comment!
  • @DrSuperMarioMan6464 Yes, the echo command can be used as such: echo set a=%a%>savefile.bat echo call game.bat>>savefile.bat However, if the variable is a number less than ten, then it will not work so a solution is this: set /a a=%a%+10 echo set a=%a%>savefile.bat echo call game.bat>>savefile.bat set /a a=%a%-10 When the game loads the save file, use this code: if defined a ( set /a a=%a%-10 goto %a% ) if exist savefile.bat ( call savefile.bat ) PM me for more help. :D
  • hey!!! where would i save it????? by the way thx

  • can i use microsoft word to set it up and then save to desktop as .bat?

  • @369brad thats normal

  • Creative - I've written some crazy batch files in my day ;) these days, systems admins seem to be blown away with simple command line stuff that worked way back in the dos days!

  • the code dont work on my computer unless i put some pauses before exit lol

  • @DrSuperMarioMan6464 you can do this write this code:

    echo somthing>somthing.txt

    IF EXIST somthing.txt (

    goto level2

    ) ELSE (goto level1)

  • ok thats stupid

  • Thanks. So im a freshmen in highschool and my older brother just went to georgia tech for computer science. He made a pig latin translator if you would be interested in trying that. Good video tho!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more