flame_forge2d 0.18.3+1 copy "flame_forge2d: ^0.18.3+1" to clipboard
flame_forge2d: ^0.18.3+1 copied to clipboard

Forge2D (Box2D) support for the Flame game engine. This uses the forge2d package and provides wrappers and components to be used inside Flame.

71
likes
100/ 160
pub points
2.91k
downloads

We analyzed this package 3 days ago, and awarded it 100 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Funding URL doesn't exist.

At the time of the analysis https://patreon.com/bluefireoss was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

1131 out of 2550 API elements (44.4 %) have documentation comments.

Some symbols that are missing documentation: body_component, body_component.BodyComponent.BodyComponent.new, body_component.BodyComponent.angle, body_component.BodyComponent.body, body_component.BodyComponent.camera.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:flame_forge2d/flame_forge2d.dart that imports:
  • package:flame_forge2d/forge2d_world.dart that imports:
  • package:flame/components.dart that imports:
  • package:flame/src/text/renderers/text_paint.dart that imports:
  • package:flame/text.dart that imports:
  • package:flame/src/text/renderers/text_renderer.dart that imports:
  • package:flame/extensions.dart that imports:
  • package:flame/src/extensions/rect.dart that imports:
  • package:flame/geometry.dart that imports:
  • package:flame/src/geometry/polygon_ray_intersection.dart that imports:
  • package:flame/collisions.dart that imports:
  • package:flame/src/collisions/hitboxes/shape_hitbox.dart that imports:
  • package:flame/game.dart that imports:
  • package:flame/src/game/mixins/single_game_instance.dart that imports:
  • package:flame/src/game/game.dart that imports:
  • package:flame/src/flame.dart that imports:
  • package:flame/src/device.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 34 issues. Showing the first 2:

ERROR: The name 'Vector2' is defined in the libraries 'package:vector_math/vector_math.dart (via 'package:flame/components.dart', 'package:flame/extensions.dart', and 'package:flame/game.dart')' and 'package:vector_math/vector_math_64.dart (via package:flame_forge2d/flame_forge2d.dart)'.

lib/body_component.dart:49:3

   ╷
49 │   Vector2 get position => body.position;
   │   ^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/body_component.dart

ERROR: 'BodyComponent.position' ('dynamic Function()') isn't a valid override of 'ReadOnlyPositionProvider.position' ('Vector2 Function()').

lib/body_component.dart:49:15

   ╷
49 │   Vector2 get position => body.position;
   │               ^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/body_component.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
flame ^1.27.0 1.28.0 1.28.0
forge2d ^0.13.1 0.13.1 0.14.0
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
ordered_set - 7.0.0 7.0.0
vector_math - 2.1.4 2.1.5

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.13.1` on forge2d does not support the stable version `0.14.0`.

Try running dart pub upgrade --major-versions forge2d to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
71
likes
100
points
2.91k
downloads

Publisher

verified publisherflame-engine.org

Weekly Downloads

Forge2D (Box2D) support for the Flame game engine. This uses the forge2d package and provides wrappers and components to be used inside Flame.

Repository (GitHub)
Contributing

Topics

#flame #forge2d #physics

Documentation

API reference

Funding

Consider supporting this project:

opencollective.com
github.com
patreon.com

License

MIT (license)

Dependencies

flame, flutter, forge2d

More

Packages that depend on flame_forge2d