Re:Bevy 0.4: data oriented game engine built in Rust
by ndarilek on Saturday December 19, 2020 @04:24PM
(#25481346)
Same. I've been using Bevy to experiment with some accessible game mechanics for the past few months now. The speed from which I can go from "I really want map exploration to report this and that detail on an entity, based on this and that characteristic," to code that just works and does what I want, is astounding. The degree to which I can then optimize that code, to only run it when this or that component changes value for instance, is also amazing. And when some Bevy subsystem or other isn't up to my standards, I can plug in some other library, add a few components in my game, and more or less forget about the details of the lower-level integration. It's an amazingly productive engine. If it'd launched a year earlier, I'd probably have built my just released game in Bevy rather than Godot.
Re:Bevy 0.4: data oriented game engine built in Rust
by Fireflite on Saturday December 19, 2020 @03:01PM
(#25480669)
The way that you can turn normal Rust functions into systems, grabbing the relevant components through their type signature is wonderful sugar, and feels magic to use.
Re:Bevy 0.4: data oriented game engine built in Rust
by mindv0rtex on Saturday December 19, 2020 @03:20PM
(#25480823)
That's the level of Rust I wish there were more learning materials about.
Re:Bevy 0.4: data oriented game engine built in Rust
by ofrzeta on Saturday December 19, 2020 @03:16PM
(#25480783)
I tried to make sense of the tutorial with various degrees of success :) Does this mean the components get automatically iterated over in no particular order (for instance the Persons in the example)?
Re:Bevy 0.4: data oriented game engine built in Rust
by PudgePacket on Saturday December 19, 2020 @03:18PM
(#25480804)
That's correct.
Re:Bevy 0.4: data oriented game engine built in Rust
by xwdv on Saturday December 19, 2020 @03:18PM
(#25480801)
Have you ever used an ECS system? This isn’t unique.
Re:Bevy 0.4: data oriented game engine built in Rust
by indiv0 on Saturday December 19, 2020 @03:25PM
(#25480865)
I don't know if it's unique, but it is the first ECS I've used where the level of sugar matches my mental model of what's going on behind the scenes.
I've primarily used specs & Unity's ECS before this.
Re:Bevy 0.4: data oriented game engine built in Rust
by PudgePacket on Saturday December 19, 2020 @03:20PM
(#25480820)
The ergonomics are certainly top notch. The only other ECS I've used is the in-progress Unity one, and boy is that _painful_ by comparison.
There's something about the way the ECS framework is designed that just works. In particular the way the "systems" part of the ECS is automagically generated from regular old rust functions is just brilliant to me.
Aside from the ECS stuff, the WASM support is something else I'm pretty happy with (shout out to mrk-its for their help here). I can compile my game for native when I'm working on it locally, then when I want to show it off I can just `aws s3 cp` it up to a bucket and have people try it out in their browsers. The performance is still great there.