🎮 Welcome to the 7th of our series on building a 2D game using Flutter and the Flame game engine!
The game is called Flappy Dash, just like the FlappyBird, but we just changed the Bird with the Dash!
In this video, we will implement our state management using bloc library
🚀 In this episode:
We will add flutter_bloc and flame_bloc to be able to use the bloc library in our widget tree (flutter) and component tree (flame). So this way, we can have access to the state in both flutter widgets and flame components.
Then, we will move the score logic into the cubit (bloc) that we create, also we will implement the game over logic
🔔 Don't forget to subscribe to the channel and turn on the notifications to support me and keep me motivated. You can also share it with your friends if you find it helpful and interesting.
🔗 Links:
Source Code: https://github.com/imaNNeo/flappy_das...
Flame: flame-engine.org
Bloc Library: https://bloclibrary.dev
flame_bloc: https://pub.dev/packages/flame_bloc
flutter_bloc: https://pub.dev/packages/flutter_bloc
Chapters
00:00 Intro
01:00 Bloc Library introduction
02:57 Bloc Library Setup
27:43 Game Over Overlay
37:52 Recap
43:16 Outro