This is the second prototype I made with Code with Unity.  In this project I learned how to limit the player's range so that they would not leave the boundary of the screen, how spawn object at random and destroy them once they exit the screen , and how to program a projectile. 

Use the left and right arrows to move the farmer, and space bar to shoot some pizza at the dogs!