Interactive Demo: https://aiforge.beamable.com
Beamable Discord: https://discord.gg/naCFAEWqbJ
Video Demo: https://beamable-demos.s3.us-west-2.amazonaws.com/gamejam2023-aiforger.mp4
This project, which is built with Beamable, primarily demonstrates Federated Inventory inconjunction with Generative AI (OpenAI and Scenario.com) to dynamically produce Content.
A custom C# Microservice, developed and deployed to Beamable's backend from within Unity,
is used to provide custom APIs to the AI Forge game client, so that it may request new sword content be created.
Assets/Game
- Game client code
Assets/Beamable/Microservices
- Microservice and managed storage code
Assets/Beamable/Autogenerated
- Auto-generated microservice client code
Assets/Beamable/Microservices/AIMicroservice/Configuration.cs
- This file must be updated with your own OpenAI and Scenario.com API keys
in order for this project to work. See a preview of the file below:
namespace Beamable.Microservices
{
internal class Configuration
{
// todo put that into realm config and read it from there
public const string OpenAiApiKey = "OpenAI key needed"; // OpenAI.com API key
public const string ScenarioApiKey = "Scenario key needed"; // Scenario.com API key
}
}
Beamable SDK Version: https://beamable.github.io/changes/#1.12.0
Unity version: https://unity.com/releases/editor/whats-new/2021.3.18
- Accounts / Authentication: https://docs.beamable.com/docs/identity
- Commerce / Inventory: https://docs.beamable.com/docs/game-economy
- Content: https://docs.beamable.com/docs/content-feature-overview
- Microservices with managed MongoDB storage : https://docs.beamable.com/docs/microservices-feature-overview
- Theme Manager : https://docs.beamable.com/docs/theme-manager-overview
- OpenAI to generate player items (swords), in a JSON formatted response: https://openai.com/
- Scenario.com to generate art (sword images) to complement the item generated by OpenAI: https://www.scenario.com/