@littlepartytime/sdk
v2.2.3
Published
Game SDK for Little Party Time platform - type definitions and testing utilities
Maintainers
Readme
@littlepartytime/sdk
Game SDK for the Little Party Time platform — type definitions and testing utilities for game developers.
Install
npm install @littlepartytime/sdkWhat's Included
- Type definitions —
GameConfig,GameEngine,GameState,GameAction,GameResult,GameRendererProps, etc. - Testing utilities —
GameTester,GameSimulator,createMockPlayers(import from@littlepartytime/sdk/testing)
Quick Example
import type { GameEngine, GameState, Player } from "@littlepartytime/sdk";
const engine: GameEngine = {
init(players: Player[]): GameState { /* ... */ },
handleAction(state, playerId, action) { /* ... */ },
isGameOver(state) { /* ... */ },
getResult(state) { /* ... */ },
getPlayerView(state, playerId) { /* ... */ },
};Documentation
Full development guide with step-by-step instructions, testing patterns, build configuration, and asset requirements:
After installing the SDK, the guide is also available locally:
cat node_modules/@littlepartytime/sdk/GAME_DEV_GUIDE.mdRelated Packages
| Package | Description |
|---------|-------------|
| @littlepartytime/dev-kit | CLI dev server, build & pack toolchain |
| create-littlepartytime-game | Project scaffolding (npx create-littlepartytime-game) |
License
MIT
