Where to Go From Here?
You can download the completed project files by clicking the Download Materials button at the top or bottom of the tutorial.
This concludes Part 1 of this tutorial. Here, you've learned how to:
- Create a Flame
GameWidget
with a Forge2DGame
child in a Flutter app.
- Create and add
BodyComponent
s describing rigid bodies in Forge2D's simulated 2D world.
- Use the Flame game loop to initialize a game.
- Define the physical properties of rigid bodies in Forge2D.
Remember that if you want to learn more about the Flame Engine and Forge2d you can always check out their documentation here and here respectively. Also, as mentioned before, you can read our Building Games with Flutter tutorial here for more game building fun.
In Parts 2 and 3 of the Create A Breakout Game With Flame and Forge2D tutorial, you'll learn how to create the remaining components for your Breakout game, add gameplay logic and create a visual skin for your game.
We hope you enjoyed this tutorial, and if you have any questions or comments, please join the forum discussion below!