Skip to content

QuentinMerle/gemmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’Ž GemMaster: Immersive Core RPG

The definitive multimodal RPG engine for local LLMs.

Start Your Journey

GemMaster is an immersive RPG narrative engine designed for the Gemma 4 Challenge. It transforms the classic text-adventure into a cinematic experience, bridging the digital and physical worlds through multimodal AI vision and dynamic visual storytelling with Gemma 4.

Important

Recommended Models: Optimized for Gemma 4 E4B and larger. Warning (E2B): While functional, the 2B model may occasionally struggle with the strict XML/Tag formatting required by the advanced Immersive Core narrative engine.

๐ŸŒŸ Immersive Core Features

GemMaster isn't just a chatbot; it's an AI Director. Built with a focus on high-end aesthetics and tactical depth, it features:

  • ๐Ÿ‘๏ธ Visual Portal (Experimental): A high-tech multimodal UI for image analysis challenges. Capture your reality through the laser-scanning interface. Vision Portal
  • ๐ŸŽ™๏ธ Voice of the Director (Experimental): Using the Web Speech API to read the AI's internal intentions, creating a unique meta-narrative layer.
  • ๐ŸŒˆ Dynamic Ambilight Immersion: The entire UI atmosphere shifts colors and moods based on narrative intent.
  • ๐ŸŽฒ Tactical Narrative Mechanics: Integrated stat-based dice rolls and physical Quick Time Events (QTE). Dice & QTE
  • ๐ŸŽญ The "Omniscient Narrator": A refined MJ personality that reasons internally before weaving its tale.

๐ŸŽฎ Game Modes

  • The Lone Hero: A traditional solo RPG experience where you face the Destiny Master alone.
  • The AI Sidekick (Experimental): Gemma manages a companion character that provides narrative support and tactical synergy during your journey.

๐Ÿ—๏ธ Architecture: The Anatomy of a Turn

Wizard GemMaster treats every response as a Game Frame, following a strict hierarchical pipeline:

  1. Meta-layer (<voiceover>): Ethereal commentary read by the TTS engine.
  2. Logic-layer (<reasoning>): The AI's internal monologue about pacing and mechanics.
  3. Play-layer (NARRATION + [[OPTIONS]]): The interactive story delivered to the player.

Note: This structure is enforced through a "Silent Shepherd" system (dynamic prompt injections) ensuring high stability on small models like Gemma 4B.

๐Ÿš€ Quick Start

Prerequisites

  • Ollama installed and running.
  • The Gemma 4 model pulled: ollama pull gemma4:e4b.
  • Python 3.10+.

Installation

  1. Clone the repository:
    git clone https://github.com/QuentinMerle/gemmaster.git
    cd gemmaster
  2. Run the installation script:
    chmod +x install.sh
    ./install.sh

Launch

Start the engine:

python main.py

Open your browser at http://0.0.0.0:8000.


Created with โค๏ธ for the Gemma 4 Challenge.

While Iโ€™ve spent far more time on this than originally planned, this is still an experimental engine. There may be some bugs or narrative "glitches" along the wayโ€”I appreciate your indulgence, and most of all, I hope you enjoy the adventure!

About

๐Ÿ’Ž Immersive RPG Engine powered by Gemma 4. Featuring multimodal AI vision, dynamic Ambilight immersion, and tactical narrative mechanics (Dice, QTE).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors