Pac-Man
In this blog page I will showcase my work towards making Pac-man! I started off with adding a nice background to my Unity. The background has an empty background to the walls which wil make my work a lot easier.

Following that I started to add an attachment called "Box Collider 2D" and edited the collider to the walls only. This was quite a tedious process.
After this I started working on the animation of Pac-man. I setted it up in Animator and I have different animations for different ways that it will go.




I connected "Any State" to "Pac_Man_Facing_Right".
After clicking on the arrow I unticked "Fixed Duration", changed "Transition Duration" to 0.1 because I want a fairly short transition. I also ticked "Can Transition To So Self". I then added a condition called "DirectionX" and changed it to "0.1".
I made a transition to the rest of them; from "Any State" to the rest.
Using "Less" than would make it move negatively on the x axis and using "Greater" than would make it move positively on the x axis. Same goes for Y axis.
I then went ahead to add "Circle Collider 2D" this will make Pac-man be able to collide with the walls I have set up earlier. I have also added "Rigidbody 2D" which I will be able to use later for speed and turns, basically make Pac-man move.
At this point I ran out of time and I was pretty stressed making Pac-Man as I learnt that I had to make it quite late. I attempted to code it but I ended up getting stuck, then my animations was not working properly either. I really did try to make this work but due because of time and stress I wasn't able to work on it further. But this is my attemp!