File size: 1,719 Bytes
3e18d67
 
3d99571
3e18d67
3d99571
3e18d67
 
 
 
 
 
 
 
22e40bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: AI RPG Adventure
emoji: ⚔️
colorFrom: gray
colorTo: blue
sdk: gradio
sdk_version: 5.3.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: An interactive RPG experience
---

# 🎲 AI RPG Adventure

An interactive text-based RPG powered by Pixeltable and OpenAI that creates dynamic, responsive storytelling experiences. Players can embark on adventures across different genres with AI-generated narratives that adapt to their choices.

## 🚀 Features
- Dynamic storytelling with AI-generated narratives
- Multiple genre support (Fantasy, Sci-Fi, Horror, etc.)
- Player choice tracking and game state management
- Adventure history logging
- Real-time story generation

## 🛠️ Requirements
- Python 3.8+
- Pixeltable
- OpenAI API key
- Gradio

## 🎮 Quick Start
1. Install dependencies: `pip install pixeltable gradio openai`
2. Set your OpenAI API key
3. Run the application: `python app.py`
4. Input your character's name, choose a genre, and start your adventure!

## 🎯 Example Adventures
1. **Magical Academy**
```
Name: Novice Thalia
Genre: 🧙‍♂️ Fantasy
Scenario: It's your first day at the Celestial Academy of Arcane Arts. During the sorting ceremony, your magical aura suddenly starts behaving strangely, catching the attention of the ancient sorting crystal...
```

2. **Space Pirate**
```
Name: Captain Zara
Genre: 🚀 Sci-Fi
Scenario: Your smuggling ship is docked at a secret trading post in the Andromeda Nebula. As you're finalizing a deal for mysterious cargo, your ship's AI reports that Imperial cruisers are entering the system...
```

## 📝 Credits
Built with [Pixeltable](https://github.com/pixeltable/pixeltable) | Licensed under Apache 2.0