Lower Elementary
Computer Science
Create a Chicken Crossing Game
Objective
Students will be able to program an interactive player character and adjust the difficulty of play in a game.
Vocabulary
Event: Something that causes something else to happen in a program
Vocabulary
Debug: To fix a problem in a program
Computer games have images that move. These are called animations.
Obstacles are animations that get in the way of the goal!
Player characters are controlled by the player.
Changing how an obstacle or player character moves can make the game easier or harder.
Try this game at the easy and hard levels.
Which level do you like best? Why?
OPEN ACTIVITY
Create a game where the chicken character has to move past the car to get to the chicken coop!
Program the car to start on the “green flag”.
Program the car to move right.
Add a “forever loop”.
Test your program.
Set the car’s difficulty.
smaller or bigger.
A fast, big car makes the game harder.
A slow, small car makes the game easier.
We will program the player character together. Add a chicken to your scene!
Place the chicken below the road.
The chicken will be controlled by the player. We can add a “start on tap” event.
What direction will the chicken need to move to get to the coop?
Add a “move up” block.
The car is an obstacle. The chicken will go back to the start when bumped!
Add a start on bump event.
Add the “go home” block to send the chicken back to where it started.
Find a number to makes the game easier.
You can try different numbers!
Set the difficulty of the game!
Change the number in the “move up” block.
Your turn!
Make one chicken’s difficulty easy and the other hard. Can you help both chickens cross the road?
Ready for more?