Dipping my toes into Bevy/Rust!


Ever since the recent Unity licensing debacle, I've found myself wanting to branch out into some new engines. Bevy has been the one that's interested me the most, largely because uses Rust and the performance and safety of Rust along with its high programmer satisfaction have had me interested for year now.

I decided to start with a snake game because I thought it'd be a fairly simple way to learn the basic of the engine and familiarize myself with Rust (which I had only barely touched prior to this project). This project definitely had a steep curve for me though, I've been working with Unity for over a decade now, and this is the first time I've seriously used another game engine in a long time. Rust also takes a lot of getting used to, although I'm definitely enjoying it more now that I've gotten used to the basics.

The project itself also had a few interesting challenges that I hadn't considered, as I've never made a snake game before. The coiling of the snake required a decent bit of complexity, as did picking the cell to put new segments of the snake in after picking up a coin. 

The code for the project is available on GitHub. With this being my first time building anything substantial in Rust, I'm sure I made a lot choices that were less than optimal, and I don't doubt there are probably more idiomatic ways to write some of this. I'm really curious what I'll think if I revisit this code after a few months of using Bevy & Rust.

Files

bevy-snake.zip Play in browser
32 days ago

Leave a comment

Log in with itch.io to leave a comment.