# Tutorial - Build Babylon Bros

> A complete, step-by-step tutorial that builds the Babylon Bros platformer entirely in the Flow Graph Editor, from scene setup to a published demo.

Source: https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial

## What You Will Build

This tutorial builds [Babylon Bros](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosExample), a small physics-driven platformer, entirely in the [Flow Graph Editor](https://flowgraph.babylonjs.com). You start from a finished scene that does nothing on its own and add every interaction as a flow graph: running, jumping, coin pickups, spring bounces, enemies, and a win condition.

The point of the tutorial is the editor workflow. Each step uses real editor features: the node palette, the scene preview, the property panel, validation, execution contexts, debug mode, and the snippet server.

![The finished Babylon Bros flow graph open in the Flow Graph Editor](https://doc.babylonjs.com/img/tools/flowGraphEditor/tutorial/editorOverview.webp)

## How The Series Works

Each step ends with a saved flow graph snippet that includes everything from the previous steps. You can open any step directly in the editor and continue from there:

| Step | Snippet |
| ---- | ------- |
| Move the hero | `#1CUUOO` |
| Add jumping | `#LI45XB` |
| Collect coins | `#W0H5RG` |
| Spring bounces | `#YCDRLC` |
| Enemies | `#CMWMAN` |
| Win condition (final) | `#HUA46E` |

The scene is loaded from Playground snippet `#P41T6E#2` throughout, so every step shares the same preview scene.

## Steps

- [Step 0 - Prepare The Assets](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/prepareAssets)
- [Step 1 - Set Up The Editor](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/setup)
- [Step 2 - Move The Hero](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/movement)
- [Step 3 - Add Jumping](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/jump)
- [Step 4 - Collect Coins](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/coins)
- [Step 5 - Spring Bounces](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/springs)
- [Step 6 - Enemies](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/enemies)
- [Step 7 - Win Condition](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/win)
- [Step 8 - Save And Publish](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/publish)

## Before You Start

Read [Getting Started](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/gettingStarted) and build [Your First Runnable Graph](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/firstGraphExample) first. You will be more comfortable with the palette, the preview, and the run controls before tackling a full game.

## Further reading

- [Example - Babylon Bros Platformer](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosExample)
- [Getting Started With The Flow Graph Editor](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/gettingStarted)

## Pages in this section

- [Step 0 - Prepare The Assets](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/prepareAssets.md): Prepare the still Babylon Bros scene with meshes, materials, ready-but-not-playing animation groups, sounds, and physics before adding any flow graph logic.
- [Step 1 - Set Up The Editor](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/setup.md): Load the Babylon Bros scene into the Flow Graph Editor, confirm physics, and create an empty graph ready for logic.
- [Step 2 - Move The Hero](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/movement.md): Drive the Babylon Bros hero left and right with keyboard events, a velocity variable, and a per-frame physics update in the Flow Graph Editor.
- [Step 3 - Add Jumping](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/jump.md): Add a grounded jump to Babylon Bros using a key event, a ground check branch, an upward impulse, and a sound in the Flow Graph Editor.
- [Step 4 - Collect Coins](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/coins.md): Add coin collection to Babylon Bros using physics collision events, a score variable, custom events, and sound in the Flow Graph Editor.
- [Step 5 - Spring Bounces](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/springs.md): Add spring pads to Babylon Bros that launch the hero upward on collision when descending, with a compress animation and sound.
- [Step 6 - Enemies](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/enemies.md): Add enemy interactions to Babylon Bros - stomp from above to defeat, touch from the side to get hurt - using collision events and custom events.
- [Step 7 - Win Condition](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/win.md): Finish Babylon Bros by reaching the flag - raise it, play victory music, and lock the game as done using a custom event in the Flow Graph Editor.
- [Step 8 - Save And Publish](https://doc.babylonjs.com/toolsAndResources/flowGraphEditor/babylonBrosTutorial/publish.md): Save the finished Babylon Bros flow graph to a snippet and load it from a Playground scene to ship the full demo.
