Session Lesson Plan
Coding Fundamentals
Explore the coding concepts of functions, loops, and if/then statements with mini-projects that can be added to games like color changing platforms and traps.
10 and up
Computer Science
Game Design
English
1 hour
ISTE Standards: N/A
Learning Objectives:
- Demonstrate the logic of if/then statements by modifying a part’s properties.
- Practice troubleshooting by independently fixing issues in scripts as encountered.
Skills and Concepts:
- Property - Something that controls how an object looks or behaves, like color or if players can walk through it.
- Loop - A set of code that repeats until told otherwise.
- Function - A set of instructions can be e re-used in different parts of a script.
Getting Ready
Preparation:
- Download and open the Trap Project sample in Roblox Studio to show in the Introduction
Materials:
- Handout: Intro to Coding Cheatsheet
- Paper and pencil per student
Lesson Overview
5 min |
Introduction
|
Introduce the session. |
20 min |
Guided Tutorial
Working with Properties
|
Modify the color properties of parts using scripts. |
35 min |
Guided Tutorial
Coding a Trap
|
Code a trap using functions and if/then statements. |
5 min |
Wrap Up
|
Recap the lesson and concepts learned. |
Lesson Plan
Introduction
5 min
|
---|
|
Guided Tutorial - Working with Properties
20 min
|
---|
|
Guided Tutorial - Coding a Trap
35 min
|
---|
|
Wrap Up
5 min
|
---|
|
Previous String Variables Next Properties and BrickColor