Tag Info

Hot answers tagged

1

You don't use cookies. Take a look at localstorage. It is intended for storing small bits if data, that is too big for a cookie. Here is more info: http://www.html5rocks.com/en/tutorials/offline/storage/


1

Jordan replied the question properly, I have given here some resource that might be helpful. using state in Phaser github template for phaser game in-phaser-how-should-i-be-managing-state


1

setInterval runs forever, or until you cancel it. This will be a "fire and forget" call. You don't need the loop. The code will run forever, once every few milliseconds. setInterval(function() { // move it up if its too small if (copper < max) { copper++; document.getElementById('GC').innerHTML = copper; // move it down if ...



Only top voted, non community-wiki answers of a minimum length are eligible