THIS GIF IS SLOW… GAMEPLAY IS NORMAL
It’s a very simple demo, nothing complex, only a touch/click detector on duck that move on pseudo-random position. The dog appears at the X position of the duck when shooted.
Sample images, download:
I’ve separated these images to permit to duck to hide behind tree, plant and terrain.
This is the players 2D Sprite:
There is only one C# script attacched to the duck. Make the duck move, animate the dog and detect shoots.
In particular I’ve used InvokeRepeating for animations, Random.Range to retrieve some random value and Translate to move the player.
Everything. It’s just a starting point.
Source code on github as usual: https://github.com/elpsk/Unity3D-Nintentdo_Duck_Hunt