Skip to main content
The Unlockables namespace provides access to the game’s unlock system. It manages secret ball collections, secret letter collections, and other unlockable content. You access it via the global Unlockables variable during gameplay.

Properties

Methods

isLocked

Checks whether a specific unlockable item is currently locked.

unlock

Unlocks a specific item. Optionally defers the unlock until the level is won.

lock

Locks a specific item.

SecretBallsUnlockables

Accessed via Unlockables.secretBalls.

Properties

Methods

SecretLettersUnlockables

Accessed via Unlockables.secretLetters. Same interface as SecretBallsUnlockables but for secret letter collections.

Properties

Methods

Usage Example

Check if a secret ball has been collected and collect it when the player finds a hidden trigger:
Check if an unlockable theme is locked: