Hello. I have a browser-based game and I want to include in it a "Mini games" to train stats.
these games will be based on PHP, and JS.
These "mini games" are very simple, but I have no clue how to do this since I never been in this business before.
My goal, for the first mini game, is to make a mini game that challanges the user to click X Times on a key in the keyboard (such as "K") in a limited time.
If the player passes, he will gain attack stat (just one query).
How do I start?

Thanks in advance..