← Game Coding
Game Coding U1-L8 Your First Game Window

Unit 1 Review: A Clicker From Scratch

You built a clicker with help. Now build one without it, and find out how much of it is already in your head.

Teacher Notes

Not started yet.

Lesson Goal

Students will build a new project called HeatTest from an empty window, with a label that counts up on a timer, a button that cools it down without going below zero, and a number that turns red past 50, and then explain what each part does.

Key Concepts

Unit 1 in one list: a node is a piece with one job, a scene is nodes saved together, a script is instructions attached to a node, a variable is a labeled box, a signal is a doorbell, a method is a named recipe, if and else make a decision, and a timer rings a signal on its own.

The usual build order is: make the scene and nodes, attach the script, add the variable, connect the signals, write the methods, and then press F5 and test.

The same skills carry into the next unit, where things start to move on the screen.

Where Students Get Stuck

Skipping the plan and typing straight away. Making a quick list of the nodes and what each one does saves time.

Node names that do not match the code. HeatLabel, HeatTimer and CoolButton must be spelled the same in the Scene dock and in the script.

Peeking at the finished code too early. The point is to try first, so the answer is held back until the last step.

Checking the Work

When this lesson is done, there should be a new project called HeatTest with a scene whose top node is Main, and under it a Label named HeatLabel, a Timer named HeatTimer, and a Button named CoolButton, with a Main.cs attached to Main.

Pressing F5 should show the number climbing by one every second, turning red above 50, and the Cool button should take 5 away without ever going below zero.

A parent can open Main.cs and compare it to the finished code in the last step of the Watch It Worked. It doesn't have to match word for word, but it should behave the same way.

Suggested Videos

Optional. Watch one first, then press Add to put it in the Visual Panel for a student.

Key Vocabulary

Node
One piece of a game with one job, such as showing text or being a button.
Scene
A group of nodes saved together as one file.
Variable
A labeled box where a program keeps a value that can change.
Signal
A doorbell a node rings when something happens, which a method can answer.
Method
A named recipe of code that you can call as many times as you like.
Sentence 1 of 26 Tap any sentence to start reading there
Settings

Settings

Stored on this device only. Your key stays in this browser. It is never sent to NexStudents, never shared, and never leaves your machine except to the voice provider it belongs to.

Where to get a key. Google Cloud TTS powers the built-in voices on this page and has a free monthly allowance. ElevenLabs is worth a look if you want a more natural voice and do not mind setting up an account.

Colors

Read-aloud is not available in this browser. Try Chrome or Safari.

Before You Start

The Words

The words this lesson uses. Tap a card to see what it means, then come back to them whenever a question uses one.

Part One

The Questions

0 of 0

Questions about the story you just read. Pick your answer straight off, or press Find it in the story if you would rather hunt for the sentence first.

Part Two

Vocabulary Check

0 of 0

The word cards are at the top of this page. Look back at them as often as you need, then answer.

When you finish: write the answers out in your own words — not copied word for word from the choices. Saying it your own way is the part that proves you understood it. Then use Print Answer Sheet for a one-page record of what was answered and scored.
Homework Sheet: UnavailableThere is no homework sheet for this lesson yet.