bevy-cheatbook
bevy_webgl2
Our great sponsors
bevy-cheatbook | bevy_webgl2 | |
---|---|---|
7 | 4 | |
1,628 | 170 | |
5.4% | - | |
9.0 | 1.8 | |
4 days ago | over 2 years ago | |
Rust | Rust | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bevy-cheatbook
-
The Bevy Foundation
I've been using Bevy recently so here are some thoughts on this:
Firstly, the overall quality is high and seeing this attention being paid to the project's organization is another good sign.
Documentation is not great great. The Bevy book runs out of content very quickly. The "Cheat Book" has additional useful information: https://bevy-cheatbook.github.io/. With these plus the examples I've been able to figure out everything I need, but it's slow going.
I'm not 100% sold on ECS. It loses a lot of type safety and there doesn't seem to be any way to ensure cleanup of entities and their components.
-
New to Bevy, Migrating from Unity3D: Need Advice on 2D Game Dev Tools
You can see working examples of nearly everything you asked about in the Bevy Cheatbook
-
Survey: How have shader compilation messages been for you?
The biggest source of wasted time for me was finding out that my shaders which were working on native didn’t work on webgl. For one of the more perplexing error messages, I opened this issue in the cheatbook a while ago.
-
Bevy 0.5
wasm mostly works :) There's a nice PR open on the cheatbook that documents the process quite well that you can work off of.
-
Orthographic projection with top left origin
Great! Are you okay if I submit this to the Unofficial Bevy Cheatbook? This question comes up pretty frequently and this is a great little snippet.
bevy_webgl2
-
Is there a way to use piston with wasm?
There was a rust game jam in September 2021 and some games are playable in the browser. In that game jam the most used game engine was the bevy game engine. But most of the games made in bevy were not made playable in the browser, the ones that were playable in the browser used a third-party bevy plugin called bevy_webgl2. However now bevy has been updated to version 0.6 that has new built in WASM support, so there seems to be no need for bevy_webgl2. Targeting WASM with bevy might mean that not all features of the engine are available, so you need to limit the game’s features used to the ones that are compatible with WASM.
-
Bevy 0.5
For web assembly there is the unofficial bevy_webgl2 plugin. Official bevy web assembly support would probably use the wgpu webgl backend, which still needs some work, and is currently untested in bevy.
-
Running ML models in a game (and in Wasm!)
Thanks to bevy_webgl2, this is actually very straightforward. I just need to add the plugin WebGL2Plugin and disable the default features of Bevy to only enable the one available on Wasm.
-
Advice for doing a web-playable 7DRL
Bevy has bevy_webgl2, which is supposed to enable a way to compile bevy for wasm and consequently run in a browser.
What are some alternatives?
awesome-bevy - A collection of Bevy assets, plugins, learning resources, and apps made by the community
wgpu-rs - Rust bindings to wgpu native library
rusty-shooter - [suspended] 3d shooter written in Rust using rg3d
bracket-lib - The Roguelike Toolkit (RLTK), implemented for Rust.
bevy_webgl2_app_template
bevy - A refreshingly simple data-driven game engine built in Rust
tract - Tiny, no-nonsense, self-contained, Tensorflow and ONNX inference
rust-analyzer - A Rust compiler front-end for IDEs