3-D Java games immerse players in environments that simulate the appearance of the real world. Creating such games from scratch involves extensive computer programming that applies 3-D geometrical operations to numerical data representing 3-D objects. These operations include movement, rotation and expanding and shrinking in 3-D space. Fortunately, there are easier ways to make such games, including studying existing programs. Making 3-D Java games lets you create scenarios, characters and environments that no other game has.
- Skill level:
Other People Are Reading
Download 3-D Java games such as CarDriving, Bolzplatz 2006 and Risk (see Resources). Install, run and play each game according to the instructions that accompany it.
For the Java game you like best, list at least five modifications you'll make to the game. The more mods you list and the more specific you can be, the greater originality your game will have.
Download the zipped text files containing the 3-D game's source code statements. (The site you downloaded the game from will indicate the link location for the source code archive.)
Install the JDK software from Oracle's Java Development Kit (JDK) page (see Resources). This software has tools for compiling and debugging Java games and other applications.
Print, from a word processor or text editor like Notepad, each source file in the archive you downloaded in step 3.
In the word processor, create a new set of blank documents whose filenames match those of the archive's files.
Delete the Java game's original source files (but not the archive, which will keep the original source intact).
Read each statement from one of the printouts, then type it exactly as written into the new, blank document that has the same filename as the one corresponding to the printout. For example, if the printout was from the file "Main.java," type the statements into the blank version of "Main.java."
Repeat step 8 for the remaining printouts to duplicate exactly the original source code for the Java 3-D game. The concentrated reading this copying procedure requires lays the groundwork for understanding how the game works. Once you understand how the game works, you can apply your modifications to it.
Compile and run the duplicated source code, using the instructions in the JDK.
Delete one of the game's duplicated source files, which you typed in step 9. Retype the same file without looking at the printout you used to type it the first time. Repeat this step until you can accurately recall and type all statements in the file. Repeat the previous step and this step for the remaining source files of the 3-D game. This process of reciting the source code requires a study that builds on the understanding from step 8 and 9's concentrated reading. The ability to recite the source provides enough skill to make the modifications you detailed in step 2.
Compile the recited source code and run the Java program to verify your memory and understanding of the code.
For one of step 2's modifications, write the source code that implements that modification. Recompile and play the game. If it doesn't work as expected, debug it by following the JKD's instructions.
Repeat the previous step for the remaining mods on your list to finish your 3-D Java 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