๐ ๏ธ Section project: a street of houses
Section 11: My Blocks: make a new blockLesson 11.2 ยท โฑ 12 min
๐ฏ Project goal
A โhouseโ block draws a square with a roof on top, then a street of 4 houses in different colours.



- Start with the square inside define.
- Lift the pen and go up 60 to draw the roof.
- Go back down to the bottom of the house at the end of define, so the next house starts at the same height.
- In the program: repeat 4 times: change the colour, house, move right.
๐ Another example: a row of trees
A โtreeโ block draws a brown trunk, then a green circle, and Robo goes back to where he was at the end so the next tree is easy to draw.



โ๏ธ Practise
Draw your own street: change the size of the houses, their colours and the gaps between them.
โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Easy
Make a โhouse with a doorโ block: it uses the โhouseโ block itself, then draws a small door. (A block inside a block.)
๐ Show the solution๐ Hide the solution




Medium
Two streets: a row of 4 houses at the bottom, and a row of 3 blue houses above it.
๐ Show the solution๐ Hide the solution



Hard
A house, then a tree, then a house, then a treeโฆ three times.
๐ Show the solution๐ Hide the solution





