Fynkel

Code-first 3D games for Flutter. You write the game in Dart, the way Unity games are written (objects, components, behaviours, onUpdate), and a Rust engine (wgpu) draws it. There are no scene files, prefabs or editor: the game is code.

This package is the framework itself: objects, components, the frame, input, motion, cameras, rendering. It is plain Dart, and a game runs frame by frame in flutter test, without a window. To show one in an app, add fynkel_flutter.

Start

dart pub global activate fynkel_cli
fynkel create my_game
cd my_game
flutter run -d macos

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. The first build for each platform downloads the engine, about 7 MB, and checks it against the hash in this package; no Rust is needed.

Libraries

extend
What packages build on Fynkel with: WorldSystems, work they hang on a world's frame. Games don't need it.
fynkel
Fynkel: a code-first game framework. Build a World of objects with components; package:fynkel_flutter shows it on screen.
hooks
platform
For the platform plugins (package:fynkel_flutter): the views they show on screen. Games use FynkelView instead.
testing
For a game's tests: run its world for a while, tap it, and name a point in its view. HeadlessView draws it, view.png() saves a frame, and view.expectFrame('test/frames/start.png') checks one against a saved picture.