BL-Labs / arcadeinterface

MIT License
0 stars 0 forks source link

Logging results #24

Open acrymble opened 9 years ago

acrymble commented 9 years ago

I don't think you can use javascript to write to disc, so how do we keep a log of the decisions people make in the games?

acrymble commented 9 years ago

Came across localstorage. Is this something we should be using? http://www.html5gamedevs.com/topic/3456-save-game-data-locally/ It looks like that would work for the physical machine, but not for the web-version. Is there a one-stop way to do this?

benosteen commented 9 years ago

To log, there will need to be a very simple backend service running, and you would effectively POST certain http addresses to log various information. For example, we could just turn on any web server, and it would log the various requests, even if they 404 - but I'm not suggesting we go down that route! It's very easy to go one better and we will.

To the front end, it will look like you are requesting an image or similar (XHRHttpRequest) but you will be POSTing what is going on in the game. ie image=...&tag=....&confirm=true/false