How do i make a 'poke' game

i was wondering what i would need to do to make a game where the player would just poke the character by pressing a button or clicking. after a certain amount of poking the character would suddenly do something like yell.

here’s an example of what i want to be able to do: Penguin Game

thanks,
mordaut

EDIT: post moved to game programing forum