Game Development Reference
In-Depth Information
Objective complete - mini debriefing
The Scratch editor sill contains most of the familiar features we were used to. Some features
have been moved to a more suitable place, either to make them easier to access or to save
some space on the screen.
Creating and importing sprites
There are a few places in the Scratch editor where we can create or import images. If you
used Scratch before, you will be familiar with them already. What has changed is that you
can now draw images in two different ways. It's now possible to create sprites as bitmap
images or as vector images. Each of these modes has some advantages and disadvantages.
Engage thrusters
As menioned before, we can import images from the default library or from our local
hard drive. We can do this for the Stage object while adding a new sprite, and also in the
Costumes tab to add a new costume. You'll see that the same icons are repeated thrice in
these three locaions.
The more interesing addiion is the toggle between Convert to bitmap and Vector Mode .
You can ind this buton at the botom right of the costumes editor, as shown in the
following screenshot. What this does is it switches the created sprite between two different
ways of drawing. It also changes how the image is calculated by the computer. This can
make a difference to the performance speed while the project is running. Let's look at the
differences between these two drawing modes.
Bitmap mode is what you will be accustomed to from the Scratch 1.4 program. In bitmap
mode, sprites consist of pixels. Pixels are litle squares that are placed side by side to form
an image. An image like this is saved in the computer's memory as rows of pixels using the
same color. For example, there are 10 transparent pixels, then two black pixels, then six
orange pixels, and so on. The tools to create a bitmap image are similar to using a paintbrush
on paper. Wherever you touch the paper with the brush, a clump of color is created.
To create sharper graphics, the toolbox also has opions to create (illed) rectangles
and ellipses. It's also possible to erase parts of the image, pixel by pixel, if necessary.
Search WWH ::

Custom Search