Examples¶
Here are the complete examples of using the Scorbit SDK in C, C++, and Python. The examples demonstrate:
- Set up the game state and request top scores
- Set game state and commit the updated game state
- Set an active player
- Set the current ball
- Setting and clearing modes
- Get a deeplink for pairing (useful for displaying a QR code during pairing process)
- Request a pairing short code (6 chars) (useful for alphanumeric displays during pairing process)
- Get a deeplink for claiming a player slot (use to assist player claiming at the start of a ball)
- Issue a user unpairing request and handle the unpairing callback
- Retrieve and display player information
- Fetch achievement definitions and player progress from the server
- Detect when a player earns a mode-based or score-based achievement during gameplay
- Track incremental achievement progress (e.g., counting ramp shots)
- Receive real-time notifications when achievements are unlocked, locked, or updated