Game demo powered by ChatGPT agents
Top 96.2% on sourcepulse
This project provides a game demo powered by ChatGPT agents, allowing users to interact with Non-Player Characters (NPCs) using natural language. It targets developers and game enthusiasts interested in integrating large language models into interactive experiences, offering a framework for dynamic NPC conversations and customizable game narratives.
How It Works
The demo utilizes a client-server architecture. The frontend, built with React, handles user interaction and displays the game environment. The backend, powered by Node.js and TypeScript, interfaces with the OpenAI API to generate NPC responses based on user input and predefined character personalities and dialogue prompts. This approach enables dynamic, context-aware conversations that can adapt to player actions.
Quick Start & Requirements
yarn install
yarn start
.apikeys.ts
within the src
directory.http://localhost:3000
.Highlighted Details
src/backend/data/npcs/NpcData.ts
and src/backend/services/ConversationService.ts
.src/backend/data/locationData.ts
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is presented as a game demo, and its suitability for production environments or complex game logic is not detailed. The reliance on a single OpenAI API key stored in a local file could pose security risks if not managed carefully.
1 year ago
Inactive