Enclosed | Simple path generation | GAME DEVLOG #0


Hey, you can call me Ken!

I've been developing games as a hobby using the unity engine for the past few years. I have published a few game jam games here and there & made 2 games for an educational schools platform.

This time I've decided to commit to making a small mobile game that I will hopefully publish for the public while also documenting the process!

The name I've chosen for the project (for now) is "Enclosed", here is why:

The end goal is a "circular pong game" (not an original idea I know) but the twist I'm adding is the way the paddles move - the path won't be just a circle but I want there to be different paths for the paddle to move along which means the paddle needs to move on a set path rather then just rotating the paddle for a circular path. This means that the first thing I am tackling is a path generating system that will be modular and which I could then make an object move along the generated path.

In this first short clip you can see the generic path generation system which can easily be customized in the editor. The "Path" script I've implemented a basic rectangle & circle path. For the circle path I can choose how smooth it will be, meaning how many points the circular path will be made of. For the rectangle path, the path has a constant of 4 points for now but I will probably update it in a way that each side will be split up to multiple points. The points that are generated are stored in a Vector2 list. To visualize the path I am using an edge collider which updates with the most recent path updates - whenever I am changing any settings of the path the path is regenerated & the updates the collider points to match the points list.

Next I'll work on moving an object along the generated path! Ken.

Leave a comment

Log in with itch.io to leave a comment.