Game Generation Guide for AI
This guide helps Haiku (Claude AI) select appropriate assets when generating games.
Decision Tree
Step 1: Identify Game Style
Based on user's prompt, classify into one of 11 styles:
| Keywords |
Game Style |
| shoot, space, action, fast, arcade |
action-arcade |
| puzzle, match, brain, logic |
puzzle |
| story, adventure, narrative, choice |
story-adventure |
| race, car, speed, run |
racing |
| pet, animal, care, farm |
pet-simulator |
| quiz, trivia, question, knowledge |
trivia-quiz |
| music, rhythm, dance, beat |
music-rhythm |
| draw, create, art, design |
creative-drawing |
| rpg, battle, quest, dungeon |
rpg-battle |
| sports, ball, soccer, basketball |
sports |
| physics, pinball, bounce, gravity |
physics-pinball |
Step 2: Detect Theme
| Theme Keywords |
Background Theme |
| space, alien, star, galaxy |
space |
| forest, nature, tree, outdoor |
nature |
| city, street, building, urban |
urban |
| magic, wizard, dragon, castle |
fantasy |
| ghost, haunted, scary, dark |
spooky |
| ocean, fish, underwater, sea |
underwater |
| retro, pixel, arcade, classic |
retro |
| sports, stadium, field, court |
sports |
| sky, flying, clouds, air |
sky |
| rainbow, colorful, bright, party |
colorful |
| robot, machine, factory, tech |
mechanical |
| home, room, kitchen, office |
indoor |
| rain, snow, storm, weather |
weather |
| spring, summer, autumn, winter |
seasonal |
| abstract, minimal, pattern |
abstract |
Step 3: Detect Mood
| Mood Keywords |
Music Mood |
| epic, battle, intense, boss |
Epic |
| calm, relax, peaceful, zen |
Chill |
| fast, action, rush, chase |
Intense |
| fun, happy, cute, silly |
Playful |
| mystery, scary, dark, creepy |
Mysterious |
| hero, adventure, brave |
Heroic |
| weird, unique, strange |
Quirky |
| background, ambient, subtle |
Ambient |
Step 4: Determine Avatar Mode
| Game Mechanic |
Avatar Mode |
Context |
| Cockpit/driving view |
HEAD_ONLY |
spaceship-cockpit, tank, mech-suit |
| Driving with body visible |
HEAD_AND_SHOULDERS |
race-car, airplane, submarine |
| Upper body action |
UPPER_BODY |
hoverboard, jetpack |
| Full character movement |
FULL_BODY |
platformer-standard, costumes |
Step 5: Select Context
| Game Type |
Recommended Context |
| Space shooter |
spaceship-cockpit |
| Racing game |
race-car, motorcycle |
| Flappy clone |
flappy-style |
| Tank game |
tank |
| Maze game (pacman) |
pacman-style |
| Hoverboard/skateboard |
hoverboard |
| Jetpack game |
jetpack |
| Mech combat |
mech-suit |
| Underwater |
submarine |
| Dragon game |
dragon-rider |
| Platformer |
platformer-standard |
| RPG/Adventure |
knight-armor, wizard-robes, ninja-outfit |
| Sports |
athlete-uniform, sports-player |
| Cooking |
chef-outfit |
| Science |
scientist-labcoat |
Best Practices
1. Use Presets for Variety
2. Match Mood and Theme
3. Match Context to Gameplay
4. Validate Combinations
Example Selections
"space shooter with aliens"
"relaxing puzzle game with nature"
"medieval RPG with dragon battles"
"scary haunted house escape"
Tracking Variety
To ensure games don't all look the same:
- Rotate through presets (don't always pick index 0)
- Use different background variants within same theme
- Mix costumes even for similar game types
- Vary music energy levels
Template Selection
- Use
gameTemplateAssets.html when avatar matters
- Use
gameTemplateSimple.html for abstract/puzzle games without avatars