Let's Build Flappy Bird Game in Flutter & Flame - Complete Tutorial

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • 🔥 Dive into the world of game development with Flutter and Flame!
    Join us on an epic journey as we unravel the secrets behind creating the iconic Flappy Bird game from scratch.
    🕹️ In this step-by-step tutorial, discover how to harness the power of Flutter and Flame to craft your very own addictive gaming experience.
    Want to explore the source code or grab the assets used in this tutorial? You can find the assets and source code used in this tutorial in the following repository.
    Link: github.com/HeyFlutter-Public/...
    Timeline:
    0:00 Intro
    0:21 Project Setup
    1:54 Game Design
    5:28 Adding Player
    8:04 Adding Obstacles
    12:11 Game Loop
    15:36 Player Movements
    18:14 Collisions
    20:31 Overlays
    26:35 Scoring
    29:10 Sound Effects
    31:22 Outro
  • Zábava

Komentáře • 70

  • @HeyFlutter
    @HeyFlutter  Před 7 měsíci +4

    👉Source Code: github.com/HeyFlutter-Public/flappy_bird_game
    👉Join 12 Week Flutter Training: heyflutter.com
    👉Join the WhatsApp Channel to get the latest news about Flutter & HeyFlutter: whatsapp.com/channel/0029VaDNCZtC1Fu8nL2vmw3f

  • @ApratimArora
    @ApratimArora Před 7 měsíci +2

    🙏 Thank you. Keep giving creatively interactive apps and game development tutorials like this.

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      You’re most welcome, @ApratimArora! 🙂

  • @TariqKhan-be8dr
    @TariqKhan-be8dr Před 7 měsíci

    Awesome, Looking forward to more tutorials on Flame. HeyFlutter as does a great job .😊

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Glad you liked it, @TariqKhan-be8dr 😀

  • @flutterlab
    @flutterlab Před 7 měsíci +1

    Very informative, Covered every aspect that is necessary for every game. Thumbs up HeyFlutter 👍

  • @nisafv.a8710
    @nisafv.a8710 Před 7 měsíci +5

    Great tutorial. Thank you very much . Expecting more game tutorials ❤

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you for your feedback, Glad you liked it!

  • @mehdikazmi773
    @mehdikazmi773 Před 6 měsíci

    This is really a helping tutorial - thank you and please keep uploading tutorials like these

    • @HeyFlutter
      @HeyFlutter  Před 6 měsíci

      Glad you liked it, @mehdikazmi773 😀

  • @user-iy9ir8eb6u
    @user-iy9ir8eb6u Před 6 měsíci +1

    Thank you. This lecture is not considered free. And the code was really well written and the explanation was perfect. thank you. I will continue to learn well by watching many lectures. Even if paid lectures become available, I am willing to pay the full price. Thank you

    • @HeyFlutter
      @HeyFlutter  Před 6 měsíci +1

      Glad to hear that, Thank you @user-iy9ir8eb6u! 😊

  • @brokercl
    @brokercl Před 7 měsíci

    great tutorial, many thanks

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      You’re most welcome, @brokercl! 🙂

  • @developerbs
    @developerbs Před 7 měsíci

    Thank you so much for very nice tutorial.

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +1

      Thank you for watching this video, Glad you liked it

  • @pravinprince3221
    @pravinprince3221 Před 7 měsíci

    Thank you so much for the wonderful video, it is so useful for me and my team, thanks again

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Glad to hear that, Thank you @pravinprince3221! 😊

  • @himcoding4278
    @himcoding4278 Před 7 měsíci

    Excellent 👌 We need more video tutorials like this.

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Glad you liked it, @himcoding4278 😀

  • @d-apps2699
    @d-apps2699 Před 7 měsíci +1

    Amazing video! One thing that I really want to see is a platform game like making one stage of super mario bros, how to create the map, spawing enemies etc..

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +1

      Thanks for the idea, @d-apps2699! 🙂 I have added it to my list of ideas for future videos!

    • @d-apps2699
      @d-apps2699 Před 7 měsíci

      Thanks a lot!@@HeyFlutter

  • @tronzard
    @tronzard Před 7 měsíci +2

    22:30 I didnt get the image but only a white screen when reloading at this point.

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you @tronzard, make sure to follow the tutorial step by step 🙂

  • @manishmg3994
    @manishmg3994 Před 7 měsíci

    Great , Need More videos on Flame

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Glad you liked it, @manishmg3994 😀

  • @shahzebnaqvi
    @shahzebnaqvi Před 7 měsíci

    Great Explaination

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +1

      Thank you @shahzebnaqvi, Glad you liked it 🙂.

  • @miracleguy1330
    @miracleguy1330 Před měsícem

    Hye Bro Facing Error, In Current Version of Flame When I am using Texstyle inside the Text Painter. Text Painter expect a nullable Texstyle. I tried multiple methods but doesn't get though. Is Only Solution is to change the version of Flame.

    • @HeyFlutter
      @HeyFlutter  Před měsícem

      Hey @miracleguy1330 😀 you can go and check the latest flame documentation and migrate your code accordingly

  • @codingforfoodace8361
    @codingforfoodace8361 Před 7 měsíci +1

    Excellent! You never disappoint, really.

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you @codingforfoodace8361, Glad you liked it.@UCCJ-n9Aka81Ay_DXb4GhZGg

  • @VoterTV
    @VoterTV Před 7 měsíci +4

    could you please provide assets so that it will allow us to code along with your class?

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +2

      Thank you for watching this video, You can find the assets and source code used in this tutorial in the following repository.
      Link: github.com/HeyFlutter-Public/flappy_bird_game.git

  • @ashikulislamdev
    @ashikulislamdev Před 7 měsíci

    can you please clarify me when should we write full path and when should short?
    It's(path) based on flame doc i understand,
    static const birdDownFlip = 'bird_downflap.png';
    why you add full path here?
    static const gameOver = 'assets/images/gameover.png';

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank You @ashikulislamdev! Follow this link: stackoverflow.com/questions/52353764/how-do-i-get-the-assets-file-path-in-flutter
      I hope you will get your answer 🙂

    • @ashikulislamdev
      @ashikulislamdev Před 7 měsíci

      @@HeyFlutter I got the answer when I was working with assets file path. Thanks

  • @vancedvance3355
    @vancedvance3355 Před 7 měsíci

    why am i gettting error in in the pipe.dart file , when setting sprie , There isn't a setter named 'sprite' in class 'SpriteGroupComponent'.
    Try correcting the name to reference an existing setter, or declare the setter. this is the error

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +1

      Follow the tutorial, You must have done something wrong. Thank you for watching this video

  • @michaelolusegun4609
    @michaelolusegun4609 Před 6 měsíci

    I am on the latest Flutter version and the Timer Syntax is used in this video is deprecated

    • @HeyFlutter
      @HeyFlutter  Před 6 měsíci

      Thank You @michaelolusegun4609! Follow this link: api.flutter.dev/flutter/dart-async/Timer-class.html
      I hope you will get your answer 🙂

  • @cakecherry8430
    @cakecherry8430 Před 7 měsíci

    very nice

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thanks, @cakecherry8430! 🙂

  • @phongtranquoc7557
    @phongtranquoc7557 Před 7 měsíci +1

    i still dont understand the logic of the collision part can u kindly explain it to me again?

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +1

      Thank you for watching this video, You can take a look at the source code used in this tutorial in the following repository to understand the logic better.
      Link: github.com/HeyFlutter-Public/flappy_bird_game.git

  • @mandar_khandagale
    @mandar_khandagale Před 5 měsíci

    My Pipes are not loading on screen. I have checked twice everything is fine. Still cant able to load pipes

    • @HeyFlutter
      @HeyFlutter  Před 5 měsíci

      Thank you, @mandarkhandagale6754! 🙂. Please try to provide enough details with your question

    • @mandar_khandagale
      @mandar_khandagale Před 5 měsíci

      @@HeyFlutter Thanks for the reply i figure out my error

    • @TheMrszantaz
      @TheMrszantaz Před 3 měsíci

      reset vs code everytime you add new images

  • @Ramzy-gk5bb
    @Ramzy-gk5bb Před 7 měsíci +1

    Great game in flutter but how about the high score can u add it in the game

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you for watching the video, Yes, We can add the leaderboard system within our game and for that we can use local database to store our high score and them make it persistent with in the game.
      For local databases, checkout Shared Preferences: pub.dev/packages/shared_preferences, and Hive: pub.dev/packages/hive

  • @brokercl
    @brokercl Před 7 měsíci

    where assets are

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you for watching this video, You can find the assets and source code used in this tutorial in the following repository.
      Link: github.com/HeyFlutter-Public/flappy_bird_game.git

  • @ashbhardwaj4995
    @ashbhardwaj4995 Před 7 měsíci

    First comment ❤

  • @_farooq_zahid
    @_farooq_zahid Před 7 měsíci +1

    Samaj tou nahi ayi but maza aya 👀

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you for your feedback, Glad you liked it.

    • @_farooq_zahid
      @_farooq_zahid Před 7 měsíci

      @@HeyFlutter I was just kidding 😉

  • @user-jy8yh2om8z
    @user-jy8yh2om8z Před 5 měsíci

    ى تلنفه٣ح٣

    • @HeyFlutter
      @HeyFlutter  Před 5 měsíci

      Thank you, @user-jy8yh2om8z! 🙂

  • @dayernGomez
    @dayernGomez Před 6 měsíci

    Hi @HeyFlutter ,
    I love your tutorial , i am starting whith flame and i will like to make a Spanish version on my channel [ www.youtube.com/@neryad ] and give you full credit with links to your original video and repo.
    Any specific conditions or preferences you have for me to use your content?
    Thanks in advance for your response!

    • @dayernGomez
      @dayernGomez Před 6 měsíci

      i wanna know if i can make a spanihs version, is your like a yes? jeje

  • @akashvanionwards912
    @akashvanionwards912 Před 7 měsíci

    Meanwhile I created Flappy bird in desmos (graphing calculator) 💀💀💀💀💀💀💀

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci +2

      Great, Thank you @akashvanionwards912!

  • @seamensclubltd7603
    @seamensclubltd7603 Před 7 měsíci

    Thanks! Cool!
    But there was found bag)) on every 10th or 20th times of restart after game over the bird.reseted but not removed the screen and not started the game. Needs to press reset again) /
    void onRestart() {
    game.bird.reset();
    game.overlays.remove('gameOver');
    game.resumeEngine();
    }

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      Thank you, @seamensclubltd7603! 🙂. Please try to provide enough details with your question

    • @seamensclubltd7603
      @seamensclubltd7603 Před 7 měsíci

      @@HeyFlutter start your app, press restart game after bird grounds and let grounds 20 times and within these times you have found bag when the bird reset position but not start game ((