Video Game Design and Programming Concepts 40 Copyright Goodheart-Willcox Co., Inc. May not be reproduced or posted to a publicly accessible website. 20. Double-click the Game Objects 1 twig to open it. 21. Add the following objects to the game frame, and rename them as shown. Object Naming Convention corner wall tile 9 Wall_Corner_Top_Right corner wall tile 10 Wall_Corner_Bottom_Left corner wall tile 11 Wall_Corner_Bottom_Right corner wall tile 12 Wall_Corner_Top_Left wall tile 6 Wall_Top wall tile 7 Wall_Right 22. Drag each wall corner object to the correct corner of the game frame. Notice how the grid and snap help you correctly align the objects. 23. Drag the Wall_Top object to the right of the Wall_Corner_Top_Left object. 24. Drag the Wall_Right object below the Wall_Corner_Top_Right object. Notice how the naming convention makes it easy for you to know which objects are being discussed. Using names such as Object 1 or Object 2 would not give you enough information to easily find the object. Duplicating 25. Right-click on the Wall_Top object in the game frame, and click Duplicate in the shortcut menu. The Duplicate Object dialog box is displayed, as shown in Figure 3-3. This allows you to specify the placement of the new instances. Remember, an instance is an exact copy that inherits all the properties of the original object. 26. Click in the Rows text box, and enter 1. This specifies one horizontal row of instances. Double-click to go up one level in the tree Coordinate indicator for cursor location Drag and drop to add an object to the frame Goodheart-Willcox Publisher Figure 3-2. Objects can be dragged from the library and dropped onto the game frame.
Previous Page Next Page