Bevy Engine

111 readers
10 users here now

founded 1 year ago
MODERATORS
1
8
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/bevy
 
 

It's a crate for server-authoritative networking.

We worked closely with the author of bevy_bundlication on this release to provide better abstractions for third party plugins on top of replicon. Here are some highlights:

Previously, users registered a component for replication and it was replicated if its entity was marked for replication. But this approach is quite limited. Now users can define replication rules similar to queries:

app.replicate_group::<(Transform, Player)>() // `Transform` and `Player` components will be replicated only if both present on an entity.

And it's possible to specialize ser/de for such groups. For example, replicate Transform in one way for players and in another way for static objects. Groups with more components take priority by default (but it's configurable). So it's also possible to have app.replicate::<Transform>(), but if Player component is present, (Transform, Player) will take precedence. In the next release we planning to support With and Without to let define something like this: app.replicate_group::<(A, B), Without<C>>().

Also check out ๐Ÿ“ฆbevy_bundlication which is now an abstraction over replicon that provides a bundle-like API for defining replication groups.

Custom replication functions was also heavily reworked:

  • Public API no longer requires any unsafe.
  • Deserialization and writing now defined separately. This allows rollback crates to define their logic without touching user-defined ser/de functions.
  • Writing now based on markers for more flexibility.
  • Users can customize deserialization in-place.

The author of bevy_bundlication also developing input queue and rollback plugins, but they require an API for disabling entities from Bevy. If you are interested in this or have other suggestions how to achieve it, feel free to comment on this issue.

๐Ÿ“œFull changelog ๐Ÿ“ฆbevy_replicon ๐Ÿ“ฆbevy_replicon_renet

2
3
Bevy Foundation (bevyengine.org)
submitted 3 months ago by [email protected] to c/bevy
3
3
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/bevy
 
 

This release is big! We abstracted out all I/O and renet dependency. We will continue to provide first-party integration with renet via bevy_replion_renet.

But now users can write their own integration with other messaging libraries. Refer to the documentation for instructions on how to do it, the process is very simple. See bevy_replicon_renet as an example.

This also opens up the possibility of simultaneously using multiple messaging libraries on the server, as long as the client identifiers they provide are unique.

See the changelog for a full list of changes.

๐Ÿ“ฆbevy_replicon ๐Ÿ“ฆbevy_replicon_renet

4
12
Bevy 0.13 (bevyengine.org)
submitted 4 months ago by [email protected] to c/bevy
5
5
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/bevy
 
 

It's a high level networking crate for the Bevy game engine.

Now mapped client events will not be drained and will behave exactly like other events. But it's a small breaking change since such events now require a Clone impl.

See the changelog for a full list of changes.

๐Ÿ“ฆbevy_replicon

6
8
Bevy 0.12 (bevyengine.org)
submitted 7 months ago by [email protected] to c/bevy
7
 
 

the title says it all, but if you want a little more context, I got a 1024*6 px skybox, and the game starts before it loads, making it appear suddenly while the game is already running

8
14
Bevy's Third Birthday (bevyengine.org)
submitted 10 months ago by kitering to c/bevy
9
2
submitted 11 months ago by [email protected] to c/bevy
 
 

I recently made a library for bevy, and want it to be available under the same dual license as bevy. What i've done is created both licence files and copy-pasted the contents, as well as copy the license sections from another bevy project. Is this all I need to do? I'm not a lawyer and am very new to all of this.

10
11
Bevy 0.11 (bevyengine.org)
submitted 11 months ago by kitering to c/bevy