You can create a computer game in just about any programming language. Game programmers and developers use special computer software to write the programming code to create the game how they want it. The software also compiles the programming code into a language that will be understood by the system (Windows, Mac, online or gaming consoles) the game is created for. Instead of shelling out the expense of buying the special software, you can write the programming code for a video game in the Notepad text-editing program available on Windows computers.
- Skill level:
Other People Are Reading
Click on the "Start" button in Windows. Then click on "All Programs," "Accessories" and "Notepad" to open the Notepad application.
Type in the code for your video game using the programming language of your choice. Press the "Enter" key to separate lines of code and use the "Tab" key to indent code in the middle procedures and functions to keep the code neat and easier to read. Also, leave comments in the code that might help with later troubleshooting. Format the code in a way that makes it easier for you to read when going back through it using the common programming rules. Notepad doesn't have all the bells and whistles like other word processing applications, so it won't word wrap or spell check on its own.
Click on "File" and then "Save" to save the file. Save the code in the correct file format. For instance, use the CPP file extension if the code uses the C++ programming language or JAVA for the Java programming language. Type in the name of the file with the correct extension encased in quotation marks ("example.cpp") in the "File name:" box. Click on "Save."
Tips and warnings
- You still need a compiler to turn the code into the video game. The compiler is responsible for checking the code for syntax and logical errors, converting the code and compiling the code, graphics, sound and other associated files into a single file that can be executed on a computer, online or on a gaming console. Use a compiler that is compatible with the programming language that you used. Save the Notepad file in the same directory as the accompanying files for the video game, such as graphics and sounds, to make it easier to compile the game.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for