Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:add queueDisplay #26

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Checks if the current user is the active player.
#### queue.getQueue(): Player[]
Returns an array of players in the queue, sorted by the ime they join the queue.

#### queue.initQueueDisplay(displayTransform: TransformType): void
Create a display on the scene that informs the player the current status of the queue.
After installing the library needs to place display glb model in `mini-game-assets/models/queueDisplay/workstation_display.glb`

### Listener for active player updates
#### listeners.onActivePlayerChange

Expand All @@ -68,6 +72,7 @@ type PlayerType = {
active: boolean;
}
```

## [Step 3: Scene Rotation + Game Area Checker + Timeout](https://github.com/decentraland/sdk-mini-games/pull/21/files)

### Scene Rotation
Expand Down
Loading