Have you ever used a php game script?

Shole

New Coder
Apr 19, 2019
10
1
1
Did you guys use a php script that let's users play a game on your site. There are many out there, and I have been hooked a long time ago on the mafia script, where you have a mafioso and do mafia things through out the city, level up, etc. Anyone played around with those?
 

Ghost

Active Coder
Moderator
Apr 19, 2019
326
149
43
You can definitely create these games with PHP, but it's better to only use PHP for the game progress saving & behind-the-scenes logic, with HTML and JavaScript controlling the client side experience. You CAN get away with only using HTML/PHP, but it's going to require a lot of page loads (every action would = a page load) if you do not use JS AJAX.