Giter VIP home page Giter VIP logo

jamesvovos / ai-game-asset-creator Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 47.08 MB

Game Asset Generator using Artificial Intelligence and NLP. Transforms natural language into game assets such as game objects, worlds, quests, storylines, branching-dialogue trees and 2D textures.

Python 100.00%
artificial-intelligence character-creator chatgpt langchain langchain-python npc research-project streamlit

ai-game-asset-creator's Introduction

AI 2D Game Asset Creator.

Generate 2D Game Assets utilising artificial intelligence, natural language processing and fine-tuned text-to-image deep learning models.

DashboardImage

Installation Guide

1. Install OpenAI

Install OpenAPI:

pip install openai

Add your OpenAI API key to a .env file like so: OPENAI_API_KEY=yourapikeyhere.

2. Install LangChain

Install LangChain:

pip install langchain

3. Install Streamlit

Install Streamlit:

pip install streamlit

4. Install Dotenv

Install Dotenv:

pip install python-dotenv

5. Run the server

CD/ into the project directory and run the command:

streamlit run app.py

Sample Responses:

SampleOutputImage2

Features

  • Chain together LLM generated output via pipeline architecture in order to create 2D game assets such as quests, items, storyline, character dialogue, etc.
  • Customise and fine-tune deeplearning text-to-image models to suit sylistic preferences.
  • Export 2D generated assets created by simple prompts.

.env

Create a .env file in the root project directory. Add the following variables with their relevant API keys: OPENAI_API_KEY, LEONARDO_AI_API_KEY, LEONARDO_AI_USER_ID. Refer to Leonardo AI's API documentation https://docs.leonardo.ai/reference NOTE: WIP - Creating database & API to store data.

# API Keys
OPENAI_API_KEY=""
LEONARDO_AI_API_KEY=""
LEONARDO_AI_USER_ID=""

License

MIT

ai-game-asset-creator's People

Contributors

jamesvovos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gguney

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.