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...
Very nice explanation brother thank you so much 🙏🏼🙏🏼🙏🏼
Glad to know that you liked it🙂
Wow. Looks great. I'll try to make it.
Cool!
Great tutorial! Very well explained :)
Thanks man!
You have to use: flutter run --no-sound-null-safety
Thanks for sharing. I hope others will find this helpful 👍🏼
awesome
Thanks man!
Thanks for this video 😀
🤘🏼🙂
you are the best men
Thanks. But I consider myself just an average developer trying to learn and share as much as possible. 😅
Great Tutorial. I needed this
good job! go to watch start to end :)
your vscode theme is simply fine!!! what is it?
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
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).
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.
I can not find basegame widget
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.
@@DevKage Thank you for the fast reply!
Sir where is BaseGame class in my code 🤔 . It's showing error in my code
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. 🙂
@@DevKage okay sir thank you for your reply 👍
how to solve problem in BaseGame ?
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.
ok-thank you dear🥰@@DevKage
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 .
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.
@@DevKage ok Bro😊
Can't build apk ?
What error are you getting? Also, did you check the latest code for Dino Run on the GitHub repo linked in the description?
body: game.widget has an error into my code :c
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.
@@DevKage i try it but its something wrong with "box.dart:1" error (i ave the same vertion)