Sign up to Tinkercad
- Follow the link and instructions on j2message
Learn
- Click Learn – Starters
- Work your way through the tutorials to get the basic skills of designing in Tinkercad
- When you think you know what you are doing then you can move onto…
Design
- Design something.
- It could be a new item of furniture, a room or garden latyout, a building,…use your imagination or look at some projects for inspiration.
TinkerCad https://www.tinkercad.com/
MS MakeCode https://arcade.makecode.com/
- Open this maze in j2code
- Add motion blocks: forward 75 and turn left/right 90
- Can you get the penguin through the maze?
- ** Can you also collect the fish on your way through the maze?
- Save your work
- Go to Scratch
- Click on
- Click on this one
- Choose a positive word, eg JOY, FUN, HOPE, HAPPY, YAY, PLAY…
- Follow the instructions to bring your word to life
- Can you make the animations suit the word?
LF2 Using different blocks
- Go to Scratch
- file – Load from your computer
- Google Drive – double click on your project from last week
- Can you make your letters do different things?
- Make a noise when you click on them
- Spin around when your click on them
- Grow and shrink when you click on them
- Change colour when you click on them
- Keep changing colour
- Glide up and down when green flag clicked
- Glide in from a random position when you click the green flag
- What other ideas have you got? Can you find blocks that do it?
We are going to make a WW2 Blackout game
LF1 Computational Thinking
- Read CT principles poster
- When have you used each one before?
LF2 Game brief – decompose
A game company would like you to make a WW2 blackout themed computer game featuring, the landscape of a UK city threatened by the Blitz. The aim is to put up blackout curtains in the daytime before nightfall so that the bombers will pass harmlessly overhead during the night. Successive screen will become harder with more windows to cover and bigger buildings. Wardens will be patrolling. You may have to find or buy blackout material. Depending on how completely you blackout the city, bombs will fall. How long can you keep your city from being destroyed – a percentage score could drop after each night of bombing….
- Work through CT principles for the brief
- 1 Don’t panic – understand the problem
- Questions and answers, notes
- 2 Break it down (decomposition)
- Make a list of characters, backgrounds, objects
- What do each need to do?
- Make a list of simple steps – these need to be as small as possible
- 3 Use your knowledge and experience
- In Scratch – remind yourselves of the different types of blocks and what they do
- 4 Create a plan (algorithm)
- Take your steps from stage 2 one at a time and use Scratch blocks to code them
- 5 Try it!
- Test it out often
- 6 Evaluate
- What works? What do you need to change? Tinker
- 1 Don’t panic – understand the problem
Here is an example of decomposing – just looking at the main character, break it down into what we will need to code:
LF3 Drawing sprites, costumes and backgrounds
- Refer to your notes from last week (in j2e – Scratch Blackout Game)
- Draw new sprites and costumes
- Draw the background
- By the end of the lesson, you must have at least a sketch of every sprite, costume and background.
Example video 2
LF3: Triggers and actions
A journey of a thousand miles begins with a single step ~ Ancient Chinese proverb
Take one single simple idea at a time and turn it into Scratch code.
For every thing you want to happen, there are two parts
- Trigger – what sets it off
- Action – what the consequence is
Examples of triggers:
- Beginning of the game
- When keys are pressed
- When one object touches another object
- When one sprite touches a colour
- When a play button clicked
- Other examples in Events blocks
Examples of actions
- Turn the background dark (night time approaching) – repeat, change brightness effect by -10, wait 1 second
- Sprite walking – forever, costume 1, costume 2
- Keyboard controls move right – when right arrow pressed, change x by 5
- Bomb dropping – go to random position, set y to (top of page), repeat 20, change y by -10
- Bomb exploding – next costume, play sound
Example video 3
LF4 One step at a time
- Keep working on little bits of coding
- Feedback – How did that go? form
- List what you have coded, eg boy steps, keyboard controls, bomb drops
- j2launch –
- Click on Level 3
- Type these two instructions:
reset
setpensize 5
- Can you draw a letter?
- Use these commands:
- fd 30 (or other numbers)
- bk 30 (or other numbers)
- lt 90
- rt 90
- (Diagonal letters will need rt 45 or lt 45)
- Press play each time to see if it works – don’t carry on until you are happy with each instruction.
- If you finish one letter, type
- pu (pen up)
- move to a new place using fd, lt, rt…
- pd (pen down)
- Try another letter
Challenges
- Change the pensize to 30
- Could you make different letters different pensizes?
- For a letter that contains a square, use this square code
- repeat 4 [fd 80 rt 90]
- Change the colour of each letter by putting this code before the letter code:
- colour “blue
- Start a new project in LOGO
- Copy this code (copy and paste)
reset
setpensize 5
to rect :h :w :x :y
pu setxy :x :y pd
repeat 2 [fd :h rt 90 fd :w rt 90]
end
- Now you can draw any size rectangle anywhere on the page by typing:
- rect 30 60 100 -50
- The first two numbers and the height and width
- The second two numbers are the x-coordinate and y-coordinate
- The page goes from
- -250 to 250 left to right
- -250 to 250 bottom to top
- The page goes from
- MAke a picture out of rectnangles
- ** Add a colour variable to the procedure
- ** Add another variable, eg
- pensize
- angle (dn’t forget to change the angle back again)
- make it a parallelogram (one angle :ang, other angle (180 – :ang) )