Show HN: Creating a Snake game clone with Rust/Bevy
18 by bebrws | 4 comments on Hacker News.
Code is here: https://ift.tt/b0dzvNf I had a lot of fun practicing Rust and Learning some Bevy concepts with this repository. Bevy has an incredibly powerful dependency injection system and follows a pattern called ECS which makes it very powerful (and new to me). This simple < 300 lines of code might help with learning some Bevy concepts. It also shows how to copmile for the web/WASM and inject a canvas for the game (or use a pre existing div).
18 by bebrws | 4 comments on Hacker News.
Code is here: https://ift.tt/b0dzvNf I had a lot of fun practicing Rust and Learning some Bevy concepts with this repository. Bevy has an incredibly powerful dependency injection system and follows a pattern called ECS which makes it very powerful (and new to me). This simple < 300 lines of code might help with learning some Bevy concepts. It also shows how to copmile for the web/WASM and inject a canvas for the game (or use a pre existing div).