Games.fun Documentation
Welcome to the Games.fun documentation! This guide will help you integrate token-based mechanics into your game.
Quick Links
Getting Started - 2-minute setup
Core Concepts - Platform overview
Authentication - JWT verification
Game Wallet - Secure token handling
Game Server - WebSocket setup
React Integration - React components
Development Guide - Testing & deployment
Security- Must-read security guidelines
What is Games.fun?
Games.fun is a platform that lets you:
Accept token transfers from players
Convert tokens to game points or items
Manage real-time game state
Handle secure authentication
Integration Flow
Setup
Install SDKs
Create game wallet
Set up game server
Authentication
Get platform public key
Issue JWT tokens
Verify tokens
Token Handling
Accept transfers
Convert to points
Update game state
Process withdrawals
Real-time Updates
WebSocket connection
State management
Event handling
Example Integrations
We provide several example implementations to help you get started:
Basic Integration - Vanilla JavaScript
Token transfers
Point conversion
Basic state management
Full Game - React Implementation
Complete shop system
Inventory management
Real-time updates
TypeScript support
Game Server - Node.js/Express
WebSocket setup
State validation
Token verification
Secure endpoints
Visit github.com/pixel-vault/games-fun to explore these implementations.
Last updated