Quickstart

This page lists the steps on how to setup Rush.

Prerequisite: Install the Rust and Solana toolchain

Install Rush CLI with Cargo

cargo install rush-ecs-cli

Check for successful installation by running

rush

If successfully installed it should print out the following

Rapid and Declarative development framework for Fully Onchain Games (FOCG) and Autono
mous Worlds (AW) by SonicSVM.

Usage: rush [COMMAND]

Commands:
  new     Create a new Rush project.
  deploy  Deploy current Rush project
  view    Create a new Rush project.
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

Build Your Game

Rush is currently at prerelease and only supports the Bevy Game Engine.

Clone the rush-quickstart repository to study a barebones scaffolding of a simple Player movement game.

Create a new Rush Workspace

Using the Rush CLI, create a new Rush workspace to generate the Rush Manifest and initial Rush Gaming Blueprint.

Use the following command

For example

A successful Rush workspace creation will display the following

It will also create a new folder with the following folder structure

Where Rush.toml is your Rush Manifest and world.toml is your Rush Gaming Blueprint.

Configure Rush Manifest

After creating your Rush workspace, modify the Rush.toml and replace the fillers with actual values.

See References for recommended values.

Configure Gaming Blueprint

Next, configure your Gaming Blueprint to define the data you are able to interact with in your Onchain World using the Rush SDKs.

For example the Gaming Blueprint above defines a 1 Entity player, 1 Region base, 1 Instance player under the Region base.

Deploy Your Onchain World

Now that you're done configuring your Rush Manifest and Rush Gaming Blueprint, it's time to deploy your Onchain World (migration) with the Rush CLI.

A successful deployment would yield a similarly looking output below.

Interact with your Onchain World

To interact with your Onchain World, you need to add the rush_ecs_core package and rush_ecs_sdk package with the command below.

Import them into your Bevy game.

Instantiate the SDK and use it to interact with your Onchain World.

See Reference to see more available SDK functions.

Last updated