u/ChezyName

First Time using Bevy with a Coding Challenge
▲ 0 r/rust

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.

u/ChezyName — 3 days ago
▲ 10 r/bevy

I tried Bevy for the first time where every line costs $1.

Basically, I tried using Bevy for the first time with a challenge where every line of code I write costs $1, and at the end, I tallied the total.

Every time I passed a certain threshold, I would have to take a punishment, such as after 500 lines, I would have to use a light theme, and at 1.5k, I would use Notepad only.

The game is a vampire-survival-like game in which you cannot move but defend yourself against hordes of enemies, and after each wave you have the option of buying items in the shop.

Here's the GitHub if anyone's interested.

youtu.be
u/ChezyName — 3 days ago