flutter_scene_net
dashwire multiplayer for flutter_scene. Binds replicated state to the scene graph so networked entities become nodes that render smoothly.
SceneReplicationmaps replicas to scene nodes through per-type builders, spawning and despawning nodes as the server dictates.- Replicas that extend
TransformReplicaget aNetworkTransformComponent, an interpolation buffer that renders remote poses a fixed delay in the past so motion stays smooth under jitter. SceneHostruns 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.
Libraries
- flutter_scene_net
- dashwire multiplayer for flutter_scene.