# Flame: A Powerful Flutter-Based Game Engine for Dart Developers

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/flame-engine-flame
Generated for open source discovery and AI-assisted research.

Flame is a robust, Flutter-based game engine designed to simplify 2D game development for Dart developers. It offers a comprehensive suite of tools, including a game loop, component system, and collision detection, alongside seamless integrations with popular libraries. This engine empowers creators to build engaging games efficiently within the Flutter ecosystem.

GitHub: https://github.com/flame-engine/flame
OSRepos URL: https://osrepos.com/repo/flame-engine-flame

## Summary

Flame is a robust, Flutter-based game engine designed to simplify 2D game development for Dart developers. It offers a comprehensive suite of tools, including a game loop, component system, and collision detection, alongside seamless integrations with popular libraries. This engine empowers creators to build engaging games efficiently within the Flutter ecosystem.

## Topics

- flame
- flutter
- game-engine
- dart
- game-development
- gamedev
- 2d-game

## Repository Information

Last analyzed by OSRepos: Wed Mar 25 2026 08:23:02 GMT+0000 (Western European Standard Time)
Detail views: 1
GitHub clicks: 8

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Introduction

Flame is a powerful, Flutter-based 2D game engine that provides a complete set of solutions for common problems encountered when developing games with Flutter. It aims to make game development accessible and efficient for Dart developers, leveraging Flutter's capabilities for cross-platform deployment. With a robust architecture, Flame offers essential features out-of-the-box, allowing developers to focus on game logic and creativity.

## Installation

Getting started with Flame is straightforward. You can add it to your Flutter project using the Dart package manager.

First, add `flame` to your `pubspec.yaml` file:

yaml
dependencies:
  flame: ^latest_version


Then, run `flutter pub get` in your project's root directory.

Alternatively, you can add it directly from your terminal:

bash
flutter pub add flame


Once installed, you can import Flame components into your Dart files:

dart
import 'package:flame/game.dart';
import 'package:flame/components.dart';
// ... and other specific Flame imports as needed


## Examples

To see Flame in action and understand how its various features are implemented, explore the official examples. These examples cover a wide range of functionalities and can be a great starting point for your projects.

You can find interactive examples and their source code at:
[https://examples.flame-engine.org/](https://examples.flame-engine.org/)

To access the code for each example, look for the `< >` button in the top right corner of the examples page.

## Why Use Flame?

Flame stands out as an excellent choice for 2D game development within the Flutter ecosystem for several reasons:

*   **Comprehensive Feature Set**: It includes a game loop, a flexible component/object system, collision detection, gesture and input handling, and robust support for images, animations, and sprites.
*   **Flutter Integration**: Seamlessly integrates with Flutter, allowing you to build games that run across multiple platforms with a single codebase.
*   **Extensible with Bridge Packages**: Flame offers official bridge libraries for popular packages, enabling advanced functionalities like audio playback (`flame_audio`), physics simulation (`flame_forge2d`), state management (`flame_bloc`), and support for various asset formats (e.g., `flame_tiled` for Tiled maps, `flame_lottie` for Lottie animations).
*   **Active Community and Documentation**: Benefit from extensive documentation, tutorials, and an active community on Discord and StackOverflow, providing ample support for developers.
*   **Performance**: Designed with performance in mind, ensuring smooth gameplay experiences.

## Links

Here are some essential links to learn more about Flame:

*   **Official Flame Website**: [https://flame-engine.org/](https://flame-engine.org/)
*   **Documentation**: [https://docs.flame-engine.org/](https://docs.flame-engine.org/)
*   **Examples**: [https://examples.flame-engine.org/](https://examples.flame-engine.org/)
*   **API Reference**: [https://pub.dev/documentation/flame/latest/](https://pub.dev/documentation/flame/latest/)
*   **GitHub Repository**: [https://github.com/flame-engine/flame](https://github.com/flame-engine/flame)
*   **Discord Community**: [https://discord.gg/pxrBmy4](https://discord.gg/pxrBmy4)