October 2nd, 2013, 04:07 PM
PHP+JS "Mini Game" [moved from PHP]
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..
Last edited by requinix; October 2nd, 2013 at 04:14 PM.
October 3rd, 2013, 03:39 AM
October 4th, 2013, 04:04 AM
I am professional PHP programmer, but I have no idea about the JS part.
Originally Posted by Winters
October 4th, 2013, 04:52 AM
Just remember w3schools is not recommended to use.
Maybe look at this:
October 8th, 2013, 04:12 PM
PHP will not be used more of part except when AJAX request and/or DB connect.
Probably you don't even need to do much of dynamic rendering in PHP either. Try to search for JS template Library such as Mustache or dust.js