# Game levelComplete method

    levelComplete(
      level: number
    ): void;

The user reached a level complete event.

`levelComplete` is for games with levels. Your game should call `levelComplete`
when a level is successfully completed by the user. If levels are ordered
`level` should be the index of the completed level, starting from 1. If levels
are unordered `level` should be 0. If your game doesn't have levels or success
milestones, then you don't need to use this API.

Even if your game doesn't have discrete levels, you can still call this API if
your game has discrete ordered success milestones that are natural stopping
points. For example, the game
[99 Balls 3D](https://gamesnacks.com/embed/games/99balls) calls `levelComplete`
on every successful user fling.

## Requirements

- If your game has levels, your game **must** call this method whenever the user completes a level.
- If your game doesn't have discrete levels , your game **should** call this method on any appropriate success milestones.