Learn Flame & Forge2D
What is Flame?
From Flame official website: Flame is a modular Flutter game engine that provides a complete set of out-of-the-way solutions for games. It provides a simple yet effective game loop implementation and the necessary functionalities you might need in a game.
With Flutter & Flame, we can create multiplatform games that will run on Windows, Linux, Mac OS, Android, iOS, and Web. We write the code once and can run it on any platform without any modification to the code.
What is Forge2d?
Forge2D is a Dart port of the Box2D physics engine.
What is Box2D?
Box2D is a free, open-source 2-dimensional physics simulator engine written in C++ by Erin Catto.
It has been used in games like Crayon Physics Deluxe, Limbo, Rolando, Fantastic Contraption, Incredibots, Angry Birds, Tiny Wings, Transformice, Happy Wheels and many more.
Requirements
For these tutorials and articles, we assume that you have basic knowledge of Flutter, or at least you should know how to download the source code from GitHub, open it in your favorite IDE, navigate the source code, initialize your packages with pub get and run your app in a simulator.
We will use Android Studio, but you can use your favorite IDE.
Flame Tutorials
- Getting started: Setting up the project
- The world, bodies, shapes, and fixtures
- Body types: dynamic, static & kinematic
- Friction, density & restitution
- Forces, impulses & linear velocity
- Bodies and sprites
- Collisions
- Collisions with animated sprites
Available soon
- Animated sprites: walk, jump, duck