Game systems

Player level and XP in your game

How player levels work on iDos Games - XP as a platform resource that any reward can grant, a level table or curve, and gates by level for jobs, store items and rewards.

Player level is a platform standard: XP is its own resource type that any reward can grant, and the server raises the level by your table or curve in the same write. Levels then open jobs, store items and rewards through ordinary audience gates, with no code in the game.

What the player sees

  • The level and an XP bar to the next level.
  • XP from everything you set up: quests, events, the daily calendar, lootboxes, job orders, hourly payouts.
  • New content at a level: a job, a store item or a one-time level reward opens by itself.

How it works

  • XP is the Experience resource. You add it to any reward like money or an item. It cannot be spent or sent to another player.
  • VIP and boosts multiply XP like every other reward.
  • The level comes from a table (XP for each level) or from XP per level with a curve. The server writes the level together with the XP, and only up.
  • Gates by level: the audience gate has a "Minimum player level" field. Use it on store items, rewards, jobs of the RP world and anywhere else a gate is offered.

Step 01Turn it on in the dashboard

Open the dashboard, pick your project and go to Live Operations → v2 → Player level.

  • Turn the system on.
  • Set XP per level and the last level, or fill the level table.
  • Add XP to rewards: in any reward editor pick Experience (XP).

Without this section the server refuses to grant XP, so turn it on first.

Step 02Gate content by level

In a store item, a reward or a job, open the audience gate and set Minimum player level. Players below it see the item locked.

Step 03Test and release

Check the levels in the test version of your app. Settings go to the live app as a separate action - see publishing and links.

For developers

The level is read through client.user.level in @idosgames/core.

TypeScript
const lv = client.user.level // null when the title has no levels
lv?.level // current level
lv?.xp // total XP
lv?.nextLevelXp // XP of the next level, null at the last one
client.on('user:experienceUpdated', () => redrawLevel())
  • The server writes PublicData.Level and PublicData.Experience; the SDK shows the new level at once after a grant.
  • Never grant XP from the client: put it in server rewards.

Frequently asked questions

Is XP a currency?

No. XP is its own resource type: rewards grant it, VIP and boosts multiply it, but it cannot be spent or traded.

Can a level go down?

No. The server only raises the level.

See also

Make your own game

Describe the idea in a sentence - the AI coder builds it, and it goes live at its own link.