Gameplay Coding: Part Three
The final coding for the game!
When the cheese collides with rope area and the wheel is overlapping the rope area, create a rope on layer 1, Wheel.X & Wheel.Y+35 (half height size from origin) and set rope id to wheel’s id. Plus create a revolute joint from wheel to rope at image point 1.
Then set cheese’s position to Rope.X & Rope.Y+360
And pin cheese to rope.
Then we need the blower logic: When touch is touching Blower spawn air, and change animation.
Then when air collides with rope create physics impulse of 10 at angle with respect to air position if it is X less than rope (left) or bigger than rope (right)
Then when Title is touched request fullscreen (Optional)