mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Adding a bridge library for integral_isolates adding support for components to run CPU intensive code with a function similar to Flutter's compute function, but with a long lived isolate. Lifecycle is handled by the game loop, where the isolate would live between onMount and onRemove.
flutter_colonists
A tiny example where jobs and workers are paired together by running a path finding algorithm in an isolate using flame_isolate.
You can toggle between compute types by tapping the HUD element in the top right corner.
Keyboard bindings for the game are:
WASDfor moving the camera.Num+ Num-for zooming in and out.
Thank you Wyrmsun for the wonderful Germanic Worker asset. As this asset is licenced under GPLv2, this example project is as well.