Description
DiceGem Games adds free browser games to your site. Pick a game such as chess, solitaire, sudoku or backgammon and it plays right inside your page, on desktop and mobile. Or turn on game pages and get a whole games section: one page per game, a games archive and category pages, kept up to date with new games every day.
- One game: the DiceGem game block, or the shortcode
[dicegem game="klondike"]. - A games grid: the DiceGem game grid block, or
[dicegem_grid category="board-games" count="6"]. A click on a card plays the game above the grid. - Game pages: one page per game with the game, its description and related games, plus a games archive (
/games/) and category pages (/games/category/board-games/). Pages are regular posts of the Games type: edit them like any post, and your changes are kept when the catalog updates. New games are added once a day. - Free, no sign-up: no account and no API key.
- Responsive: games keep their shape on every screen; portrait games get a taller 4:5 frame.
- Fast pages: each game waits behind its cover with a Play button and loads when the visitor presses it. A Full screen button sits under the game.
- Light: the plugin’s scripts load only on pages that show a game or a grid.
The DiceGem Games menu has three tabs. Start gives you the shortcodes and builds the games section with one button. Games lists every game with its cover: preview it, copy its shortcode, or switch its page on or off. Settings holds the options below; all of them are optional.
- Publisher ID: if DiceGem gave you one, it is added to the game address so plays from your site can be counted.
- Credit link: off by default. When you turn it on, a small “Play more free games on DiceGem” line is shown under games and grids.
- Casino-style games: off by default. These games use virtual credits only; no real money can be won or lost. When on, a “Virtual credits only, no real money. 18+” note is shown under them.
- Default aspect ratio for landscape games (16:10 unless you change it).
- Play button first: on by default. Turn off to load every game as soon as the page opens.
- Game pages: off by default. “Create the games section” on the Start tab turns them on and imports the pages with a progress bar. The games section address (
/games/by default) can be changed. On the Games tab, switch single games or whole categories off; “Delete game pages” removes the pages and their covers (optionally keeping pages you edited). The Start tab shows published and draft pages, downloaded covers, the last and the next sync, and restores game pages from the trash. - Covers: on by default, each game page gets its cover as a featured image downloaded once into the media library. Turn off to keep the media library small; pages then show the cover from dicegem.com.
Shortcode options
[dicegem game="klondike" ratio="4:3"]
game: the game’s slug, as in its address on dicegem.com (dicegem.com/games/chess/).width: optional maximum width, in px or %.-
ratio: optional aspect ratio: 16:10, 16:9, 4:3, 3:2, 1:1, 4:5 or 9:16. Default: 16:10 (or the setting), portrait games 4:5 at most 640px wide.[dicegem_grid category=”card-games” count=”12″]
-
category: Board Games, Card Games, Puzzle Games, Word Games, Arcade Games or Casino Games (name or slug such ascard-games). Leave out for all. count: how many games, 1 to 100 (default 12).exclude: a game slug to leave out, used on game pages for the related-games grid.
When game pages are on, grid cards link to the game pages on your site instead of dicegem.com.
External services
This plugin connects to DiceGem, a free HTML5 games service run by the plugin authors.
- Game catalog: nothing is sent to DiceGem when the plugin is activated. After an administrator clicks “Download the game catalog” on the plugin’s admin page, your server downloads the public list of games from https://dicegem.com/api/games.json, at most twice a day and when an administrator clicks “Refresh catalog now”. The request carries what any request made by WordPress carries: your server’s IP address and the WordPress user agent, which contains your site’s address and WordPress version. No data about your visitors is sent.
- Game covers: when game pages and cover downloads are on, each game’s cover image is downloaded once from dicegem.com into your media library, during the import. With cover downloads off, game pages show the cover straight from dicegem.com.
-
The games: each embedded game is loaded by your visitor’s browser in an iframe from https://play.dicegem.com/, and game covers in grids and behind the Play button are loaded from dicegem.com. This happens only on pages where you place a game or grid. As with any website, DiceGem receives the visitor’s IP address and browser details. The games send anonymous play events (game loaded, started, ended) together with your publisher ID (if set) and the address of the page embedding the game. No account, name or email address is collected.
-
In wp-admin: the Games tab of the plugin and the block previews in the editor show game covers from dicegem.com, and the preview on the Games tab loads the game you click from https://play.dicegem.com/. This happens only on those screens.
DiceGem terms of service: https://dicegem.com/terms-of-service/
DiceGem privacy policy: https://dicegem.com/privacy-policy/
The plugin itself sends no telemetry and loads no code from outside your site: its PHP, CSS and JavaScript ship in the plugin folder. The only things that come from DiceGem are the catalog, the cover images and the games. The games run inside an iframe on play.dicegem.com, like an embedded video. A suggested paragraph for your privacy policy is added under Settings > Privacy.
Screenshots







