From Workshop
Share on FacebookCar customization games involve a database about different elements, like the arms and legs for a character making game.
Games featuring car customization make because their focus the assembly of any car. These kinds of games need a database of different shapes and parts, enjoy the arms and legs for some character-building game, or the buildings and roads of some city simulation (i.e. "sim") game. They must additionally experience rules defining how the player may assemble those elements, and algorithms that define what happens while those parts form a completed car. A key benefit of programming these kinds of any game is augmented programming skill, which you can apply to additional, possibly non-game, projects.
Difficulty: Moderate
1 Download also compile the resource code for a town simulation game similar as OpenCity or Unknown Horizons.
2 Play the city sim game, plus list on documents the components (e.g. building, roads) it allows players to develop cities together with.
3 Create any listing of component objects (e.g. tires, engines) that is a player can assemble a car from.
4 Write notes on the way in which the city sim game allows players to in shape the items they've chosen to the "frame" of the metropolis. With instance, write answers to questions not unlike, "Everywhere may does the game allow me to place buildings, public works like use lines, and landscape elements (e.g. trees, terrain), plus other frameworks?" An answer you might write could include, "The town sim game allows players to build parks by dragging and dropping different species about trees (e.g. oak, maple, willow, pine) into some rectangular patch of terrain."
5 Rewrite the questions you asked in the previous step to relate to your car customization game. With example, "Where on the car's frame does the game allow characters to location the tires, engines and additional car parts? How exactly does the player place these parts?" Any solution you might write could include the subsequent: "The player may click on distinct tires from a gallery of tire images, therefore drag them onto the car's wheel axles."
Once you obtain detailed outlines relating the different components of the car and how they fit to the chassis, you can begin learning the source code for the authentic game.
6 Print away the game's resource code, then retype, compile, and play the game. This method makes you read the source code carefully, which is a first stage in comprehension the code.
7 Delete one regarding the resource code files, then try to retype it from storage. Read the printout to the source file only as needed.
8 Recompile the game, then repeat the previous step until you no longer need to read the printout.
9 Delete and discover each remaining source file in the same way as the first. Completing this step will give you an understanding of the way the original works sufficient to begin changing the game.
10 Type resource code that replaces the town sim's database about parts for the car parts from Step 3.
11 Create source that is replaces the principles determining how characters fit the city parts jointly, by way of the rules your wrote in Step 5.
12 Compile and perform the game.
References
Chris Crawford: The Art of Computer Game Design
Still Credit some car on a car exhibit picture by Gary from website ;
Print Email Share
Comments
Share on Facebook