Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Gameplay recipes

Complete use cases, each one taken from a Rusteal template, where it runs as part of a playable game. To see one working, create the template it comes from and play it:

RecipeTemplate it comes from
Character movement and inputevery template
Camerasthird-person, first-person, third-person --variant side-scrolling
Animationthird-person --variant combat, third-person --variant platforming, vr, intro and the mannequin feature
Health, damage and deathfirst-person --variant shooter, third-person --variant combat
Projectiles and weaponsfirst-person --variant shooter, top-down --variant twin-stick
Pickupsfirst-person --variant shooter, third-person --variant side-scrolling
Platformingthird-person --variant platforming, third-person --variant side-scrolling
Physicsthird-person --variant combat, intro and the interactables feature
UIfirst-person --variant horror, top-down --variant strategy, third-person --variant combat, vr, ar
AIfirst-person --variant shooter, third-person --variant combat, top-down --variant strategy
Point and clicktop-down
Effects and soundtop-down, intro and the interactables feature
Vehiclesvehicle, vehicle --variant time-trial
Virtual realityvr
Augmented realityar
Game flowevery template; intro and the interactables feature for triggers and doors
Saving the gameintro and the checkpoints feature
An inventorythe inventory plugin template
rusteal new CombatLab --template third-person --variant combat

The code in these recipes is trimmed to what the use case needs. The template’s source, in Rust/<crate>/src/, has the rest.