fynkel_flutter
Shows a Fynkel game in a Flutter app:
FynkelApp is a whole app that is a game, FynkelGame and FynkelView put one
among other widgets. Flutter makes the game's menus and HUD.
Start
dart pub global activate fynkel_cli
fynkel create my_game
cd my_game
flutter run -d macos
fynkel create sets the app up. To add Fynkel to an app you have, run
flutter pub add fynkel fynkel_flutter, set Android's minSdk to 30, make its
MainActivity a FynkelActivity, and let fynkel doctor check it. The guide
is at fynkel.com.
Where it runs
macOS 12, iOS 15 and Android 11 (64-bit) or later. Games are built on a Mac.
Libraries
- fynkel_flutter
- Shows a Fynkel game in a Flutter app. Start with FynkelApp for a
game that is the whole app (with a HUD over it, if any), or with a
FynkelGame and the FynkelView in its builder for a game inside a
bigger app: the FynkelGame makes the root, has its world ready before
the builder runs, starts it over (F5) and reads its shaders and sounds
again on a hot reload. A FynkelView alone (
FynkelView(root:)) is for a second view of a game, or a quick tool; it can't start the game over. FynkelViewStats is what a view did each second, and bundleSource loads assets from the app's bundle. - testing
- For a game's widget tests: move the game on by frames or seconds, and find it on screen.