Mar 162017
 

We looked at sum and difference problems like this one:

I buy a book and a pen.  In total, they cost me £5.  The book was £4 more expensive than the pen.  How much did each cost?

We did some more examples and came up with a general method of doing any question like it.  Then we looked at how we could program a computer to do it for us…

Here’s the link to see the code: https://scratch.mit.edu/projects/150578027/

Mar 092017
 
  1. Log into Scratch and start a new project
  2. Set up gravity: use forever, change y by…
  3. Play to check that the cat falls
  4. But gravity only moves you if you are in the air,…
  5. Draw the ground on your background
  6. ScreenHunter_50 Feb. 27 11.46
  7. You only want the cat to fall if is not touching the ground
  8. Use: if, not, touching colour… inside the forever loop
  9. Play to test it out and drop the cat in different places to check that it works.
  10. ** What happens if you put the cat under the ground?!  Why?
  11. Now add some floating levels of the same colour and test again
  12. ScreenHunter_51 Feb. 27 11.53
  13. Add keyboard controls:
    1. Left/right: use when left key pressed; change x by
    2. Jump: use when space key pressed; change y by…
  14. Test your game
    1. What works well?
    2. Even better if…
    3. Can you think of solutions to you even better ifs?

Next level

  1. Where do you want your sprite to start?  Use the go to x _  y _ block when the green flag is pressed to start at the right place.
  2. Add an end place in a different colour to the platforms.
  3. Draw a new background.
  4. Use: forever, if, touching colour, next background
  5. Test your game.

Collect shapes

  1. Make a new sprite for the character to collect, eg star, banana…
  2. Place it where you want it to be.
  3. Only do one – when you have programmed it, you can duplicate more
  4. Use: when green flag pressed, show, forever, if, touching sprite, hide
  5. ** Create a variable called score
    1. set it to 0 at the beginning of the game
    2. make it add 1 every time you collect an item

Baddies

  1. Create a sprite for the character to avoid
  2. What will happen when you touch it? (Hide sprite and change background to “Game over”…)
Mar 092017
 
  1. Log into scratch and start a new program
  2. Create a new sprite and draw a simple traffic light
  3. traffic light
  4. Duplicate the costume and fill in the lights in the correct sequence (as discussed in class)
  5. Program your traffic lights
  6. Get a car sprite and get it move left and right on your screen (you will need the if on edgebounce block)
  7. car move
  8. Click the left-right arrow in the sprite settings (so it doesn’t go upside down when going left)
  9. Can you change the car script so that it only moves when the traffic lights are green?
    1. Make a new variable (in data blocks) called “lights”
    2. In the traffic light code, make it change “lights” to “green”, “green+amber”, “red”, “amber”
    3. Make the car move only when lights are green (forever, if, lights = green, move)
  10. Get the Scratch cat to walk across the road, when the lights are on red.
  11. Use this crash code to stop the game if there is a crash:
  12. crash
  13. Can you add a pedestrian crossing button (a new sprite) so that when you press it, it turns the lights red?
Mar 062017
 
  1. Carry on following the instructions here: http://code-it.co.uk/wp-content/uploads/2015/05/scratchcrabmaze.pdf
  2. Follow the instructions carefully.
  3. There re also more resources here:  http://code-it.co.uk/scratch/crabmaze
  1. Save
    1. Your file automatically saves if you are logged in
  2. Extra challenges (if you have finished the instructions)
    1. Make your game Egyptian themed, eg The tomb of the pharoah
    2. Add a title page at the beginning
    3. Add an instruction page
    4. Add “baddies”, eg Egyptian gods, that chase you in the maze
    5. Make it a two player game
    6. Add music
    7. Add a (animated) game over page, eg your character spins and shrinks
Mar 062017
 
  1. In j2e5 turn on “grid” and “snap”
  2. Draw some simple shapes with right-angles
  3. Go tot the Scratch page
  4. Follow this video to get started: Scratch Y3 right angled shapes
  5. Call your project:  Right angled shapes
  6. ** Can you draw more than one of your shapes by using “pen up”, moving, then “pen down”? (You could use the “go to x… y…” block)

Success steps

  • Sign into Scratch
  • Find blocks from different groups
  • Click and unclick blocks
  • Play program to test it
  • Correct (debug) your program by learning from your mistakes and correcting them
Mar 022017
 
  1. What is a PicoBoard?
    1. What does it do?
    2. How do I connect it?
    3. What are the sensors?
    4. How do I use it with Scratch?
      1. Click: more blocks – add an extension – PicoBoard
      2. Make the cat say the slider sensor reading
        1. What blocks do you need?
        2. Does it change when you slide the slider?  Why?  Why not?
      3. Change the sensor or add new sprites so you test out the different sensors and what numbers they give.

ScreenHunter_49 Feb. 27 11.03

  1. What elements does a game have?
    1. Watch/play a simple Scratch game
    2. What are the elements of the game?
    3. Which of the elements need programming?
  2. How could I use a PicoBoard as a game controller?
    1. What could you control with the sensors?
    2. How could  you use the PicoBoards for Science experiments?
    3. Have a go at using the slider and button to make the cat do something.

Success steps

  • Plug in PicoBoard
  • Try out ideas in Scratch
  • Create ideas for using PicoBoard to control a game

 

Mar 022017
 
  1. Log into Scratch and start a new project
  2. Set up gravity: use forever, change y by…
  3. Play to check that the cat falls
  4. But gravity only moves you if you are in the air,…
  5. Draw the ground on your background
  6. ScreenHunter_50 Feb. 27 11.46
  7. You only want the cat to fall if is not touching the ground
  8. Use: if, not, touching colour… inside the forever loop
  9. Play to test it out and drop the cat in different places to check that it works.
  10. ** What happens if you put the cat under the ground?!  Why?
  11. Now add some floating levels of the same colour and test again
  12. ScreenHunter_51 Feb. 27 11.53
  13. Add keyboard controls:
    1. Left/right: use when left key pressed; change x by
    2. Jump: use when space key pressed; change y by…
  14. Test your game
    1. What works well?
    2. Even better if…
    3. Can you think of solutions to you even better ifs?
Feb 232017
 
  1. Sign up to Scratch:
    1. Lime http://scratch.mit.edu/classes/20100/register/b3fb1c7297d244989dfa439c3ceb5167
    2. Maple http://scratch.mit.edu/classes/20101/register/f3381d91a8fa4920b66066b298130267
    3. Oak http://scratch.mit.edu/classes/20102/register/e686bd0e3764489eb95163f8de3f98e9
    4. Username: stm- then your email start, eg stm-jk14
  2. Make sure you have shared your Prezi with me
  3. Make sure you have a j2e page called Y5 Prezi
    1. If you have one called Prezi, click “i” in my files and rename it
    2. Add a link to your Prezi
    3. ** embed your Prezi
  4. If you have finished, please do some online maths practice, eg j2blast
Feb 232017
 
  1. Make a new j2e5 page
  2. Create a poster about how to keep healthy
  3. Here’s a quick help video if you need it.

Success steps

  • Fill the page
  • Big clear title
  • Search pictures in j2e
  • Drag pictures onto page
  • Resize, rotate and reposition things
  • Colourful
  • Save as “be healthy poster”
  • ** could create a page border like we did with our 1950s toy border, eg an apple, football,…