Programming Pacman Lesson 2 On Click

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

PROGRAMMING PACMAN

Learning Intention: We are learning to write on click actions


Instructions: Instead of programming exactly where Pacman will go, now we are going
to program the computer to respond to the arrow keys being pressed so the player
can move pacman wherever they would like.
The first one has been done for you.
Ensure you cover all 4 arrows!

Commands:
When Up Arrow is pressed
Move Up

Commands that you can use:


When Up Arrow is pressed
When Right Arrow is pressed
When Down Arrow is pressed
When Left Arrow is pressed
Move Left
Move Right
Move Down
Move Up

You might also like