Creating a cucumber patch area in the sandbox

This section guides you through the steps necessary to create a cucumber patch area in the sandbox. In the Hierarchy panel, you should have a Cucumber Patch Areas game object that contains every size of cucumber patch, each one a 3D object of the plane type. If you do not have these objects, which are shown in the following screenshot, either revisit Chapter 6, Creating and Importing 3D Objects for Our Game, or download the Starting-Chapter-08 Unity project available from the publisher's companion site:

 
Here are the steps to create a sandbox area in our game:
  1. In the Hierarchy panel, expand the Cucumber Patch Areas game object to expose the six planes. Remember, we created the Cucumber Patch Areas game object to serve as a visual organizing folder for our convenience.
  2. Double-click each plane (CucumberPatchArea1CucumberPatchArea2CucumberPatchArea3CucumberPatchArea4CucumberPatchArea5, and CucumberPatchArea6). When you double-click an object in the Hierarchy panel, the Scene view will be focused on it. 
  3. Identify which cucumber patch area is already in your sandbox.
  4. In the Hierarchy panel, right-click the identified cucumber patch and select Duplicate.
  5. Rename the duplicated cucumber patch as CucumberPatchAreaSandbox.
  6. In the Hierarchy panel, drag the CucumberPatchAreaSandbox to subordinate it under the Sandbox game object.
  7. With the CucumberPatchAreaSandbox plane selected, modify the shape to fit the sandbox area. Use the transform tools for this.
  8. Modify the terrain section of the sandbox, if necessary, so that the terrain inside the confines of the CucumberPatchAreaSandbox is flat and can receive cucumber patches.

You may have to use the Raise / Lower Terrain and Smooth Height terrain tools to ensure the area with the CucumberPatchAreaSandbox is flat. The following screenshot shows the orange-outlined CucumberPatchAreaSandbox area, two cherry trees, and the three spawn pads indicated in red. Smaller and more difficult to see are the Cucumber Man and one Cucumber Beetle. Your sandbox does not need to look exactly like this, but should have the same components as shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset