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

Set Up and Press Play

Every game you've ever played began as an empty gray window. Here's how to get yours on the screen, one click at a time.

Teacher Notes

Not started yet.

Lesson Goal

Students will download and open the .NET version of Godot along with the .NET SDK, create a project called Clicker, build a scene whose top piece is named Main, save it as main.tscn, and run it with F5 to see an empty window.

Key Concepts

Godot is the program games are built in, C# is the language the code is written in, and the .NET SDK is the helper that lets the computer run C#. All three are free.

The editor has four areas worth knowing by name: the Scene dock on the top left, the FileSystem on the bottom left, the viewport in the middle, and the Inspector on the right.

A scene is saved as a file, and its first node is called the root. Pressing F5 runs the project, and the first time it asks which scene is the main one.

Where Students Get Stuck

Downloading the standard Godot instead of the .NET version. It opens and runs, but C# won't work later, and the fix is to download the .NET one.

Skipping the .NET SDK. Godot opens fine without it, and the trouble only shows up in Lesson 3 when the code won't build.

Opening the program with console in its name. It works, but it shows a second black window that confuses beginners.

Checking the Work

When this lesson is done, a project called Clicker should exist on the computer, with one scene saved as main.tscn whose top node is a Control named Main.

Pressing F5 should open a plain gray window with nothing in it, and F8 or the window's close button should stop it. If the window opens, everything is working.

There's no code to compare yet. A parent can look at the Scene dock and check that the top node says Main.

Setup Links

Godot for Windows (choose the .NET version): https://godotengine.org/download/windows/

The .NET SDK, version 8 or newer: https://dotnet.microsoft.com/download/dotnet/8.0

Suggested Videos

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

Key Vocabulary

Game engine
A program for building games that handles the drawing, the sound and the Play button so you can focus on your game.
SDK
A set of tools that lets your computer understand and run a programming language such as C#.
Project
The folder that holds everything for one game, which Godot lists in its Project Manager.
Scene
A group of pieces saved together as one file, such as main.tscn.
Root node
The first piece in a scene, which every other piece sits on, and ours is called Main.
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.