Skip to content

A short project where I made a game that uses generative AI drive the core gameplay.

License

Notifications You must be signed in to change notification settings

Skyvastern/the-aspiring-deva

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Aspiring Deva

This game is a small project I made as a fun experiment to have generative AI drive the core gameplay.

You can check out the video devlog here, and the written devlog here.

Setup

  • The backend folder contains the Python FastAPI server.
  • The frontend folder contains the Godot project.

Backend Setup

  1. Open terminal, and head over to backend folder.
  2. Create and activate python environment.
  3. Install python packages using pip install -r requirements.txt
  4. Duplicate .env.example and name the new one to .env.
  5. In .env, fill in the value of OPENAI_API_KEY with your OpenAI's account API key.
  6. Start the server using python main.py 🚀

Frontend Setup

  1. Open the frontend folder in Godot.
  2. Duplicate res://main/common/env/env_example.gd and name the new one env.gd
  3. Change class name to class_name ENV in env.gd
  4. Set BASE_URL to wherever you've deployed the server. If you have run it locally on your system, then set the value to http://127.0.0.1:8000
  5. That's it, now run the game and have fun! 😀

Attributions

About

A short project where I made a game that uses generative AI drive the core gameplay.

Resources

License

Stars

Watchers

Forks

Packages

No packages published