1. Project Setup and Game Loop - Dino Run | DevKage

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ย. 2024
  • This is the first video in the Dino Run series. In this video I have explained the basics setup required for rest of the series. Also, I have explained in short how most of the games out there work and what a game loop is.
    GitHub repo: github.com/ufr...
    Dino asset: arks.itch.io/d...
    Connect with DevKage:
    ▫ Discord: / discord
    ▫ X (Twitter): / devkage
    ▫ Instagram: / devkage
    ▫ Dev.to: dev.to/devkage
    Music:
    Inner Light by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommon...
    Source: incompetech.com...
    Artist: incompetech.com/
    #Flutter #GameDev #Flame
    Want to support my work?
    ▫ Patreon: / devkage
    ▫ BuyMeACoffee: www.buymeacoff...
    ▫ GitHub sponsors: github.com/spo...

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

  • @someshsahu4638
    @someshsahu4638 11 หลายเดือนก่อน +2

    Very nice explanation brother thank you so much 🙏🏼🙏🏼🙏🏼

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

      Glad to know that you liked it🙂

  • @-Sergey
    @-Sergey 3 ปีที่แล้ว +1

    Wow. Looks great. I'll try to make it.

    • @DevKage
      @DevKage  3 ปีที่แล้ว

      Cool!

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

    Great tutorial! Very well explained :)

    • @DevKage
      @DevKage  3 ปีที่แล้ว

      Thanks man!

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

    You have to use: flutter run --no-sound-null-safety

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

      Thanks for sharing. I hope others will find this helpful 👍🏼

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

    awesome

    • @DevKage
      @DevKage  2 ปีที่แล้ว

      Thanks man!

  • @Daniel-ud7ve
    @Daniel-ud7ve 2 ปีที่แล้ว

    Thanks for this video 😀

    • @DevKage
      @DevKage  2 ปีที่แล้ว

      🤘🏼🙂

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

    you are the best men

    • @DevKage
      @DevKage  3 ปีที่แล้ว

      Thanks. But I consider myself just an average developer trying to learn and share as much as possible. 😅

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

    Great Tutorial. I needed this

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

    good job! go to watch start to end :)
    your vscode theme is simply fine!!! what is it?

    • @DevKage
      @DevKage  2 ปีที่แล้ว

      Thanks man! I think that theme is just called "Black". If you search on the extension marketplace, it should be the first one that pops up in that list

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

    Can I start this project now (I mean after 1 year) !
    Or will I face many problem in flutter leatest version? (I used flutter 2.5).

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

      It is rather odd, but if you are just getting started with Flame, I will not suggest you to watch this series now (unless you can figure out and fix minor bugs on your own)😅. Flutter as well as Flame have changed significantly since I started this series.
      If you need a more up to date tutorials, here are few links:
      medium.com/flutter-community/flutter-flame-step-1-create-your-game-b3b6ee387d77
      www.raywenderlich.com/27407121-building-games-in-flutter-with-flame-getting-started
      The github repository for Dino Run is update to date though. So if you want, you can check that too.

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

    I can not find basegame widget

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

      In latest version of Flame, BaseGame has been changed to FlameGame. There are few more of such changes. I'd suggest you to either use the exact version of packages that I've used in the videos, or keep in touch on my discord server to get question solutions when you get stuck.

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

      @@DevKage Thank you for the fast reply!

  • @HariharanJ-jr6jl
    @HariharanJ-jr6jl ปีที่แล้ว +1

    Sir where is BaseGame class in my code 🤔 . It's showing error in my code

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

      It is now FlameGame instead of BaseGame.
      If you are using latest Flame version while following this series, you'll see a lot of such differences. This series is quite outdated and I recommend it only to get a general idea about flame. But still, if you get stuck somewhere, you can take a look at the updated code in the GitHub repo linked in the description. 🙂

    • @HariharanJ-jr6jl
      @HariharanJ-jr6jl ปีที่แล้ว +1

      @@DevKage okay sir thank you for your reply 👍

  • @4STARSS-jz3ep
    @4STARSS-jz3ep 5 หลายเดือนก่อน +1

    how to solve problem in BaseGame ?

    • @DevKage
      @DevKage  5 หลายเดือนก่อน +1

      BaseGame is not available in the latest version of Flame anymore. FlameGame is the replacement for it.
      Just a note: The code shown in these videos is quite old now. If you are following it with the latest version of Flame, you'll encounter a lot of such breaking changes. But you can check out the GitHub repo of this project which is always kept up-to-date with the latest release of Flame. So follow this series only if you are fine with that. If not, you can check out some of the newer videos on my channel.

    • @4STARSS-jz3ep
      @4STARSS-jz3ep 5 หลายเดือนก่อน +1

      ok-thank you dear🥰@@DevKage

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

    bro can you please update the latest code for this Dino game. it has many changes after the use of null safety. Also have many changes in Flame Codes .

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

      I've tried porting that code to null-safety and latest Flame pre-release versions a couple of times. But everytime I end up hacking my way through to get thing working. That is why I haven't pushed those changes yet. Also, Flame 1.x.y is way different than 0.x, so for a beginner watching these videos, it will create more confusion if code in videos is different than code available in the repo.
      But for advanced users, who just want a null safe version of this project, I'll try to create a null-safe branch on that repo and push new changes there.

    • @jithuhari5014
      @jithuhari5014 3 ปีที่แล้ว

      @@DevKage ok Bro😊

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

    Can't build apk ?

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

      What error are you getting? Also, did you check the latest code for Dino Run on the GitHub repo linked in the description?

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

    body: game.widget has an error into my code :c

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

      The latest version of Flame now has a GameWidget which helps in displaying game inside a widget. See the updated code in the GitHub repo linked in the description.

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

      ​@@DevKage i try it but its something wrong with "box.dart:1" error (i ave the same vertion)