Apr 042019
 

Computational thinking

  1. Don’t panic! Understand the problem
    1. Game brief
    2. Q and A
  2. Simplify! (decomposition)
    1. Pick ONE part at a time
      1. Sky going dark
      2. Sprite moving UDLR
      3. Turn off lights when touched by sprite
  3. De ja vu?
    1. Have we done anything similar before?
    2. What Scratch blocks do you remember?
  4. Create a plan – algorithm
  5. Have a go…!

Game brief

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….

 

Mar 202019
 
  • Discuss CT principles poster
  • Game brief
  • Work through principles…
    • 1 Questions and answers, notes
    • 2 Break it down, steps
    • 3 In Scratch – remind yourselves of blocks
    • 4 Steps to blocks
    • 5 Try
    • 6 Evaluate

 

Game brief

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….

 

Mar 202019
 

CT principles poster

LF1 Logging on!

LF2 Movement controls

  1. Go to “My stuff” and click on your maze project
  2. (Original project =  https://scratch.mit.edu/projects/205492019/ _
  3. See inside
  4. Scratch cat code
    1. Make Scratch move up, down, left, right when you press the arrow keys:
      1. Events – when up arrow pressed…ScreenHunter_155 Feb. 22 08.16
      2. Up = change y by  5 ; Down = change y by -5ScreenHunter_157 Feb. 22 08.17
    2. Test it out by trying to get past the Egyptian god!

LF3 Choosing coordinates

  1. Look at the Egyptian God script – can you work out how it works?
  2. RH-click on the Egyptian god and duplicate to get two more – one for each level
  3. Change the x y numbers so they patrol left and right
  4. Test the game – make sure it is just possible to get past by going into the tunnels

LF 4 Use drawing tools

  1. Stage – Backdrops
  2. RH click to duplicate
  3. Edit the second backdrop to make a new level

LF5 Make sprites interact

  1. Scratch script
    1. Add blocks so that, when Scratch touches the door, the background changes
    2. Make a new set of blocks so that, when Scratch touches a baddie, it returns (go to…) to the start position
    3. How can we make Scratch only move when it is not touching the walls?
Jan 172019
 

Work through these videos in order.  Don’t forget to save!

  1. Video tutorial – seeting up page links in j2e5
  2. Video tutorial  – setting up page links in Scratch
  3. Video tutorial 2 – using page numbers as links in j2e5
  4. Video tutorial 2 – Making page links and hiding links in Scratch
  5. Video tutorial 3 – Show what page we’re on – in Scratch

Now you have set up the links for an eBook in j2e5 and Scratch.

Using your knowledge from your Roman topic, create the content for your eBook.  Choose a small topic, eg Roman Food.

  1. An attractive title page
  2. 3 more pages of information with one sentence on each and a picture.
    1. Whe you search for pictures – use “Images – tools – usage rights – labelled for non commercial use
Jan 142019
 

(Y5 + Spruce only) Signing up…again

  • We need to sign up again…
  • This time, we will have username of the form: ab16-1stm
  • I will send you a link to get to your class sign up page

In Scratch

  • Complete a range of tutorials to learn different skills in Scratch 3
  • Make a j2e5 page called Scratch 3 skills
  • Add learning conversation to record what you have achieved today.

**Can you record a sound?  You may need to allow access to the microphone…

Jan 072019
 
  1. Go to Scratch:  https://scratch.mit.edu/
  2. Click “Start creating”
  3. Watch the intro video
    1. What is different in Scratch 3?
    2. What is the same?
    3. What did you remember? What is new to you?
  4. Click “Tutorials” – start with “Animate an adventure game”
  5. If you finish that one, develop it, or try another tutorial.
  6. How could you use Scratch for a topic based project?
  7. Save your work to your Google Drive.
  8. You could also try Y4 task – hyperlinked pages in Scratch – a way of setting up an interactive ebook with linked pages in scratch.

 

May 142018
 
  1. Finish your game plan (Google drive – classroom)
  2. Decomposition means breaking a problem or situation down into simple pieces.  When we are programming, we need to break the game down into simple bits that we program one at a time.
  3. Start with one part of your plan, eg how the main character moves.
  4. Break it down:
    1. Animation, eg walking
      1. Draw two or more costumes
      2. Example walking animation
      3. Make them swap all of the time when the greem flag is pressed.
    2. Controls
      1. Arrow keys
        1. Left – change x by -5
        2. Right – change x by 5
        3. Up – change y by 5
        4. Down- change y by -5
      2. Point int the right direction
        1. Left – point in direction – left
        2. Right – point in direction – right
      3. Rotation style: Left-right
  5. Now choose another element of your plan to work on
    1. Break it down…
May 082018
 

Think…

  1. We are going to plan and create a Greek themed game using Scratch.
  2. Think about some of the stories you have learned about –  Greek gods or heroes.
  3. What stories could you make a game about?
  4. Games could include
    1. Action – running,  jumping,  fighting,  climbing, flying
    2. Questions
    3. Choices
    4. Mazes
  5. Characters (sprites)
    1. Animated (costumes)
    2. Variables – lives, strength
    3. Controls
    4. Main character
    5. Other characters
    6. Other sprites
  6. Screens (Backgrounds)
    1. Title
    2. Instructions
    3. Level 1
    4. More levels

Tasks

  1. Go to Google classroom to find the planning sheet
  2. Start filling it in
  3. Include sketches of characters using drawings
  4. Go to Scratch to remind yourself of how it works
    1. Comment any “How do I …?” questions on Google Classroom
Mar 222018
 
  • Continue to work through these tasks.
  • Have a look at this video for any tips to finish off any tasks:

    Help video

LF1 Logging in

  1. Go to Scratch
  2. Log in, eg stm-ab14
  3. Passwords –

LF2 Making things move

  1.  Scratch cat
    1. Set size to 50%
    2. Make him always running
    3. Make him move
      1. forward with up arrow
      2. turn left and right with left/right arrows
  2. Balloon
    1. Make it follow the mouse
    2. Make it always the same way up
  3. Ball
    1. Make it always spinning
    2. Make it move up down left right with the keys w, s, a, d
  4. Car
    1. Make it drive to and fro across the screen

LF3 Changing costumes

  1. Ball
    1. Duplicate the ball costume several times to make a popping animation
    2. Make it pop (change costumes) when the mouse pointer touches it
    3. Add a popping sound
  2. Avery walking
    1. Make Avery walk left and right when g and h pressed
    2. Make Avery face correct direction and always walking

LF4 Share

  1. Click share
  2. In j2e my files, click your name, settings and refresh the scratch section
  3. Check your j2e file appears in my files

LF5 Gravity

  1. Make some steps
  2. Program Avery so that they fall down unless they are on the steps

LF 6 Firing

  1. Create a new sprite, eg bananas
  2. Make them follow the Scrath cat
  3. When you press space, fire the bananas in the direction it is pointing
  4. Make the car disappear if you fire a banana at it!

LF7 Make your own adaptations

  1. Use the sprites that you have set up so far and add some more code
  2. You could
    1. add sounds
    2. new controls
    3. new interactions between sprites
    4. be creative!

LF8  Plan a Scratch game

  1. Theme?
  2. Movement – what controls? keyboard? arrow keys? mouse position? mouse click?
  3. Background – how does it interact? maze, platforms…
  4. Sprites – how do they interact?
  5. Start t build your game – bit by bit, block by block…

 

Mar 212018
 

Watch the videos and use them to improve your Egyptian Maze game.

Video 1  – Movement through a maze

  1. Arrow keys
  2. Point in correct direction
  3. Stop at walls
  4. Backpack

Video 2 – Code so far

  1. Scratch cat – movement, react to baddies
  2. Baddies – glide across the screen
  3. Door
  4. Backgrounds

Video 3 – Next level

  1. When cat touches door, switch to the next level
  2. Send the cat back to the start

Next steps…

  • Create another level or two
  • Create a variable called Lives that starts at 3 and takes one off every time you hit a baddie
  • Make a Game Over background – make it switch to that background when you have no lives.