I did this many years ago on the old smf arcade with flash games I made. I just decompiled one and built my games around it's save features.
PHP is a nightmare for my dyslexic old brain and to do it again, with my current toolset and tired old brain, I am going to need help.
I'm on to something here:
https://web-develop.ca/index.php?action=forum That seems to be the new home for smf arcade and found some HTML5 games that work in the arcade to try and learn from - but life is getting in the way...
Once I get just 1 game working - the rest will follow.
Sadly, Construct 2 uses an odd export structure and I am having trouble recruiting help, even in the C2 forums!