How To Make a Game With Flutter & Flame | Gift Grab Game | 2D Flutter Game Using Flame Engine

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 82

  • @wotaqueen
    @wotaqueen ปีที่แล้ว +7

    Thank you so much this video is so clear and amazing ❤

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      Thank you for watching 🙏🏾

  • @musicTvChannel2024
    @musicTvChannel2024 ปีที่แล้ว +4

    great tutorial. imagine, spending 1 hour to develop a simple 2D game.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      Thank you

  • @DavideVernole
    @DavideVernole 11 หลายเดือนก่อน

    Excellent explanation, clear and complete. Thanks to your video I will be able to help my daughter with her schoolwork.

    • @TreyHope
      @TreyHope  11 หลายเดือนก่อน

      That’s what I love to hear 👍🏾

  • @adnanhabib4449
    @adnanhabib4449 ปีที่แล้ว +2

    Great video much needed concepts if you are looking forward to becoming an advanced front end developer. Nice to see you back after quite a while.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      Thank you my friend, I’ve been posting biweekly now to prevent myself from burning out.

    • @adnanhabib4449
      @adnanhabib4449 ปีที่แล้ว

      @@TreyHope that’s good.

  • @rahulagarwal968
    @rahulagarwal968 ปีที่แล้ว +1

    Thank you so much for such amazing tutorial. Its my humble request to make more game videos using Flutter and Flame. There are only two or three channels which make game tutorials.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +2

      Thank you for watching, I plan to make plenty more.

  • @jona3684
    @jona3684 ปีที่แล้ว

    Watched this again now to better grok it. You're a terrific presenter.

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you sir, that just made my day 👍🏾

  • @watevakid
    @watevakid ปีที่แล้ว

    watched a few of your vids, good stuff man. subscribed!

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thanx bro!

  • @宋晓明-z5v
    @宋晓明-z5v ปีที่แล้ว

    Thank you for your detailed explanation and hope you can post more videos about the Flutter development game!👍👍👍

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you for watching, I have another flutter game Development video coming very soon.

  • @ImPiPi
    @ImPiPi 8 หลายเดือนก่อน

    what a good channel! i hope your channel grows to thrive

    • @TreyHope
      @TreyHope  8 หลายเดือนก่อน +1

      Thanks, that means alot 👍🏾

  • @Strusprawa
    @Strusprawa ปีที่แล้ว

    Great video. Helped mi a lot. Thank you for your work. Liked. Waiting for more

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you for watching, I have more flame tutorials coming soon.

  • @АлмазФайзрахманов-щ8т
    @АлмазФайзрахманов-щ8т 5 วันที่ผ่านมา

    Hi. Your video helped a lot, but I have a question: why did you close the git?

    • @TreyHope
      @TreyHope  5 วันที่ผ่านมา

      Thank you for watching. Im not sure what you're referring to, the "git"?

    • @АлмазФайзрахманов-щ8т
      @АлмазФайзрахманов-щ8т 4 วันที่ผ่านมา

      @@TreyHope Why close the github?

    • @TreyHope
      @TreyHope  4 วันที่ผ่านมา

      @@АлмазФайзрахманов-щ8т my apologies, it's up again.

  • @ThiagoAraujo-hh6xu
    @ThiagoAraujo-hh6xu ปีที่แล้ว +2

    Can you create a short video like this for a multiplayer card game? Like poker or blackjack... There is no tutorial at all on how to create a multiplayer card game on TH-cam. Thank you.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +3

      Great suggestion, I will add it to my list of future video ideas 👍🏾

    • @novastellar
      @novastellar ปีที่แล้ว +1

      Same here pls....I was hoping to make card game but multiplayer as well as a game like IDK if u know it but mini militia it's a multiplayer action wild game ...but don't know where to start.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      @@novastellar I don’t but that sounds like a very fun app.

  • @joshhitech
    @joshhitech ปีที่แล้ว +1

    Very good explanations throughout the video.
    I was just learning about collisions and this video happened to explain it in two different instances, so that helped me a lot.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      Preciate it, I’m glad it helped.

  • @Galakyllz
    @Galakyllz ปีที่แล้ว

    This was a great video, thank you! I have two things to bring up, though. One, I'm pretty sure that I know where the "gameRef" variable lives (accessible to `this` as part of the mixin), but talking about that for a second would have been helpful. Two, the ending/outro song was much louder than the video itself.
    That's all. Thanks again!

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      Thank you for feedback, I will keep that in mind for the next video.

  • @mobileariya350
    @mobileariya350 ปีที่แล้ว

    Thank you, it was very helpful

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Glad it was helpful!

  • @johnnysong9677
    @johnnysong9677 ปีที่แล้ว

    Wow thank you very much!!!

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Of course, thank you for watching.

  • @jona3684
    @jona3684 ปีที่แล้ว

    So glad I found this.
    When passing the joystick in to the santa ctor, is it also possible/ok to put the joystick into the gameRef and do something like gameRef.joystick within Santa?
    What a sentence!

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      I believe that should work in theory.

  • @aafre
    @aafre ปีที่แล้ว

    Absolutely brilliant! 💯

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you sir

  • @GarthFransman
    @GarthFransman ปีที่แล้ว

    Thanks ..Would love to see 2D runner game that spawn enemies with objects the hero can collect

    • @TreyHope
      @TreyHope  ปีที่แล้ว +2

      Good idea, I will add that to my list 👍🏾

  • @StefPatterson
    @StefPatterson ปีที่แล้ว

    This is a great lesson! Thanks so much!!

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Of course, thank you for watching

  • @TheSmiaro3010
    @TheSmiaro3010 ปีที่แล้ว +1

    5:23 Why don't declare "Globals" abstract instead of making private constructor?
    That would prevent initialization as well.

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Never thought about that. Can you show me an example of what that would look like and how to use it? It might be kind of hard in the comments lol.

  • @bennguyen1313
    @bennguyen1313 ปีที่แล้ว

    Any thoughts how difficult it would be to make a Flutter (Flame?) game that simulates the weapons page for the AH-64D Apache helicopter?
    There is a video (Digital-Combat-Simulator / DCS World: AH-64D Hellfire Missiles Tutorial ) that shows the 2D graphics, and loading/coding of the missiles.
    My goal would be to make a Flutter based Weapons Page simulator, that uses the Thrustmaster MFD on a touchscreen laptop/tablet (or even the $300 MFD+TFT from Aliexpress/totalcontrols)!

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      If it’s a 2D graphics game, it should be fairly simple to accomplish in Flame.

  • @slidewineder3953
    @slidewineder3953 ปีที่แล้ว

    thanks dude, hell yes.

  • @fayyazali5872
    @fayyazali5872 ปีที่แล้ว

    When im add the gift component its removing my joystick when im commenting it the joy stick is back whats the issue can you please let me know? Its throwing Bad state: A shapeHitbox needs a position component ancesstor? Can u please tell me how to fix it

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Did you pull the project from my GitHub repo?

  • @StefPatterson
    @StefPatterson ปีที่แล้ว +1

    Santa doesn't move when HasDraggables is in place, but if I remove it then he moves. Why?

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      I believe that’s because HasDraggables forces Santa to listen to a drag gesture on the screen and not the joystick, so when it’s removed he listens to the joystick. I would have to look at the code again to be 100% sure .

    • @StefPatterson
      @StefPatterson ปีที่แล้ว

      @@TreyHope thanks for the quick reply. I looked at it again, with the HasDraggables the joystick doesn't move at all. I'm at ?t=691 time code.

    • @StefPatterson
      @StefPatterson ปีที่แล้ว +1

      @@TreyHope Lukas from the Flame team just told me this: You shouldn't do that anymore, add DragCallbacks to the components that you need to be able to drag, and you don't have to add any mixin to the game 🙂

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      @@StefPatterson nice, thank you for the heads up

  • @techrisemedia
    @techrisemedia 8 หลายเดือนก่อน

    Well done

    • @TreyHope
      @TreyHope  7 หลายเดือนก่อน

      Thank you my friend

  • @devoidbmx1
    @devoidbmx1 ปีที่แล้ว

    Nice work, this is very cool!

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you very much 🙏🏾

  • @emadeddineibo1842
    @emadeddineibo1842 ปีที่แล้ว

    Just one thought, this is a tutorial, so there's no need for background music, it's just distracting. all love.

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      I prefer to have music, but thank you.

    • @emadeddineibo1842
      @emadeddineibo1842 ปีที่แล้ว

      @@TreyHope also I like the sound of your keyboard clicks 😅

    • @ronermo
      @ronermo 11 หลายเดือนก่อน

      the musics chill bro keep it @@TreyHope

  • @rahulagarwal968
    @rahulagarwal968 ปีที่แล้ว +1

    I got a simpler function to calculate angle and move ice components randomly on the screen.
    late Vector2 _velocity;
    double speed = 300;
    Future onLoad() async {
    _velocity = moveSprite();
    }
    Vector2 moveSprite() {
    // Generate a random angle in radians
    final randomAngle = Random().nextDouble() * 2 * pi;
    // Calculate the sine and cosine of the angle
    final sinAngle = sin(randomAngle);
    final cosAngle = cos(randomAngle);
    final double vx = cosAngle * speed;
    final double vy = sinAngle * speed;
    return Vector2(vx, vy);
    }
    void update(double dt) {
    super.update(dt);
    position += _velocity * dt;
    }

  • @projectsimplecode4639
    @projectsimplecode4639 10 หลายเดือนก่อน

    Hopefully google will make an editor for this workflow.

    • @TreyHope
      @TreyHope  10 หลายเดือนก่อน

      Elaborate on what that looks like please, sounds like a good idea but I don’t understand.

    • @projectsimplecode4639
      @projectsimplecode4639 10 หลายเดือนก่อน

      @@TreyHope a gui/editor for game development like unity or unreal but for flutter flame.

    • @TreyHope
      @TreyHope  10 หลายเดือนก่อน

      @@projectsimplecode4639 ah I see, yea that would be helpful.

  • @cb5151
    @cb5151 6 หลายเดือนก่อน

    ur talented

    • @TreyHope
      @TreyHope  2 หลายเดือนก่อน

      Thank you my friend.

  • @faisalfotoh1909
    @faisalfotoh1909 ปีที่แล้ว +1

    Can you explain the programming of the word-to-picture game?
    The idea I filmed on my channel
    Please give me your opinion and your response about explaining the programming of the game
    video name tawseel

    • @TreyHope
      @TreyHope  ปีที่แล้ว +1

      I’m not reviewing another video, but if you have a direct question about this video, I’d be happy to answer.

  • @kissstar6396
    @kissstar6396 ปีที่แล้ว

    So Cool.

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      Thank you 🙏🏾

  • @Moisesdevera1111
    @Moisesdevera1111 ปีที่แล้ว

    why the Enum MovementState gives me a lot of errors

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      What errors?

    • @Moisesdevera1111
      @Moisesdevera1111 ปีที่แล้ว

      @@TreyHope I already see it. Thanks for the Tutorial.

    • @TreyHope
      @TreyHope  ปีที่แล้ว

      @@Moisesdevera1111 of course 👍🏾

  • @krystallewright8467
    @krystallewright8467 ปีที่แล้ว

    😍😍