I found a really good site where there are sample animations that you can do with drawing canvases and all the other things about javascript functions. I jumped to it and looked at the examples, but I was wondering if Window, which is originally on js actually works well in MV? like onload, oncancelframe, etc.
Example:
if (!window.cancelAnimationFrame) { window.cancelAnimationFrame = (window.cancelRequestAnimationFrame || window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.mozCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.msCancelRequestAnimationFrame || window.oCancelAnimationFrame || window.oCancelRequestAnimationFrame || window.clearTimeout);}If I want to make a game enclosed only in an exe file, would it be that helpful / would it work if the animation is written this way?
Example:
if (!window.cancelAnimationFrame) { window.cancelAnimationFrame = (window.cancelRequestAnimationFrame || window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelAnimationFrame || window.mozCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.msCancelRequestAnimationFrame || window.oCancelAnimationFrame || window.oCancelRequestAnimationFrame || window.clearTimeout);}If I want to make a game enclosed only in an exe file, would it be that helpful / would it work if the animation is written this way?