Flutter Tutorial

Flutter Intermediate Chapter 18 of 20

Flutter Game Projects

Five complete Flutter games built with Flame, each one file you can run in the browser: Snake, Flappy Bird, Space Shooter, Brick Breaker, Endless Runner.

Each project is a complete, playable game in a single file. Press Run to play it in your browser, then read the explanation and change the code: make it faster, add lives, change the colours. These projects use only what the Flame chapter teaches.

Lessons in this chapter

  1. Snake Game in Flutter with Flame (Full Source Code)Build the classic Snake game in Flutter with Flame: a grid, keyboard and swipe controls, food, growing and game over. Full code that runs in your browser.
  2. Flappy Bird Game in Flutter with Flame (Full Source Code)Make a Flappy Bird style game in Flutter with Flame: gravity, tap to flap, moving pipes, collisions, score and restart. Full code that runs in your browser.
  3. Space Shooter Game in Flutter with Flame (Full Source Code)Build a space shooter in Flutter with Flame: drag or keys to move, auto fire, enemy waves, explosions, lives and score. Full runnable source code.
  4. Brick Breaker Game in Flutter with Flame (Full Source Code)Make a Brick Breaker (Breakout) game in Flutter with Flame: ball physics, paddle by drag or keys, bricks, lives, score and levels. Full runnable code.
  5. Endless Runner Game in Flutter with Flame (Dino Style, Full Code)Build a Chrome dino style endless runner in Flutter with Flame: jumping, random obstacles, rising speed and best score. Full runnable source code.