get_game_templates
Retrieve available game templates to start React Three Fiber projects, including platformer, puzzle, endless runner, physics-based, and arcade types.
Instructions
Get available game templates
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:156-166 (handler)The MCP server handler method in `src/index.js` that calls the service to retrieve the templates.
async getGameTemplates() { const templates = this.gameTemplateService.getAvailableTemplates(); return { content: [ { type: 'text', text: JSON.stringify(templates, null, 2), }, ], }; } - The implementation method `getAvailableTemplates` in `GameTemplateService` which returns the list of hardcoded game templates.
getAvailableTemplates() { return { platformer: { name: 'Platformer Game', description: 'Side-scrolling platform game with physics', features: ['Jump mechanics', 'Platform collision', 'Collectibles', 'Enemies'], difficulty: 'intermediate', }, puzzle: { name: 'Puzzle Game', description: 'Grid-based puzzle game with matching mechanics', features: ['Grid system', 'Match detection', 'Score system', 'Combos'], difficulty: 'beginner', }, 'endless-runner': { name: 'Endless Runner', description: 'Infinite running game with obstacles', features: ['Auto-run', 'Obstacle generation', 'Score tracking', 'Power-ups'], difficulty: 'beginner', }, 'physics-based': { name: 'Physics Puzzle', description: 'Physics-based puzzle or sandbox game', features: ['Realistic physics', 'Object interaction', 'Puzzle elements'], difficulty: 'advanced', }, arcade: { name: 'Arcade Game', description: 'Classic arcade-style game', features: ['Fast-paced action', 'Score attack', 'Power-ups', 'Combos'], difficulty: 'intermediate', }, }; }