Weekly Update #6



This content originally appeared on DEV Community and was authored by Aby Noctel

Well hello again to all the people!

What I Learned

This week I have something special to share with you all. Something that I did not touch on in my previous game; and that is the Player Movement!

Problems I Faced

Well at first it was a bit complicated, trying to get the inputs from the keyboard and assigning a movement type to each key stroke.
Trying to not have the square get all messed up when you held 2 opposite directions at the same time was also kind of a hassle too.

The most frustrating part though, was implementing collision with window borders and not let the player shape get lost in the shadow realm.
At first it was a simple check if the player position/bounds were out of the bounds of the window. But every time I run the debugger to check, I would find new things to solve!

First was the fact that the collision update was happening after the input update which made the player do a jiggle when faced with a boundary which was fixed with a simple swapping out the line placement in the order of updates

Second was that the player could get OOB (Out Of Bounds) by simply walking up to a corner, and sliding to a direction of a wall. Which in all honesty, this was harder to fix. Finally solved it though by updating the PlayerBounds function I had after every position change that the script makes to not let them go OOB.

What Happens Next?

I believe next up will be the enemy ball spawns and writing their mechanics and how they would interact with the player

What I’ve Been Up To This Past Week

Nothing much to be honest, I have been going with the usual things.
Struggling to finish the tasks on my list on most days, I decided to give a little bit of order to my daily life and try to get back control of it in my own hands

Closing Words

Well I don’t have much to say, just that I hope you all are doing well and are happy with how your days/life goes by. Appreciate the small things in life, take a break from time to time, and just sit and listen to the sound of outside.
I should take my own advice as well now that I think about it…
Stay safe, love you all, and I’ll see you all again soon!


This content originally appeared on DEV Community and was authored by Aby Noctel