Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Sep 17, 2023
1 parent c1546ec commit a3bfd07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions doc/flame/game.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,12 @@ While the game is paused, it is possible to advanced it frame by frame using the
It might not be much useful in the final game, but can be very helpful in inspecting game state step
by step during the development cycle.


### Backgrounding

The game will be automatically paused when the app is sent to the background, and resumed when it
comes back to the foreground. This behavior can be disabled by setting `pauseWhenBackgrounded` to `false`.
The game will be automatically paused when the app is sent to the background,
and resumed when it comes back to the foreground. This behavior can be disabled by setting
`pauseWhenBackgrounded` to `false`.

```dart
class MyGame extends FlameGame {
Expand All @@ -236,4 +238,5 @@ class MyGame extends FlameGame {
}
```

On the current Flutter stable (3.13), this flag is effectively ignored on non-mobile platforms including the web.
On the current Flutter stable (3.13), this flag is effectively ignored on
non-mobile platforms including the web.
2 changes: 1 addition & 1 deletion packages/flame/lib/src/game/flame_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class FlameGame extends ComponentTreeRoot
}

/// Whether the game should pause when the app is backgrounded.
///
///
/// On the latest Flutter stable at the time of writing (3.13),
/// this is only working on Android and iOS.
///
Expand Down

0 comments on commit a3bfd07

Please sign in to comment.