TheBevyFlock / bevy_new_2d

This template is a great way to get started on a new 2D Bevy game!
https://the-bevy-flock.itch.io/bevy-new-2d
MIT License
166 stars 30 forks source link

Spawn entities with an `EntityCommand`-based abstraction #223

Open benfrankel opened 2 months ago

benfrankel commented 2 months ago

An example of how the proposed API looks in practice: https://github.com/benfrankel/bevy_jam_template/blob/main/src/screen/title.rs.

Benefits:

Drawbacks:

janhohenheim commented 2 months ago

I'm in favor. Note that we went through many designs and this seems the cleanest by far imo. Bevy does not have the required answer to "How do I spawn an object composed of lots of stuff?" yet while still returning an EntityCommands, so we need to introduce an abstraction here.

alice-i-cecile commented 2 months ago

I'm also in favour of this.

janhohenheim commented 2 months ago

Blocked on upstreaming https://github.com/bevyengine/bevy/issues/14278 and maybe https://github.com/bevyengine/bevy/issues/14231