Crazy Gems | HTML5 Game – Online Multiplayer Card Game for 2 to 6 Players
Crazy Gems is a fast colour-and-number card game for 2 to 6 players, made with pure HTML5 Canvas and JavaScript. Match the gem or the number of the card on the pile, hit the others with Skip, Reverse and +2 cards, change the gem with a wild card, press Last Card in time and be the first with an empty hand. Play online with friends and players from anywhere, against three levels of computer players, on one device with Pass and Play, or through a solo Gem Tour of 30 tables. Online play needs no game server of your own: private rooms with a code or an invite link, quick match, a lobby, a turn clock, reconnect, and the game goes on even when the host leaves. Coins, 20 titles, a shop and daily tasks keep players coming back.
It runs in any modern browser on mobile and desktop (landscape), from a web server or straight from disk. No framework, no build step.
Gameplay
- A deck of its own: four gems (ruby, sapphire, emerald, topaz) that differ in colour and in shape, so colour-blind players can tell them apart
- Number cards, Skip, Reverse, +2, Wild and Wild +4, plus two special cards: the Gem Bomb (throw away every card of that gem) and the Swap (swap hands with a rival)
- 3 rule sets: Classic, Stack (answer a +2 with a +2) and Frenzy (Gem Bombs, Swaps, draw until a card fits)
- One round, or points matches to 150, 300 or 500
- Last Card call: forget to press it and draw two cards
- Play vs Computer with 1 to 5 computer players at 3 levels (Easy, Normal, Expert)
- Pass and Play for 2 to 6 people on one device, with a “pass the device” screen that hides the hands
- Gem Tour: 30 solo tables in 3 halls, 3 stars per table
- Animations for every move: dealing, flying and flipping cards, action signs, colour change, win rays
- How to Play with the real cards, shown before a new player’s first game
Progress and shop
- Coins, experience and 20 titles from Pebble to Crown Jewel, statistics
- Shop with 29 items: 8 card backs, 6 table cloths, 12 gem avatars and 3 emote packs, with prices and title locks (looks only)
- 3 daily tasks and a daily gift
- Online, each player’s own avatar and card back are shown to the other players
- Progress is saved on the device: no account needed
Online multiplayer
- Private rooms for up to 6 players with a short code and an invite link
- Quick match that starts by itself, with a countdown that gives late players time to join
- Lobby with six seats, ready flags, computer players to fill a room, and the host’s choice of rule set and match length
- The room host runs the rules; the shuffle uses provably fair random numbers, so the host cannot choose the deal
- A turn clock: the computer plays for a player who runs out of time or loses the connection
- 22 painted emotes
- Reconnect after a page reload or a lost connection, back into the same seat
- The host can leave: another player takes the room over and the game goes on
- Peer-to-peer connections encrypted by the browser, encrypted signaling
- One setting switches online play off completely
Online Play Uses Third-Party Services
Important: online play needs no game server of your own, but to let players find each other it uses free public services run by third parties: the PeerJS cloud server, public MQTT brokers (EMQX, HiveMQ) and public STUN servers (Google, Cloudflare). These are external services: they are not part of this item, are not run or controlled by its author, have their own terms, policies and limits, and can change or stop at any time. No account for them is included or needed. You can use your own servers instead (they may have their own costs), or switch online play off.
- Works out of the box with the free public PeerJS, MQTT and STUN services (external third-party services with their own terms and limits)
- Your own PeerJS server, MQTT broker and TURN server can be set in the config file (external accounts or hosting may be required; each has its own costs)
- Online play can be switched off with one setting; the game then makes no outside connection
Third-party services disclaimer: Crazy Gems does not include any server, hosting or network service. Services such as the PeerJS cloud server, the public MQTT brokers broker.emqx.io and broker.hivemq.com and the Google and Cloudflare STUN servers are provided by third parties: each one has its own terms and policies, may have usage limits, and may change, slow down or stop at any time; your own or paid alternatives may require their own external accounts and involve their own costs. You are responsible for the services you use with this item, for complying with their terms and with the laws that apply to you (for example privacy rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies and is not responsible for their services.
Ads and Analytics Ready (Third-Party Services)
Important: the ad and analytics integrations are optional hooks only. Ad and portal platforms such as Google AdSense, Google AdMob, Google Ad Manager, CrazyGames, Poki, GameDistribution and GameMonetize, and analytics services such as Google Analytics and Firebase, are external services: each one requires its own external account (usually with an approval process), has its own terms and policies, and has its own specific costs or revenue-sharing model. None of these accounts, services or SDKs are included with this item.
- Ads are switched off by default; the game is complete without them
- 3 ad places ready to connect: an interstitial between offline matches, a rewarded “Double coins” button on the result window, and a rewarded “Free coins” row on the Daily screen
- Two functions in the config file connect the ad places to the platform of your choice, for example Google AdSense, Google AdMob, CrazyGames, Poki, GameDistribution or GameMonetize (external accounts required; each platform has its own costs or revenue-sharing model)
- Analytics hooks for match start and match end
Third-party services disclaimer: Crazy Gems does not include any ad network or analytics account, SDK or service. Services such as Google AdSense, Google AdMob, Google Ad Manager, CrazyGames, Poki, GameDistribution, GameMonetize, Google Analytics and Firebase are provided by third parties: each one may require its own external account and approval, has its own terms and policies, and may involve fees, revenue sharing or other costs. You are responsible for creating and managing these accounts, for complying with their terms and with the laws that apply to you (for example privacy and cookie-consent rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies and is not responsible for their services.
Languages
- 6 languages included: English, Spanish, French, German, Portuguese and Turkish
- The language is taken from the device and can be changed in Settings
- Every text is in one readable file; adding a language is copying a block and translating it
Made for buyers
- Plain, readable JavaScript with comments: no framework, no build tools, nothing minified in the main files
- One config file for the deck, hand size, rule sets, card points, computer levels, rewards, titles, shop prices, daily tasks, online and ad settings
- Gem Tour tables in a small readable data file, one table per line
- All art as PNG files (195 pictures): cards in layers, card backs, table cloths, gems, interface, a layered animated logo – easy to reskin
- 19 sound effects and 2 music tracks (MP3), all made for this game
- Works from a web server, inside an iframe, or straight from disk
- Full HTML documentation
What you get
- The complete game (HTML5, JavaScript, PNG, MP3, fonts)
- Documentation with font licences
Credits
Fonts: Lilita One and Baloo 2 (SIL Open Font Licence). All art, sound and music were made for this game and are included.