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:
| Recipe | Template it comes from |
|---|---|
| Character movement and input | every template |
| Cameras | third-person, first-person, third-person --variant side-scrolling |
| Animation | third-person --variant combat, third-person --variant platforming, vr, intro and the mannequin feature |
| Health, damage and death | first-person --variant shooter, third-person --variant combat |
| Projectiles and weapons | first-person --variant shooter, top-down --variant twin-stick |
| Pickups | first-person --variant shooter, third-person --variant side-scrolling |
| Platforming | third-person --variant platforming, third-person --variant side-scrolling |
| Physics | third-person --variant combat, intro and the interactables feature |
| UI | first-person --variant horror, top-down --variant strategy, third-person --variant combat, vr, ar |
| AI | first-person --variant shooter, third-person --variant combat, top-down --variant strategy |
| Point and click | top-down |
| Effects and sound | top-down, intro and the interactables feature |
| Vehicles | vehicle, vehicle --variant time-trial |
| Virtual reality | vr |
| Augmented reality | ar |
| Game flow | every template; intro and the interactables feature for triggers and doors |
| Saving the game | intro and the checkpoints feature |
| An inventory | the 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.