Nov 102019
- j2launch –
- Click on Level 3
- Type reset
- This code draws a single step like the one below:
- fd 30
- rt 90
- fd 30
- lt 90
- Press play – you should get this:
- Now add this to your code:
- pu
setxy -200 50
pd
- pu
- Challenge 1: Make this shape by typing more instructions:
- Now add this to your code:
- pu
setxy 130 100
pd
- pu
- Challenge 2: Now make a square:
- Now add this to your code:
- pu
setxy -140 -140
pd
- pu
- Challenge 3:
- Now add this to your code:
- pu
setxy 140 – 140
pd
- pu
- Challenge 4:
The final picture should look like this:
Is there any way we could make our code simpler? Some of the algorithms repeat instructions.
Success steps:
- Copy instructions carefully
- Press play to run program
- Make instructions to draw simple shapes including forward, left and right
- Check instructions carefully for mistakes (bugs)
If you have finished, try working through these debugging challenges!
And if you finish that…! Start a new file and start with this code.
- reset
- setpensize 5
Can you draw a letter? ~(Diagonal letters will need rt 45 or lt 45)