Im pretty new to game dev in Unity, and thought I'd start off with a relatively simple game:
Im planning to make a game where 3 cups are shown on a table, and a ball is placed beneath one, the cups go down (concealing the ball) and move around. If the player selects the right cup, they win.
Not sure if I'm jumping in the deep end, but I'd like to make this dynamic in the sense that the animation shouldn't dictate the place of the cup on the table, as I want to code it so that the amount of cups can be set (as a difficulty).
After looking into the state machine stuff behind Unity's AnimationController but not sure how I should go about it.
I've identified various states as below:
- A cup can be down on the table
- A cup can be lifted
- A cup can be moved to a different position on the table (?)
You can see from the above that I dont know if I should include that as a state. When moving 2 cups, one cup should move forward to it's new position, and the other should move behind it as not to cause them to collide, but would also like to be able to code this in a way where cups on the far ends can be swapped as well.