Step 1 of 5
Shape the boulder
You will build the boulder in one file. Each step adds code beneath the previous step.
You can type the code yourself if you want to learn the syntax as you go. If you would rather focus on the result, use Copy code and paste it into the editor.
Pixelgen updates the image as you type. When the result looks right, select Check result. You can experiment with the code at any time.
Add the code below beneath canvas 32x32.
What you should see
A gray, uneven shape appears beneath view mask.
What just happened
Pixelgen created a field: a grid containing one number for every pixel. Higher numbers appear brighter.
We named this field mask because it describes which pixels belong to the boulder. Later, it will keep the moss inside that shape.