Skip to content

ogoudey/CastleGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CastleGame

This is the environment for a class project.

Requirements

  • Linux, python

Installation

  1. Clone the repo.
  2. Clone the agent architecture
  3. Link the agent to Unity with:
mkdir /path/to/CastleGame_Data/Scripts
ln /path/to/VLA_Star/experiments/unity_robot_run.sh /path/to/CastleGame_Data/Scripts/ # (make sure it's executable)
  1. Assign the VLA_STAR_PATH environment variable to /path/to/VLA_Star. Currently, the only place I've found to put it is in .bashrc before the non-interactive shell blocker.
  2. Put OPENAI_API_KEY in a similar place in .bashrc (security risk) or in /path/to/VLA_Star/private/api_keys/openai_api_key.

Gameplay

The goal is to get to the ATM machine at the center of the castle.

Controls

  • WASD to move, mouse to look around, Space to jump, and E to interact.

The map

  1. There are two gates which are each opened when someone (or something) steps on a corresponding pressure plate.
  2. Behind each gate (and to the right), there is a lever that someone (or something) can switch to keep the gate opened or closed.

The agent

The agent can be activated with E. Then, you can chat with it. It knows about the things in the world, but has no goal other than to help you.

The agent can be configured by editting the architecture code:

unity_robot_run.sh > unity_robot_phase.py > shop.instantiate_unity_robot() > ...

About

Built with Unity. Unity scripts at https://github.com/ogoudey/pseudo-spatial-symbolizers, agent architecture at https://github.com/ogoudey/VLA_Star

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors