Tutorial series

Plus Out in Bevy

Build a puzzle game in Rust with the Bevy engine, from an empty folder to a game that runs in your browser.

RustBevy

Play the finished game in your browser, then build it yourself, one chapter at a time.

Rust and the rules

  1. 1Set upInstall Rust, make the project, and give the rules crate its first constants and tests.
  2. 2The boardGive the rules crate a Board type that holds 25 cells, knows which cells a tap changes, and proves it in tests.
  3. 3The puzzles Coming soonMake puzzles from a seed, with a small random number generator, a solver that finds the fewest taps that clear a board, and a tap allowance for each puzzle.
  4. 4A playing session Coming soonPlay one puzzle by the rules, with taps left, undo, hints, a win or a loss, and the stars a clear earns.

Bevy draws the game

  1. 5A window Coming soonAdd Bevy to the project and open the game's window.
  2. 6Draw the board Coming soonDraw the 25 tiles from the rules crate, with Bevy's UI nodes, a font and the game's colours.
  3. 7Tap a tile Coming soonTurn a mouse click into a tap, and outline the cells a tap will change.
  4. 8Show the state Coming soonShow the taps left, a tap meter and a status line that change after every tap.
  5. 9Buttons and screens Coming soonAdd undo, hint and restart with buttons and keys, then a banner for a win and a screen with every board.

Polish

  1. 10Animation Coming soonAnimate taps, new boards, the hint and the banner.
  2. 11Sound Coming soonPlay a sound for every tap, new board and new tier, made by the game itself.
  3. 12The backdrop shader Coming soonWrite a shader that draws a slowly drifting field of light behind the board.

Save and share

  1. 13Stars and saving Coming soonShow the stars each clear earns, and save the game so it's waiting the next time you play.
  2. 14In the browser Coming soonBuild the game for the web and put it on a page anyone can open.

The chapters to come may still change as they're written. Lost a word? The glossary explains every term the series has used so far.