Contents

TabletopKit

Create multiplayer spatial games on a virtual table surface and use FaceTime to invite players.

Overview

TabletopKit helps you create a spatial multiplayer game on a table surface for visionOS, where players join your game using SharePlay. TabletopKit provides support for designing your game, implementing rules, rendering effects, and syncing multiplayer game state.

[Image]

Follow these steps to implement your TabletopKit game:

  • Configure your game on the tabletop and create the game pieces or equipment that players interact with. You provide the renderer that draws your game and its pieces.

  • Implement the game rules and player interactions with the equipment. TabletopKit processes and represents player gestures as interactions. You observe the interactions and append your game-specific actions.

  • Add effects to the RealityKit entities of renderable equipment and trigger them during interactions. For example, play a sound effect when a player throws a piece or an animation when a player achieves a goal.

  • Set up multiplayer using SharePlay. Start a Group Activities session and provide it to TabletopKit. Then customize the spatial experience of your game. For example, place the players in their seats and spectators around the room.

To get started, create a TabletopGame object that represents your game instance and a TableSetup object that represents your game layout and equipment.

Topics

Essentials

Seats

Equipment

Equipment layout

Score counters

Players

Actions

Interactions

Bookmarks

Multiplayer network session

Debugging