BLINKCADEAI GAME DEVELOPMENT
Sign In
Home Library Guide

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.

Tested with: Godot 4.7.2 · Estimated time: 20 minutes

Result

A running Godot scene displays Nova's player profile.

Your task

Keep player_name as Nova, change score to 250, and set has_key to true. Preserve all explicit type annotations.

Why it matters

Types make the expected shape of game data visible to Godot, the editor, and other developers.

Independent challenge

Add a typed level value set to 3, include it in the returned Dictionary, and display it in main.gd.

Learning objectives

  • Declare values with explicit GDScript types.
  • Return related values in a Dictionary.
  • Use String, int, and bool correctly.

Interactive Godot Lab

The lab works immediately in browser practice mode. When the isolated runner is connected, the same workspace also performs engine-authoritative Godot checks.

Native Godot project files

Download the starter project  ·  Download the completed reference project