How to Embed Games in Altspace & Banter Worlds
Games are simple to embed into both AltspaceVR (the new Altspace on altvr.app) and BanterVR worlds. Just insert a <script> tag into your space's HTML. Configuration can be done via HTML Script Attributes (recommended) or legacy URL Query Parameters (for backwards compatibility).
In Altspace you can also add each game as a snippet: when editing your world on altvr.app, open Snippets and choose All, or in Unity add a BS > Snippet component and type the snippet name shown on each game below. Details opens each game's own page with setup steps and how to play.
1. Board Games
Used by: Checkers, Chess, Reversi, Connect 4, Go, Gomoku, Mancala, Tic-Tac-Toe. Options can be written as script attributes (e.g. position="...") or appended as URL query parameters in the src URL.
Parameters (URL Query)
| Parameter | Default | Description |
|---|---|---|
instance |
(Page URL) | Unique room state (e.g. ?instance=lobby-chess). |
boardPosition |
0 1.1 0 |
3D position coordinates (x y z). |
boardRotation |
0 0 0 |
Euler rotation angles (x y z). |
boardScale |
1 1 1 |
Scale size of board objects. |
hideUI |
false |
Set true to hide reset/undo buttons. |
Note: Separate coordinates with spaces (encoded as %20 or + in URLs).
2. Attribute-Configured Games
Used by: Blackjack, UNO, Rummy10, Holograms Against Humanity (HAH). Options are written directly as attributes on the script tag itself.
Parameters (Script Attributes)
| Attribute | Default | Description |
|---|---|---|
instance |
(Game specific) | Unique room state (e.g. instance="lobby-uno"). |
position |
0 0 2 |
3D coordinates where table is spawned (x y z). |
rotation |
0 0 0 |
Euler rotation of table (x y z). |
debug |
false |
Set to "true" to enable developer logging. |
Note: Coordinates are standard space-separated attributes.
Available Game Scripts
Checkers
Classic checkers with forced jumps, turn validation, and automatic king promotion.
Altspace snippet: checkers
<script src="https://checkers.firer.at/Checkers.js" position="0 1.1 -2" scale="1.5" rotation="0 45 0"></script>
Chess
3D serverless chess featuring real-time move validation and custom lighting options.
Altspace snippet: chess
<script src="https://chess.firer.at/Chess.js" position="0 1.1 -2" scale="0.8"></script>
Reversi
Othello-style disk flipping strategy game with a reactive interface.
Altspace snippet: reversi
<script src="https://reversi.firer.at/Reversi.js" position="0 1.1 -2"></script>
Connect 4
Vertical four-in-a-row checker-dropping game. Includes support for custom board models.
Altspace snippet: connect4
<script src="https://connect4.firer.at/Connect4.js" position="0 1.5 5"></script>
Go (Weiqi)
Full-featured board game of Go. Implements liberty tracking, ko rule validation, and suicide prevention.
Altspace snippet: gow
<script src="https://go.firer.at/Go.js" position="0 1.5 2" board-size="13"></script>
Gomoku
Five-in-a-row alignment game played on a Go grid board.
Altspace snippet: gomoku
<script src="https://gomoku.firer.at/Gomoku.js" position="0 1.5 -3" scale="0.8" board-size="19"></script>
Mancala
Traditional stone sow-and-capture game (Work in Progress).
Altspace snippet: mancala
<script src="https://mancala.firer.at/Mancala.js" position="0 1.1 -2" lighting="lit"></script>
Tic-Tac-Toe
Simple 3x3 grid game, perfect for quick decisions and simple layouts.
Altspace snippet: tic-tac-toe
<script src="https://tic-tac-toe.firer.at/TicTacToe.js" position="0 1.2 2" scale="1.5"></script>
Blackjack
Multiplayer Blackjack. Supports 1-7 players, turn handling, host migration, Split, and Double Down options.
Altspace snippet: blackjack
<script src="https://blackjack.firer.at/blackjack.js" position="0 0 2" rotation="0 180 0" instance="lobby-bj"></script>
UNO
Classic multiplayer UNO cards, fully synchronized. Supports 2-10 players, turn management, and special card actions.
Altspace snippet: uno
<script src="https://uno.firer.at/uno.js" position="0 0 2" rotation="0 180 0" instance="lobby-uno"></script>
Rummy10
Multiplayer Rummy10 card game. Supports 2-10 players with automatic hand dealing and real-time state sync.
Altspace snippet: rummy10
<script src="https://rummy10.firer.at/rummy10.js" position="0 0 2" rotation="0 180 0" instance="lobby-rummy10"></script>
Holograms Against Humanity (HAH)
Serverless Cards Against Humanity clone for social VR. Runs client-side using space state properties. Supports up to 10 players and over 70 expansions.
Altspace snippet: hah
<script src="https://hah.firer.at/hah.js" position="0 -0.4 -5" instance="my-private-game"></script>