Part 2: Flame Components - Build a Game Using Flutter and Flame
Автор: imaN NeO
Загружено: 2024-07-10
Просмотров: 4356
🎮 Welcome to the 2nd of our series on building a 2D game using Flutter and the Flame game engine!
The game is called Flappy Dash, just like the FlappyBird, but we just changed the Bird with the Dash!
In this video, we'll take a look at the Flame Engine Components and the game loop callbacks.
In this episode:
We talk about game widgets, so it is just a normal widget that you can integrate it into your flutter application. You have to pass a FlameGame instance which is the root component of the game.
Flame uses a component based system (called FCM in short) to be able to nest the components (just like how we nest widgets in flutter)
And each component (specially FlameGame) has some callbacks that manages the game loop. We talk about the those callbacks that are listed here: onGameResize(), onLoad(), onMount(), update(), render() and onRemove().
And then we take a look at some built-in components in the flame engine such as PositionComponent, RectangleComponent, ...
🚀 Join us as we dive into the world of game development with Flutter and Flame, and create a game inspired by the classic Flappy Bird. Whether you're a beginner or an experienced developer, there's something here for everyone. Don't forget to like, subscribe, and hit the bell icon to stay updated with our latest videos! 👍🔔
🔗 Links:
Source Code: https://github.com/imaNNeo/flappy_das...
Kenny (Free Assets): https://kenney.nl
Flame: flame-engine.org
Flame GameWidget: https://docs.flame-engine.org/latest/...
Flame Game Loop: https://docs.flame-engine.org/latest/...
Flame Components: https://docs.flame-engine.org/latest/...
🚀 Play it now:
https://play.flappydash.com
Chapters:
00:00 Intro
00:58 Game Widget
05:41 Camera & Camera
11:56 Game Loop
17:53 Components
33:45 Outro
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: