Install and first game
What you need
Section titled “What you need”- A Mac with Flutter 3.47 or later (install Flutter).
- Xcode, for macOS and iOS.
- Android Studio, for Android.
Games run on macOS 12, iOS 15 and Android 11 (64-bit) or later. Windows, Linux and the web aren’t supported yet.
Your first game
Section titled “Your first game”dart pub global activate fynkel_clifynkel create my_gamecd my_gameflutter run -d macosA cube turns in a window: click it, and it hops. The game is in lib/main.dart: change the cube’s
colour, save, and press R in the terminal to see it.
- The first build for each platform downloads the engine: about 6 MB on a Mac, 10 MB with physics and sound (an Android build gets two sets). After that, builds for it need no network.
fynkel: command not found? Add$HOME/.pub-cache/binto your PATH.- Something missing?
fynkel doctorchecks your Mac and the game in the folder you run it in, and says what to do.
On a phone
Section titled “On a phone”Connect it, find its name with flutter devices, and run
flutter run -d <name>. An iPhone needs a signing team once: open
ios/Runner.xcworkspace in Xcode, and choose yours under Signing &
Capabilities. For real speed, run with --profile or --release.
Physics and sound
Section titled “Physics and sound”They are packages of their own. Add them when you make the game:
fynkel create my_game --physics --audioor later, with flutter pub add fynkel_physics and
flutter pub add fynkel_audio.
- Your first game: Roll: a small whole game in half an hour.
- How a game is made, and the guide from there, one idea at a time.
- Recipes: short pieces of code for what most games need.
- Coming from Unity.
- What works today, and what doesn’t yet.
- Adding Fynkel to an app you have.
- Something went wrong? Troubleshooting.