Launch
Run 10 system checks before launching a rocket — if all pass, receive a random altitude multiplier up to 30x!
Import
import { LaunchGameSDK } from '@maktubbet/sdk/launch'
import '@maktubbet/sdk/launch/styles.css'You can also import from the root package:
import { LaunchGameSDK } from '@maktubbet/sdk'Usage
'use client'
import { useState } from 'react'
import { LaunchGameSDK } from '@maktubbet/sdk/launch'
import '@maktubbet/sdk/launch/styles.css'
export default function LaunchPage() {
return (
<LaunchGameSDK
accessToken="user-jwt-token"
user={{ betCount: 0, isAuthenticated: true }}
updateBalance={(newBalance) => console.log(newBalance)}
onAuthRequired={() => console.log('Auth required')}
currency={{ code: 'USD', prefix: '$', rate: 1 }}
language="en"
logo={<span>MY LOGO</span>}
onToast={(t) => console.log('Toast:', t.title)}
theme={{
backgroundDark: '#0D1117',
backgroundDarkLight: '#161B22',
inputBackground: '#0D1117',
actionButtonColor: '#1C2333',
buttonColor: '#FFFFFF',
}}
/>
)
}Demo Mode
Demo mode is automatically enabled when a user places a bet with a $0 amount. To run the game entirely client-side without a backend session, pass isDemo — see Demo Mode.
Features
- 10 system checks — PROPULSION, NAVIGATION, TELEMETRY, FUEL, OXYGEN, HYDRAULICS, ELECTRIC, COMMUNICATION, ARMORING, IGNITION
- Sequential reveal — each system check is revealed one-by-one with green (pass) or red (fail) indicators
- Rocket launch animation — rocket lifts off when all systems pass, dims and shakes on failure
- Altitude multiplier — successful launch awards a random multiplier up to 30x
- Partial payouts — even failed launches can award small multipliers (0.2x–0.5x) based on systems passed
- Multiplier history bar — green pills for wins, dark for losses
- Autobet — automated consecutive bets
- Advanced strategies — conditional betting with custom rules
- Theme-aware — all UI elements adapt to the dark background theme
Props
See Shared Props — LaunchGameSDK accepts the standard LaunchGameSDKProps interface.
| Prop | Type | Required | Default |
|---|---|---|---|
accessToken | string | null | ✅ | — |
user | GameUser | ✅ | — |
updateBalance | (balance: number) => void | ✅ | — |
onAuthRequired | () => void | ✅ | — |
currency | GameCurrency | — | { code: 'USD', prefix: '$', rate: 1 } |
language | string | — | 'en' |
logo | ReactNode | — | — |
onToast | (toast: ToastData) => void | — | — |
theme | GameTheme | — | — |
Last updated on