Showing posts with label 2D. Show all posts
Showing posts with label 2D. Show all posts

Friday, 22 April 2016

2D Swing Game Prototype

Even though it's a bit old now, the "Mr.AahH!!" game by Japanese company Ponos has always been one of my favourite games. It's very simple and quite addictive. You just have to tap on the screen when the little guy is swinging on the rope, and he will release the rope. If he successfully landed on the other platform then you passed that level, and the closer you landed towards the centre of the platform, you get more points. 

The fun part is, the wind and gravity changes every level, so you can't always tap at the same time and have to adjust accordingly.


Quite happy that I finally got a working prototype of 2D swinging game today, using DistanceJoint2D. The line was drawn using Line Renderer, just have to change one of the end point in LateUpdate while it swings around.

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.

Thursday, 12 March 2015

An excellent Unity tutorial site

Found this cool site called noobtuts where there's lots of Unity 2D/3D tutorials (plus tutorials for C++, Python, Java and other stuffs too), I am currently learning all the Unity 2D ones and really enjoy it. Strongly recommended!