I think the goal is to lure the duck into submission by smashing your mouse so that the pebbles are gradually closer to your hand, that way you earn the duck's trust and you get to pet it.
EDIT: That said, it reminded me of a tamagotchi and I was happy + worry free for the whole 3 minutes that I played. Nice game! :D