You are browsing as a guest. Sign up (or log in) to start making projects!

Voxi0

@Voxi0

Joined June 1st, 2026

  • 3Devlogs
  • 1Projects
  • 0Ships
  • 0Votes
Open comments for this post

2h 30m 46s logged

Added a scoreboard and scoring system and all. I figured out how to make use of the resources system that Bevy makes use of to keep track of the player’s scores and be able to update/access it in functions. I also figured out that Avian offers a Sensor property which turns a collider into just something used for detection instead of having any physical stuff. Since the players are meant to score by bouncing the ball back and making it hit the wall behind the opponent, I added the Sensor property to both the left and right walls so the ball doesn’t collide or anything with them making it look like there aren’t even any walls there. Then it’s just a matter of adding a .observe() to handle collision events so we can update the scores properly depending on which wall the ball hits. It took me a while to figure out how to set up the scoreboard and get it looking the way I want but yeah it’s there now and is updated everytime someone scores instead of constantly updating it or something. Now I need to make the ball respawns after either player scores because right now, it just leaves the screen and never comes back.

0
0
2
Open comments for this post

54m 54s logged

I added a simple ball and just for fun, I also introduced a full on proper 2D physics engine called Avian2D instead of me manually calculating and handling collisions and such. And while it is probably (pretty sure absolutely) overkill, it’s genuinely more satisfying to play around with.

I’ll organize and move stuff around a bit before adding in a scoreboard and figuring out how to set up a scoring system. After that, I’ll just polish up my project to be more nice and enjoyable since the basics of Pong are pretty much already taken care of anyways. So stuff like a main menu and using actual proper textures/images instead of just shapes with a plain color and such you know.

0
0
4
Open comments for this post

6h 2m logged

Spent a long, long while trying to understand Bevy and it’s ECS implementation along with a bunch of Rust syntax I have not yet encountered. While I still do not understand everything entirely, I have a decent grasp on the basics of Bevy and how it functions and handles stuff using the ECS pattern.

I know enough to be able to do some basic things like create entities and handle input and draw some stuff and such.

After playing around for a while, I finally took the time to go ahead and wipe everything to start fresh. Created a simple Nix flake to define my build/dev environment and set up a basic Rust project using Bevy before creating the Paddles and adding movement and such to them.

I took some time to organize everything and sue constants/variables in various places as well to ensure that I’m not overusing magic numbers in my project and to provide a sort of control center to change the looks/behavior of the entire game easily.

Now it’s time to create the ball…

0
0
10

Followers

Loading…