In this batch, I've made improvements marked in the last post. The first design change is about game mechanics. Previous version movements worked with a keyboard/controller. Now, this is a mouse click game (or tap screen on mobile version). Like in the previous version, we control the player with the ball. When we click on the court, the player moves to that position. If we click on a mate, the player passes the ball, but first, our player looks to the mate, so we can mark the first target as done.
Rotation now is fluid, the player looks to the target position before starting moving, so no more movement is restricted to 90, 180, 270, 360 degrees.
A basketball court was added with a provisional texture found out there. Also added camera in isometric (approx) perspective.
Invisible bounds were added. For now, a message is logged when the ball trespasses them.
The basket was created with MagicaVoxel, experimenting with layers. Export from MagicaVoxel to Unity is quite easy (in .obj format). When the player clicks on the basket, a shot is made using a parabolic trajectory. Currently, all shots are good and we score on every attempt. I will start adjusting it in the next steps.
Tags: Games dev