She's A-Work!

THAT'S what we're after. The paddle moves at a reasonable rate along with the mouse, and now we can actually bounce the ball around a little. Success! To get more than just a straight vertical bounce, try clipping the ball with the edge of the paddle. The Ball should bounce off the screen at an erratic angle. Game over!

Press the Play button again to stop testing your game.

Get Unity 3D Game Development by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.