Tuesday, 19 April 2016

2D Seesaw Game Prototype running on iPad Mini (Unity Remote 4)

After watching the Unity tutorial on Hinge Joint 2D, spent some time this afternoon and created this 2D Seesaw Game Prototype using hinge joints.


Spent a lot of time adjusting the angle, position, friction of material, ball physics, ...etc.

Currently it shows message about whether the color of the ball matches the color of the hat, but only on the console. Haven't got time to display GUI/UI Text or score as this is just a prototype.

All sprites are from Unity 2D pack, the ball looks ugly because of thick outline and shadow...

3 c# scripts:
1) on the plank object to change the max/min angle limits when touched.
2) on the camera to spawn new balls every few seconds.
3) on the ball (prefab) to detect collision, check if collided hat has matching color then display result message in console, and destroy ball afterwards.

As this is using Unity Remote 4 running on iPad Mini, the screen resolution is not that good and a bit unclear.

No comments:

Post a Comment