mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
feat!: Add CameraComponent to FlameGame (#2740)
This PR adds the `CameraComponent` and a `World` by default to the FlameGame.
This commit is contained in:
@ -21,7 +21,7 @@ class WorkerOvermind extends Component
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
game.cameraComponent.viewport.add(isolateHud = WorkerOvermindHud());
|
||||
game.camera.viewport.add(isolateHud = WorkerOvermindHud());
|
||||
super.onLoad();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user