Saving Data

Saving Data

This docs page is under construction. Expect more information coming to this page soon!
If you have questions, please ask them in our Discord server and we'll answer them promptly! 😊

Key/value storage for your game makes it easy to persist data about players and the game world.

Suppose you want to implement an XP system for an RPG.

TypeScript
function onPlayerKilledMob() {
  await kv.world.set(KV_KEY, newGlobalPlays.toString())
}