#4: Forward and backward


DevLog #4: Forward and backward

I upgraded the Point class in order to have a rotation duration (not linked to the move speed). Now my Component looks like this:


I had some problems last time to make the rotation animation and figured something out with a mysterious transformation of euler angles. I also codded the fact to get the next angle when going backward and find the minimum angle to turn (turn +90° to go from 270° to 0° rather than turn -270°).

The result gives this:

I added also a player spawn empty GameObject with a circle Collider 2D which gives him a "safe zone" to be.  This zone is also used to detect the end of the level when the player fully filled the cheat bar.


Thanks for reading.

Hope you enjoyed,

TheRolf

Leave a comment

Log in with itch.io to leave a comment.