Skip to content

Bouncing a Sphere Into Cubes with Unity

Hey everyone!

Check out this early gameplay video something I’ve been working on over the new year. It’s currently called Blocks but that will likely change… It’s a fun and challenging game where you bounce a ball into blocks to break them. The controls are simple to learn, but the levels get progressively more difficult as you go along.

As you can see, this is made in Unity. Nearly everything is primitive shapes (cubes and spheres of various shapes and sizes) although I have got a couple of particle effects in there for the explosions.

The balls have a rigid body component on them and the bulk of their movement is physics based although the overall velocity of each ball increases each time it bounces. I found during testing that the balls would frequently get stuck going straight up/down or straight left/right, so I implemented a nudging effect, so that if the ball does start getting stuck it will get nudged into a more diagonal route.

The colours are basically Genshin Impact‘s reactions system – red being pyro, blue being hydro, purple being electro, etc – a red ball hitting a purple block (or vice versa) effectively causes “overloaded”, instantly destroying the block. Green hitting red will cause “burning” and apply damage over time. Blue hitting purple causes “electro charged” creating an area of effect impact.

What do you all think? Let me know in the comments! And if you like it, feel free to share the video with your friends. I’m sure they’ll love it too. 😊

Leave a Reply

Your email address will not be published. Required fields are marked *