The Arizona STEM Acceleration Project
Intro To Coding (Clicking Game)
Intro to Coding
(Clicking Game)
An 8th Grade STEM Lesson
Phil Oliver
Date: 1/25/23
Notes for Teachers
Context: This lesson takes place in a classroom or computer lab for two 50-minutes class periods.
List of Materials
Arizona Standards
Computer Science
Algorithms & Programming
7 & 8 AP.C.1: Design & develop programs that combine control structures including nested loops and compound conditionals.
7 & 8 AP.M.2: Create procedures with parameters to organize code and make it easier to reuse.
Science & Engineering Practices
● use mathematics and computational thinking
● construct explanations and design solutions
● obtain, evaluate, and communicate information
Ed Technology
6-8.5.d. Students understand how automation works and apply algorithmic thinking to design and automate solutions.
Objective(s):
Today we will be introduced to basic coding with the use of scratch.mit.edu.
Students will play a clicking game designed and created in scratch.mit.edu.
Students will design and then create a similar game in scratch.mit.edu.
Students will test their game and evaluate their game design.
Agenda (Day 1 - 55 minutes)
Intro to coding what is it and how can we use it?
Play example game 5 min
Create teacher-designed clicking game
Agenda (Day 2 - 55 minutes)
Design a clicking game
Create the clicking game.
Test or share game.
Coding what is it? What can you do with it?
Hands-on Activity Instructions
Day 1
Day 2
SCRATCH
CREATING A CLICKER GAME
Delete cat sprite and add the baseball sprite
This will act like a start button
This script will add one point every time the baseball sprite is clicked.
The set size script will make it look like “explodes” when clicked and the sound pop will play.
You may want to save this part for last as it is not necessary and the students will get off task changing the sound or just playing the sound. This can get old real fast.
AS TIME ALLOWS
Allow the students to go back and add sounds to the sprites when they are clicked on. They can also add a backdrop.
Assessment
Formative: Check that each Sprite works correctly.
Summative: Does the game work and meet all criteria?
Did students plan out their own game on paper prior to coding?
Students can answer self-reflection questions after the lesson.
Example Questions:
Differentiation
Day 2 could be used to correct any issues students had with the teacher-designed game.
Another option: instead of creating their own game, they could add a new sprite with it’s own set of rewards.
Strategically pair students as needed.
Provide additional video resources for students as needed.
Create a word wall with key vocabulary and images.
Remediation
Extension/Enrichment
Student could add multiple sprites with positive and negative rewards.
Students can add motion to their sprites.