Extend 'assetGenerator.ts' to generate unique, deterministic planet visuals based on in-game attributes (temperature, position, resources, owner alliance color). The generated art should be mintable as cosmetic NFTs, with the generation seed stored in the NFT metadata.
# Generative Planet Art ## Description Extend `assetGenerator.ts` to generate unique, deterministic planet visuals based on in-game attributes (temperature, position, resources, owner alliance color). Mint as cosmetic NFTs. ## Responsibilities - Generate planet art from seed (deterministic, same seed = same image) - Incorporate planet attributes into visual (hot planets = red, ice = blue, etc.) - Mint planet art as cosmetic NFT (separate from gameplay) - Store generation seed in NFT metadata for reproducibility - Support custom themes (cyberpunk, steampunk, organic, crystal) ## Agent Tier **Haiku** (asset generation, deterministic logic) ## Technical Details ### New Code Create `/worker/src/agents/planetArtGenerator.ts`: ``` - generatePlanetArtSeed(planetId, coordinates, attributes) → seed - generatePlanetImage(planetId, theme='default') → imageBytes - determinePlanetTheme(temperature, resources) → theme: string - buildPlanetPrompt(planetId, theme, attributes) → prompt - mintPlanet