Useful tools
Flip an image horizontally
- JIT paint
Remove background from any image
- https://onlinepngtools.com/create-transparent-png
- JIT paint – start with transparent background, search image, save as image
Fonts
Zoom in on j2e5
Useful tools
Flip an image horizontally
Remove background from any image
Fonts
Zoom in on j2e5
When you leave, your Google and j2e accounts will be removed.
Please use the comments below if you have any questions.
We are going to make a WW2 Blackout game
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….
Here is an example of decomposing – just looking at the main character, break it down into what we will need to code:
Example video 2
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
Examples of triggers:
Examples of actions
Example video 3
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
Ideas
You may copy and paste code from these instructions to save time typing.
Start a new LOGO file
Type:
reset
setpensize 5
Copy the following PROCEDURE:
to snowflake
repeat 6 [fd 20 bk 20 rt 60]
end
Now whenever you want to draw a snowflake, you just have to write snowflake rather than typing all of the code for a snowflake. The code above is called a PREOCEDURE – it teaches the computer a new word and what it means.
Try this
snowflake
repeat 10 [snowflake fd 20 rt 36]
Why did we use the numbers 10 (for repeat) and 36 (for the right turn)?
You can also add a VARIABLE to a procedure. Change the snowflake procedure to this:
to snowflake :size
repeat 6 [fd :size bk :size rt 60]
end
Now when you call snowflake, you need to put a number with it, which will be how big it is.
Try this:
snowflake 50
snowflake 100
You can add other variables to the snowflake too. Change the procedure to this:
to snowflake :size :col :pensize
colour :col
setpensize :pensize
repeat 6 [fd :size bk :size rt 60]
end
Then type for example: snowflake 60 “blue 10
Copy this code:
repeat 100
[
pu setxy (250 – random 500) (250 – random 500) pd
snowflake random 50 “blue random 15
]
Now tinker, play, experiment…
You could add this after the reset: colour “blue fill then make your snowflakes white
Year 3
Year 4
Year 5
Year 6