nl.* methods of the JS SDK, and the host provides identity, game energy, sharing, audio, and haptics. Rules for multiplayer matches run on the server in the game service.
Mini games and in-post apps are separate systems. In-post app code runs in a server-side sandbox and is embedded in posts. A mini game is a full-screen front-end package with its own signature, scopes, and game energy wallet. Mini games are rolling out gradually; check site announcements for availability.
Hosts
The same package runs in both hosts. The SDK detects the host automatically, and methods the host does not support return
NOT_SUPPORTED.
Components
Where to start
- Single-player, front-end-only games: start from the Tap Tap template in the Quickstart. You only need the SDK.
- Real-time multiplayer matches: the client connects to the game service, and the rules are written as a ruleset. The reference implementation is Dou Dizhu.
- Games that use game energy: read Game energy and payments. A game can only make requests, and the user confirms each one in a host panel.
