Skip to Content

Spark (Vanilla JS)

Light up matching bulbs to win — match 5 of a kind for the 50x jackpot!

Script Tag

<script src="https://unpkg.com/@maktubbet/sdk/vanilla.global.js"></script>

Usage

<div id="spark-game"></div> <script> const game = MaktubSDK.spark('#spark-game', { accessToken: 'user-jwt-token', user: { balance: 1000, betCount: 0, isAuthenticated: true }, updateBalance: (balance) => console.log('Balance:', balance), onAuthRequired: () => console.log('Auth required'), currency: { code: 'USD', prefix: '$', rate: 1 }, language: 'en', }) </script>

Demo Mode

Demo mode is automatically enabled when a user places a bet with a $0 amount. Players can try any game without risking real funds — no special configuration is needed.

Update Props

game.update({ user: { balance: 5000, betCount: 10, isAuthenticated: true }, })

Destroy

game.destroy()

Features

  • Light bulb matching — 5 bulbs revealed one by one, matching colors win
  • 7 combinations — from Zero Match (0x) to Five of a Kind (50x)
  • Lit/unlit bulbs — matching bulbs light up yellow with glow effects
  • Paytable — interactive paytable showing all combinations
  • Autobet — automated consecutive bets
  • Theme-aware — all UI elements adapt to the dark background theme
Last updated on