The famous Bevy Minesweeper Tutorial adopted to Bevy 12.1 (04.11.2023). The tutorial (series of articles) is good introduction to Bevy, but old Bevy 0.6 version. If you try learn Bevy 12.x using tutorial, you face a challenge of incompatible changes API.
For me, the main difficulty in adopting tutorial was the simultaneous study of ECS, Bevy and API changes. Due to it I have little difference between original tutorial and my solution not only in API. I didn't implement adaptive size of tiles and full support of bevy-inspector-egui implemented later (Chapter 6 and 7) than in the tutorial.
Also I suppose that some techniques from the tutorial is outdated (for ex., layout of tiles). This repository close to original tutorial.
And I'm not sure, that my code run without debug feature 🤗
Very different from the tutorial, because Bevy made many changes to the concept of systems.
My code implements scenarios:
- Generates new board if player press
G
key. - Pause game if player press
P
key. (Game board is hidden and click is ignored).
All the same, the code shows how to:
- Decouples application states and plugin states.
- Runs systems (process events) only in certain states.
- Switches from one state to another state.