flutter_scene_net 0.1.0 copy "flutter_scene_net: ^0.1.0" to clipboard
flutter_scene_net: ^0.1.0 copied to clipboard

dashwire multiplayer for flutter_scene. Replica-to-node binding, interpolated transform sync, and in-app hosting.

flutter_scene_net #

dashwire multiplayer for flutter_scene. Binds replicated state to the scene graph so networked entities become nodes that render smoothly.

  • SceneReplication maps replicas to scene nodes through per-type builders, spawning and despawning nodes as the server dictates.
  • Replicas that extend TransformReplica get a NetworkTransformComponent, an interpolation buffer that renders remote poses a fixed delay in the past so motion stays smooth under jitter.
  • SceneHost runs a dashwire room and WebSocket listener inside the app, so a game can host from one device with a loopback self-join, no separate server process. Native only; a throwing stub on web.

See the Multiplayer example in the flutter_scene repository for a full host-and-join demo.

Usage #

final replication = SceneReplication(
  registry: registry,
  session: session,
  root: sceneRoot,
  builders: {'pawn': (replica) => Node()},
);

Server-authoritative state flows in over a dashwire Session; each replica type names a builder that produces its scene node.

0
likes
0
points
168
downloads

Publisher

verified publisherbdero.dev

Weekly Downloads

dashwire multiplayer for flutter_scene. Replica-to-node binding, interpolated transform sync, and in-app hosting.

Repository (GitHub)
View/report issues

Topics

#multiplayer #networking #gamedev #dashwire

License

unknown (license)

Dependencies

dashwire, dashwire_replication, flutter, flutter_scene, vector_math

More

Packages that depend on flutter_scene_net