Blocks
This plugin provides 2 blocks.
- DiceGem game Embed a free HTML5 game from DiceGem.
- DiceGem game grid A grid of free DiceGem games; a click plays the game above the grid.
Installation
- Install the plugin from Plugins > Add New, or upload the
dicegem-gamesfolder to/wp-content/plugins/. - Activate it and click “Download the game catalog” on the DiceGem Games screen.
- Add the DiceGem game or DiceGem game grid block to a page, or use a shortcode.
- Optional: open DiceGem Games in the admin menu. To add a games section, click “Create the games section” on the Start tab.
FAQ
-
Is it really free?
-
Yes. There is no account, no key and no fee.
-
Do I have to show a link to DiceGem?
-
No. The credit link is off by default and the games work the same without it. When you turn it on, the only link text is “DiceGem”.
-
Why are casino-style games off by default?
-
They are not suitable for every site. They use virtual credits only; nothing can be won or lost, and they show no real-money offers. If you turn them on, a “Virtual credits only, no real money. 18+” note is shown under each of them.
-
Where do I find a game’s slug?
-
It is the last part of the game’s address on dicegem.com. For https://dicegem.com/games/chess/ the slug is
chess. The block lets you search games by name instead. -
A game does not show up. Why?
-
Games appear once an administrator has clicked “Download the game catalog” under DiceGem Games. Visitors see nothing for an unknown slug, while logged-in editors see a short notice. Casino-style games are shown only after you turn them on in the settings. If the game is new, click “Refresh catalog now” under DiceGem Games > Settings.
-
Can I edit the game pages?
-
Yes. They are regular posts of the Games type. Edit the text, the cover or the blocks; the daily sync then only refreshes the data behind the page (the game address and cover) and leaves your text alone. Set a page to draft or move it to the trash to hide it. Pages in the trash stay there until you restore them; the Start tab has a button for that.
-
How do I remove the game pages?
-
DiceGem Games > Settings > “Delete game pages” deletes the pages and the covers the plugin downloaded. Tick “Keep pages I edited” to keep the ones you changed. Deleting the plugin does the same clean-up.
-
Can I import only some games?
-
Yes. On the Games tab, switch off the games or the whole categories you do not want. Their pages are set to draft, and come back when you switch them on again.
-
A game left DiceGem. What happens to its page?
-
The page is set to draft on the next sync and published again if the game returns. Casino-style pages are drafted the same way when you turn casino-style games off.
-
Do the games involve real money?
-
No. Casino-style games use virtual credits only and pay out nothing. They are hidden unless you turn them on.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“DiceGem Games” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “DiceGem Games” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.3.1
- The game catalog is downloaded only after an administrator clicks “Download the game catalog”; activating the plugin contacts no external server.
1.3.0
- New DiceGem Games menu with three tabs: Start (shortcodes to copy, one button to create the games section), Games (covers, search, categories, preview, a page switch per game and per category) and Settings.
- Games start behind their cover with a Play button, so pages load faster (can be turned off); new Full screen button.
- The blocks show a real preview in the editor.
- Game pages in the trash can be restored from the Start tab.
- The plugin opens its Start tab once after activation.
1.2.0
- Game pages: delete button (optionally keeping edited pages), categories to import, exclude list, covers on/off, status table.
1.1.0
- Game pages: a Games post type with one page per game, a games archive and category pages, imported with a progress bar and synced daily. Pages you edit keep your changes.
- Grid cards link to the game pages on your site when they exist; new
excludeoption.
1.0.0
- First release: game and grid shortcodes and blocks, settings, catalog cache with offline fallback.
