Please enable JavaScript to use CodeHS

Coding Explorations in Sports

Lesson 2.5 Event Handlers

Description

In this activity, students will learn how to use block coding to create the start of a mini golf game. They will customize different aspects of their program to create a final product that can be shared with their teacher, family, and friends.


Objective

SWBAT begin to create a mini-golf game by adding event handlers and modifying parameters (e.g., background image, ball image) from the JavaScript code blocks. Specifically, their first main task is to define the events that will let someone hit the ball, cause the ball to bounce off of the walls, and get the ball in the hole.


Activities

These are all the activities included in the lesson

2.5.1 Event Handlers
2.5.2 Get the Ball Moving