Let’s decompose!
- Choose one of these games – what elements do they have?
- Find your entry from last week here
- Edit only your row (I can tell…)
- Look at your answers and improve by giving more detail
- Challenge: What blocks in Scratch might you use?
Planning
- http://www.j2e.com/stmarks/bwilliams/Scratch+game+planner/
- Save in your files
Tables game planning (if you need it…):
- http://code-it.co.uk/wp-content/uploads/2015/05/tables_planning.pdf
- http://code-it.co.uk/scratch/tablesgame/tablesgameoverview
Making
- https://scratch.mit.edu/
- Explore tools and experiment
- Use your planner to build your game bit by bit – the better you have decomposed your game, the easier it will be.
- Edit your planner if your plan changes…
- Work on main sprite:
-
- Start with the way it moves – keyboard controls? mouse? forever moving?
- Now deal with how it reacts to other things – other sprites? the score? gravity? the floor/walls/platforms?
-
- Use some of the resources below:
Resources
- There are some ideas and examples to follow here
- Bubbles tables game planning (if you need it…):
Last 8 minutes
- Save into your folder with file name: “John S game”
- In the learning conversation, reflect on what you have achieved
- Screenshot your sprite code and paste into your scratch game plan
“Scratch mini tasks”
- Go to Scratch – you can login if you like, but don’t need to – click on “create” to make a new project
- We will be creating games next term so here are some mini tasks to get you warmed up.
- Stick with the cat sprite with no background.
Work your way through these tasks
- Gravity – put together: When Green flag clicked, forever, change y by -1
- He should fall when you click the green flag
- Gravity 2 – change your gravity block by adding: if…then, < (in operators) , y position , 0
- He should fall until he gets to 0 height (the middle of the screen)
- Can you change the number so that he lands on the bottom of the screen?
- Jumping – start a new block with: When space key pressed, change y by 50
- Walking
- click the “i” on the sprite, then change rotation style to the double arrow <–>
- Make two new blocks:
- When left arrow key pressed, point in direction left, change x by -10
- When right arrow key pressed, point in direction right, change x by 10
- Random movement
- Create a new sprite – a ball
- Make this block: when flag clicked, point in direction, pick random 1 to 360 (in operators), forever, move 10 steps, if on edge bounce (only have the move inside the forever)
- A basic game!
- Add to the cat script: when green flag clicked, forever, if…then , touching ball, say “Ouch” for 1 second
- Play your game and see if you can avoid the ball!
- How could you make it easier or harder? Try out your ideas
- Mouse control
- You could make it a 2-player game by controlling the ball with the mouse:
- Change the ball script to: when flag clicked, forever, point towards sprite1, move 2 step
- Play with a partner!