Game SDK for Little Party Time platform - type definitions and testing utilities
npm install @littlepartytime/sdkGame SDK for the Little Party Time platform — type definitions and testing utilities for game developers.
``bash`
npm install @littlepartytime/sdk
- Type definitions — GameConfig, GameEngine, GameState, GameAction, GameResult, GameRendererProps, etc.GameTester
- Testing utilities — , GameSimulator, createMockPlayers (import from @littlepartytime/sdk/testing)
`typescript
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) { / ... / },
};
`
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:
`bash`
cat node_modules/@littlepartytime/sdk/GAME_DEV_GUIDE.md
| Package | Description |
|---------|-------------|
| @littlepartytime/dev-kit | CLI dev server, build & pack toolchain |
| create-littlepartytime-game | Project scaffolding (npx create-littlepartytime-game`) |
MIT