javascript - WP 8.1 WinJS - How to stop Game Loop? -
everything working fine, except cannot seem stop game loop when start button beingness pressed , app moved background...
app.oncheckpoint = function(args) {}; not firing suspend event start button.
i able stop loop button using: app.onbackclick = function() {};
but how stop loop start button?
try this
document.addeventlistener('msvisibilitychange', function () { gamestop(); });
the msvisibilitychange fires when app not visible anymore.
javascript html5 winjs
No comments:
Post a Comment