πŸ—ΊοΈ Level Schema

Defines each game level’s layout, objects, transitions, and unlock logic.

βœ… Field Rules & Accepted Values

FieldTypeRequiredNotes
idnumberβœ… YesUnique level ID
namestringβœ… YesLevel title (UI-friendly)
descriptionstring❌ NoShown in menu
size{width, height}βœ… YesIn tiles or pixels
entryPoint{x, y}❌ NoPlayer spawn location
musicstring❌ NoBackground music file or ID
backgroundstring❌ NoSkybox or parallax image
tilemapstring❌ NoOptional layout source
tokensstring[]βœ… YesPlaced token IDs (from TOKENS)
npcsstring[]βœ… YesNPCs placed (from NPC schema)
enemiesstring[]βœ… YesEnemy IDs (from ENEMIES)
eventsstring[]❌ NoCutscenes or triggers
lockedboolean❌ NoDefaults to false
unlockConditionobject❌ Noe.g. { questCompleted: 'intro_mission' }
exitsarray❌ NoLevel links: { toLevel, position, spawnPoint }