What Kind of Reality Check Do I Need Quiz
Q&A for How to Make a Video Game With Cmd
Coming soon
Search
-
QuestionDo I need to put a quote mark before and/or after echoing something?Community AnswerNo. After echoing, make a space and write what you want to display in a single line.
-
QuestionWhat is a bat file, and where do I put it?Community AnswerA bat file is a batch file, and it runs on cmd (command prompt). You can put it on your desktop to make it easier to test your stuff.
-
QuestionWhen I click to open the game it opens and immediately closes. Why does it do that?Community AnswerIt is because the coding is wrong. Actually there are few lines on the codes that are to instruct us and make us understand, but which are not supposed to be written on the source code(code area). So just scan through the code lines and delete those unnecessary lines. Doing this should make your game work.
-
QuestionHow can I learn how to code?Community AnswerThat depends what you want. C++ is for non-image based programs(they display in a cmd looking window) adn C# is for image based programs like games. You should start with c++ tough, since c# is more advanced. Google and download code blocks, an c++ code editor. You can find documentation and lessons online.
-
QuestionWhat do I do if the game immediately closes after opening?Community AnswerIt's possible your coding does not pause. At the end of your command, type the word "pause" without quotation marks.
-
QuestionHow do I start playing?Community AnswerWhen you save the file as .bat, check where it is being saved. Change the location to your desktop (so that it will be easy to find) and save it. Then double click on the .bat file and start playing.
-
QuestionWhat if my game closes after I select start or exit?Bartek 1887Community AnswerThe coding is wrong. Scan through the code lines and delete those unnecessary lines. Doing this should make your game work.
-
QuestionCan I do this on Notepad, also?Community AnswerYes. This is for any notepad or notepad + +.
-
QuestionHow can I open a game?Community AnswerGo on the desktop screen of your PC. There you will see a folder named as My Documents, where you can see your game and can run it from there.
-
QuestionIt just closes when I'm pressing enter, what should I do?Community AnswerMaybe you have put a pause for the enter instead of a set /p. If you can't find it then try copying and pasting the code in the steps to help you.
-
QuestionDoes this work on Windows XP?Kenneth Blake SweezyCommunity AnswerYes, as long as you can install Notepad++.
-
QuestionCan I do it with my simple Windows Notepad?Dude 2Community AnswerYes, this is for every Notepad and Notepad++. I prefer to use Windows 10 Notepad, so it will run smoother. You still need to follow the .bat file making steps.
-
QuestionWhat should I do if the game won't launch? Does this work on Windows 10?Community AnswerThis should work on Windows 10. If you're having trouble, go back through the lines and see if you made any mistakes that need fixing.
-
QuestionAfter clicking the desktop icon, it opens CMD.exe. What should I do?Community AnswerAll you have to do is follow the instructions given on the screen.
-
QuestionWhat if the command prompt I am using won't let me save anything?Community AnswerYou can use notepad and save it as a .bat file. You don't need Notepad++ or a command prompt. Using .bat will make it a game.
-
QuestionWhich language is used to make the game?Community AnswerThe batch programming language is used to make this game. Batch is a native programming language that Microsoft built into Windows.
-
QuestionHow do I change the text size in my video game?Community AnswerIt isn't possible, but you can make bigger text with ASCII art. I recommend using a website for this, as doing it manually takes a while.
-
QuestionWhat should I do if my file closes immediately after opening?Community AnswerThis is likely happening because you haven't added a pause in your file. Right-click on the batch file and then click Edit. While editing, remember to add a pause in your game code.
-
QuestionWhat can I do if my PC won't run the .bat file?Community AnswerIt might not support batch files. 1.0 to 2000/ME might not work, but XP and onwards should work. If it doesn't work, your PC may be out of RAM, or it doesn't support batches. Another reason could be because of incorrect coding.
-
QuestionWhat do I do if my video game made with Cmd isn't working?Community AnswerScan through the code. Edit the code. Test the program, if not running, then paste the code in the instruction.
-
QuestionWhat if my game closes as soon as I start it?Dude 2Community AnswerYou probably have forgotten a pause in the code. If not, you typed the code wrong.
-
QuestionIs there a way to set the random numbers for a battle sequence?Community AnswerUse %random% to generate a random number. Example: if %random%==1 goto Number1, if %random%==2 goto Number2 and so on. Note that it only generates numbers that are in the "if %random%" lines, so having lines for 1, 2 and 3 means it generates a number between 1-3.
-
QuestionWhy doesn't the text "Thanks for playing" show in the exit menu?Community AnswerYou might have forgotten to type echo before the mentioned text, or you placed it in the wrong location.
-
QuestionI can't find the file after I have saved it. What should I do?Community AnswerIf you haven't tried it yet, open Notepad, then open, then your game. That should open it. Then click SAVE AS, and then save it on your desktop or somewhere easily found.
-
QuestionHow do I made the file .bat?Community AnswerWhen saving the file, add the extension .bat after the file name. If there is already an extension, replace it with .bat.
-
QuestionEvery time I start a video game, it kicks me off. How do I fix this?Community AnswerTry adding a pause after every line that evokes an action; this might help you track the error. If that does not work, then try removing every "/p" command and any locations associated with it, or try removing every exit command and external coding.
-
QuestionWhat can I do if it just closes when I select "start"?Community AnswerYou might have placed an exit right after the start instead of "echo exit." There might also be a "/p" command right after the start, which doesn't lead anywhere, and the exit command or location right after it.
-
QuestionHow do I add random encounters to a video game made with Cmd?Community AnswerTry having a random number generator that decides if you go into a fight or not using if statements, such as: /set /a num=%random% if %num%==1 goto start_battle_1 if %num%==2 goto normal_day start_battle_1: (insert battle code here) normal_day: (insert normal day code here)?
-
QuestionHow do I edit the video game after saving it?Community AnswerRight-click on the .BAT file and select Edit.
-
QuestionHow do I put characters in my game?Community AnswerYou can do that by using a variety of letters and numbers. Avoid using symbols, as they can interfere with the operation of the game. How you start is by taking a piece of line paper and writing down letters that would resemble something similar to typing an emoji. As an example, you can use the letter O for the character's eyes and use the letter V to make a beak to resemble a face like this: "OVO" or a motorcycle that's parked in a distance.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit