I work since a few days on this project, and now it's time to make it public so everyone can upgrade it as he wish. The goal is to make the best project possible.
Actually I did all my test with gpt3.5-turbo and the results are really good, I do expect almost perfect result with gpt4 but I haven't access yet to the API
https://github.com/Clad3815/adventure-game-ai
Here is the main functions:
- Customization of game settings, including language, environment, and difficulty
- Auto translate menu language to the game language if wanted
- Dynamic player class generation based on character description
- Automatic player attribute generation based on player details and game settings
- Continuous gameplay with generated narrative and choices
- Automatic inventory management (The story will always know your inventory and accept action with it)
- Automatic location generation (The story will always keep trace of your current location in the world and the reason why you are there)
- Automatic quest management (The story will be adapted to the current quest with rewards, step, etc ...)
- Automatic player stats management
- Auto save game
- Some others function I guess, i didn't take time to list all the work I done on it
The script to use is the "game-multi-prompt.js" as the "game.js" it's the old version with only one large prompt (which can be useful for understand some stuff)
That's just a few days of work, I have many idea to optimise it but I spent too much time on this project already so I accept all contribution to the repo.
I will post an example GIF in the answer, but you can see them on the Github rep.
This project work with this function for NodeJS: https://github.com/Clad3815/ai-function-helper
