
First Time using Bevy with a Coding Challenge
This was my first time using Bevy and my second time using Rust (I used it with Tauri before), and in this challenge, I would try to make a vampire-survival-like game where each line would cost $1. Then, after certain thresholds, I would face a punishment, such as after 500 lines, I would have to use a light theme, and at 1.5k, I would have to use Notepad.
If anyone is using Bevy or Rust for the first time, especially Bevy, you kinda need to immerse yourself in the way they do things, which is their ECS or their Entity Component System, and because I mainly use Unreal Engine, I feel as if I didn't use it to its full potential.
I had to get used to Rust's borrow checker / passing references, where I had to have code where it would be like:
let Ok((mut player, transform)) = player_query.single_mut() { safe var }
As well as using snake_case instead of PascalCase
One thing that's nice about Rust is that everything is immutable by default.
Here's the full source code, and the video I made alongside it.