Skip to content

Each chapter is one branch in order to get rust analyser working

Notifications You must be signed in to change notification settings

AmbientRun/Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Ambient Getting Started Tutorial

Ambient is a game engine written in Rust, focusing on modding and multiplayer features.

In this tutorial, we will write a simple shooting game from scratch, and in the process, we will show you the basic features of the engine, providing resources such as documentation, reference, examples, games, etc. Hopefully this will give you a good idea of how to use Ambient to make your own game.

Prerequisites

Rust 1.67 or later is required to build Ambient. You can install Rust by following the instructions on rustup.rs.

Rust programming experience is not required to follow this tutorial, but it is recommended. If you are new to Rust, you can learn the basics of the language on rust-lang.org.

After installing rust, you should be able to use command line tool including rustup and cargo.

You need to run rustup target add --toolchain stable wasm32-wasi in your Terminal. This will install the WebAssembly target for the WASI platform, which is required to build Ambient.

Then you can use the cargo install command to install Ambient:

cargo install --git https://github.com/AmbientRun/Ambient.git --rev ad24915e58 --locked --force ambient

Done!

If you prefer other methods for installation, see here.

It's also recommended to setup your IDE for a better Ambient dev experience (see here).

Tutorial structure

This tutorial is divided into several chapters. Each of them comes with a full Ambient project code with explainations. You can find them in each branch of this repository, or you can click the links below to see:

About

Each chapter is one branch in order to get rust analyser working

Resources

Stars

Watchers

Forks