Game Development Reference
In-Depth Information
Prepare for lift off
This step can be done with an external image editor, such as GIMP or Photoshop. The
step-by-step explanaion assumes you have such a tool available. GIMP is available for free.
If you don't want to bother with other tools besides Scratch, the Classified intel secion of
this task will explain how you could go about drawing the iles in the Scratch image editor.
Engage thrusters
To start drawing the iles, we irst open the image editor of our choice. We will draw twelve
diferent sprites to create a complete set of interesing ile opions. Please create the images
in the following order, because this will be important later on when we create the script for
the ile generator:
1. Create a new canvas 60 pixels wide and 60 pixels high.
2. Then, make the grid visible and if necessary, set its spacing to 20 pixels . That easily
divides our canvas into 20 x 20 pixels segments.
3. We can irst ill the enire canvas with a white background to create an open space.
Since the Scratch stage is white too, this step is opional. A transparent space works
just as well.
4. Our irst ile will be a straight verical corridor.
5. Use the box select tool to draw a selecion rectangle around the let column.
6. Then, we can click on the ill opion to ill the selecion with black.
7. Repeat these steps for the right column and our irst ile is done.
8.
Save the image with the name tile1 in an easy-to-ind locaion. We will later
import it into Scratch.
Our first image will look like the following screenshot:
Noice how the gridlines of the editor are used to divide the ile
into nine segments.
 
Search WWH ::




Custom Search