Copyright
by
The
Goodheart-Willcox
Co.,
Inc.
32 Introduction to Video Game Design
46. Change the object to be inserted to the OBJ_Wall object.
47. Move the cursor to the top right-corner of the room.
48. Hold down the [Shift] key, then click the left mouse button and drag along the top of the
room to add a series of OBJ_Wall objects to create a wall. Notice that the wall bricks
automatically snap to the grid, which results in gaps in the wall.
49. Click the right mouse button and drag across the wall object to erase them.
50. Change the grid size to 32 × 32. The sprite assigned to the OBJ_Wall object is 32 × 32
pixels, so the grid now matches the size of the object.
51. Holding down the [Shift] key, drag to create a row of OBJ_Wall objects along the top of
the room. There should be no gaps in the wall now.
52. In a similar manner, create a wall all the way around the room. See Figure 3-7.
53. Close the room by clicking the Windows close button (the X). When prompted to save the
room, click the Yes button.
54. Save your work.
OBJ_Wall
objects added to
create a wall around the room
Figure 3-7