Oyun offers three main ways to generate game content:
- Web Interface (Recommended for beginners)
- Command Line (For developers and automation)
- Individual Agent Testing (For debugging and development)
Start the ADK web server:
adk web runAccess the interface at: http://localhost:8080
If you prefer the Flask interface:
cd web_app
python app.pyAccess at: http://localhost:5001
- Open
http://localhost:8080(ADK Web) orhttp://localhost:5001(Flask) - Enter your game world prompt (e.g., "Create a medieval village with a blacksmith and tavern")
- Adjust character and quest counts using the sliders
- Click "Generate Game World"
- Wait for generation to complete
- Download the generated Unity/Godot packages
python -c "
from orchestrator.agent import generate_complete_game_content
import asyncio
async def main():
result = await generate_complete_game_content('Create a medieval village with a blacksmith and tavern')
print('Game content generated successfully!')
asyncio.run(main())
"python quick_test.pyfrom orchestrator.agent import generate_complete_game_content
import asyncio
async def create_fantasy_world():
result = await generate_complete_game_content(
prompt="Create a magical forest village with elves and ancient ruins",
character_count=8,
quest_count=10
)
print(f"Generated world: {result['world_name']}")
print(f"Characters created: {len(result['characters'])}")
print(f"Quests generated: {len(result['quests'])}")
# Run the function
asyncio.run(create_fantasy_world())Test specific agents directly for debugging or development:
# Test world designer
python orchestrator/world_designer/agent.py
# Test asset generator
python orchestrator/asset_generator/agent.py
# Test character creator
python orchestrator/character_creator/agent.py
# Test quest writer
python orchestrator/quest_writer/agent.py
# Test balance validator
python orchestrator/balance_validator/agent.py
# Test godot exporter
python orchestrator/godot_exporter/agent.pyYou can customize generation parameters:
from orchestrator.agent import generate_complete_game_content
result = await generate_complete_game_content(
prompt="Create a cyberpunk city district",
character_count=12,
quest_count=15,
world_size="large",
theme="cyberpunk",
difficulty="hard"
)Generate multiple worlds:
prompts = [
"Medieval castle town",
"Futuristic space station",
"Underwater research facility"
]
for prompt in prompts:
result = await generate_complete_game_content(prompt)
print(f"Generated: {result['world_name']}")Generated content is saved to:
- Main Output:
generated_content/complete_game_content/ - Godot Projects:
godot_exports/ - Unity Packages:
generated_content/{world_name}/unity_package/
- Be Specific: "Medieval village with blacksmith, tavern, and town square" works better than "village"
- Include Atmosphere: "Dark, mysterious forest with ancient ruins" creates better ambiance
- Specify Relationships: "Village where the blacksmith and tavern owner are rivals"
- Consider Scale: Small villages (3-5 characters) generate faster than large cities (10+ characters)