GREENFOOT
Download this Greenfoot project and practise the skills that you have learnt in class. Remember to use your flash cards (see below) to revise the code needed!
You will need to:
(a) Populate the world with an umbrella, sun and at least two instances of waterDrop.
(b) Edit the waterDrop and sun objects so that they turn and move at random.
(c) Edit the umbrella object so that it moves at an appropriate speed in the direction of the arrow keys when pressed.
(d) Edit the umbrella object so that it “catches” a waterDrop when they collide (removes the waterDrop from the world).
(e) Add a sound which will play every time the umbrella “catches” a waterDrop.
(f) Add a counter. Edit the code so that the counter displays how many waterDrops have been “caught”.
(g) Edit the code so that the counter loses a point (1 point is deducted) if the sun collides with a waterDrop.
(h) Save your completed world as finalDrop8.
You will need to:
(a) Populate the world with an umbrella, sun and at least two instances of waterDrop.
(b) Edit the waterDrop and sun objects so that they turn and move at random.
(c) Edit the umbrella object so that it moves at an appropriate speed in the direction of the arrow keys when pressed.
(d) Edit the umbrella object so that it “catches” a waterDrop when they collide (removes the waterDrop from the world).
(e) Add a sound which will play every time the umbrella “catches” a waterDrop.
(f) Add a counter. Edit the code so that the counter displays how many waterDrops have been “caught”.
(g) Edit the code so that the counter loses a point (1 point is deducted) if the sun collides with a waterDrop.
(h) Save your completed world as finalDrop8.
Flash Cards
Remember to use your FLASH CARDS to revise the code needed!
![](http://www.weebly.com/weebly/images/file_icons/pdf.png)
flash_cards_revision_-_add_move_and_eat.pdf | |
File Size: | 178 kb |
File Type: |
Greenfoot Videos
There is a series of videos that show you how to complete the Greenfoot tasks in the Component 2 exam. There are two particularly useful videos on creating the counter to keep score in the WJECDrop8 project (from June 2018). Click on the links below to watch them:
You should also download the Greenfoot project to practise (link also found at the top of this page).
- Scenario - Part 6 Adding a counter to record collisions
- Scenario - Part 7 Decrement counter on collision
You should also download the Greenfoot project to practise (link also found at the top of this page).