Prerequisites
Before you begin, make sure your local machine has the following installed:-
Go:
World Engine games are written in Go. This guide requires a minimum Go version of
v1.27.1. To check that Go is installed on your computer, rungo version. - Docker: The World Engine development server runs several local services inside containers. Follow the official instructions to install Docker.
Installing World CLI
The World CLI is the command-line tool for creating, managing, and deploying World Engine projects. It ships as a Go tool inside the World Engine module, so each project’s CLI is the same version as its World Engine. Install theworld command:
$(go env GOPATH)/bin is on your PATH. Inside a project, world runs the version the project pins.
Creating a Project
Now you are ready to create a new World Engine project. Thesetup command will launch an interactive tool to help you configure your project:
TODO: Add an updated image of the selection UI
go.mod declares the CLI as a tool, so world inside it runs the project’s version. Start the local development server:
Stopping the Server
Press Ctrl+C to stop the server, or runworld stop from another terminal.
To reset the world state, run world purge. This removes all game data and restores the world to a clean state, which is useful when you want to start fresh during development.