Skip to content

Show mini-games

Turn on Games as a page. The heading a player reads is Mini games. One div can also open a single game, or only one kind.

Games on Pages is the mini-games list: wheels, scratch cards, boxes, coin flips, safes, and the other kinds below. Quiz, Tile Match, and surprise rewards have their own pages. The card on Widgets is a separate switch, and on Widgets that card has no Enabled switch.

The card on Snippets is Games. The heading a player reads is Mini games. The small line above it is Your games. The line under the heading is “Games available to you, with your plays and rewards.”

Before you start ​

On Tools, Snippets, Pages, open Games. Turn Enabled on, press Save, and place <div data-orbit-page="games"></div>. See Place a page snippet on your site.

Copy snippet copies only that div. Two attributes are optional, and you add them yourself:

  • data-orbit-page-game is one game’s activity id. The page opens that game. If it is not in this player’s list, the page reads “This game is not available to you.”
  • data-orbit-page-kind keeps one kind. The value is the left column below. Any other value is ignored, and the heading stays Mini games.

If you set both, the game has to be of that kind or the page reads “This game is not available to you.”

Kinds ​

With a kind attribute, the heading and the line under it change.

AttributeHeadingLine under the heading
wheelWheel of fortuneYour wheels, plays left and prizes.
scratchScratch cardYour scratch cards, plays left and prizes.
giftboxPick a boxYour boxes, plays left and prizes.
coinflipCoin flipYour coin games, plays left and prizes.
safeSafeYour safes, plays left and prizes.
cardpackCard packYour card packs, plays left and prizes.
chestChestYour chests, plays left and prizes.
crystalCrystalYour crystals, plays left and prizes.
orbOrbYour orbs, plays left and prizes.

A safe is included on this page even with no kind attribute. A quiz or a tile match is not.

The list ​

Two counts sit above the tabs: Available games, and Games in progress.

The tabs are All, Ready to play, In progress, and Played, each with a count. Ready to play is a game that has not been started, still has plays, and is playable. Played is a game this player has already finished once. In progress is one they have started.

The page shows 20 rows, then “Showing {count} of {total}.” and Show more. Show more reveals the next 20 from the list already loaded. It does not read Loading….

An empty list reads “No games to play right now.” An empty tab, when the list itself has games, reads “No games in this tab.”

Each row shows the name, the kind (Wheel of fortune, Safe, and the rest of the headings above), and a pill:

SituationPill
StartedIn progress
The game itself is not playableThe sentence for that state, below
Plays left is zeroNo plays left
OtherwiseReady to play

The state sentences are “No plays left.”, “Not enough points.”, “This game is paused.”, “Out of stock.”, “This game has not started yet.”, “This game has ended.”, and “Outside playing hours.” The zero-plays pill has no full stop. The state sentence “No plays left.” has one.

Under the name, the row reads Price and Plays left. Price is “{n} points”, Play credit, or Free. Plays left is the number, or “Limited by your points” when the game is not counted in plays. Prize is shown when the game has one. Ends {at} uses the player’s date and time.

The button is View game, or Continue game when a play is already started.

One game ​

The back button reads All games. It is omitted when the div names a single game.

The game opens on the page. How it works is a disclosure. On the open game, the first paragraph is the rules text saved on that game, when it has one. Otherwise it is the kind’s own sentence:

KindHow it works
Wheel of fortuneStart a play and spin to reveal your result.
Scratch cardStart a play and scratch the card to reveal your result.
Pick a boxStart a play, then choose a box to reveal your result.
Coin flipStart a play and flip the coin to reveal your result.
SafeStart a play and open the safe to reveal your result.
Card packStart a play and open the pack to reveal your card and result.
ChestStart a play and open the chest to reveal your result.
CrystalStart a play and reveal the crystal to see your result.
OrbStart a play and reveal the orb to see your result.

On the list, with a kind chosen, that first paragraph is the kind’s sentence from the table. With no kind chosen, it is “Open a game to see its rules, then play.” Rules text on a game is used only after the player opens it. On the list and on the open game, two lines follow that first paragraph: “Check the price and plays left before you start.” and “After a play, check your result and any reward's status.”

Signed out, or off ​

Signed out, the page reads “Sign in to see your games and plays left.”

Enabled off reads “This widget is not enabled.” The same sentence is used when games are switched off. A failed read reads “Could not load this section. Please try again.” and Try again.

Orbit Help Center