Documentation
Quick Start Guide
⚠️

Clone commit 4f80277 if working with < 2.0.0 because of breaking changes with the new example game

Running the example phaser simulation

Learn how to get started with a pre-made simulation and view the code (opens in a new tab)

Simulation Information

The map consists of 8 main areas, traversable by the WASD keys

  • School
  • Basketball Court
  • Park
  • Appartments
  • Supermarket
  • Construction Site
  • Ice Cream Shop
  • Parking Lot

By default, there are 2 agents and a main character. The states of objects are able to be changed through the dashboard.

Download and run the server

By default, the server will start on port 8080. To change this use the --port option.

Download v1.2.0 (opens in a new tab)

java -jar smallville.jar --api-key <YOUR_OPEN_AI_KEY> --port 8080

Clone the GitHub repository

git clone https://github.com/nickm980/smallville/

Then cd into the examples/javascript-phaser directory and run the following command

npm run start

The game will start on http://localhost:8081/ (opens in a new tab).