Completed

Infinite Chronicle

An AI text-based game where your choices genuinely shape the story

System Architecture Visual

Project Overview

Infinite Chronicle is an AI-driven text adventure where every decision you make genuinely alters the upcoming plot — not just branches to pre-set endings. An LLM generates the next chapter dynamically based on your choices, while a real-time image generator produces visuals in a consistent art style so characters and scenes look coherent throughout the entire journey.

Methodology & Architecture

1. Dynamic Story Engine

An LLM generates the next scene and set of choices in real time, conditioned on the full player history to ensure narrative coherence rather than branching to fixed paths.

2. Choice-Driven Plot Mutation

Each player decision is fed back as context, causing characters, motivations, and world events to genuinely evolve rather than following pre-authored arcs.

3. Consistent Visual Generation

A style-locked image generation pipeline produces scene illustrations using fixed character descriptions and style tokens, ensuring protagonists look the same from chapter one to the finale.

4. Session State Management

The full narrative history, character states, and world facts are persisted per session, giving the LLM the context it needs to maintain a believable, non-repetitive storyline.

Technologies Used

React
LLM
Image Generation
Cloud Run

Key Learnings

  • Designing LLM prompts that produce genuinely divergent narratives rather than pre-set story branches.
  • Maintaining visual character consistency across multiple real-time image generation calls using style anchoring.
  • Managing long conversational context windows for coherent multi-chapter storytelling.
  • Building an interactive, stateful game loop in React backed by generative AI APIs.