Scratch Workshop - Item Collection & Dodge
From WLCS
Objective:
- You will create a Scratch game that allows a player to travel around the screen, collect items, and avoid dangers
- Use the following TEMPLATE INSERT HERE to start your game
Game Summary:
- The player will be able to move around
- The player will be able to collect items
- The player must avoid dangers like "mines" or "traps"
- The player wins when all items are picked up
- The player loses when he/she hits a dangerous item
Player Sprite:
- Import a new image or create your own player sprite image to replace the given one
- Analyze the given movement code
- Add additional code blocks to enable movement in the other directions
- Hint: You will need more if-statements (Control), key pressing (Sensing), directional movement (Motion)
Item counter: - will be used to keep track of picked up items
- Create a variable for all sprites named "count"
- Go to the stage background:
- Reset the count variable to 0 when the game starts (green flag clicked)
- Use a forever loop
Collecting Items:
- Import a new image for the items that the player will collect
- When the game starts, tell the item to go to a random location (use the goto and random # block for x and y)
- If the item touches player sprite, then:
- it should disappear (hide)
- broadcast a message to the player sprite to say something like "yum!"
- increase the item count by 1
Dangerous Items:
- Import a new image for the dangerous items that the player will avoid
- When the game starts, tell the item to go to a random location (use the goto and random # block for x and y)
- If the item touches player sprite, then:
- it should disappear (hide)
- broadcast a message like "game over"