Learn typed GDScript through small, interactive programs.
What you will learn
- Typed variables
- Functions and return values
- Gameplay calculations
Course lessons
Back to Academy-
1
Start
Create a Typed Player Profile
Keep the player name as Nova, change score to 250, and set has_key to true without removing the type annotations.
Console · 20 minutes -
2
Start
Calculate a Final Score
Return base score plus bonus, subtract two points for every damage point, and clamp the final result to a minimum of zero.
Function · 25 minutes