Hi,
I was wondering how you upgrade Phaser (and other frameworks) version in XDK.
Since XDK includes all sources when creating a new project, how do you make XDK create new Phaser projects with a newer version ?
Thank you.
链接已复制
This post might help > https://software.intel.com/en-us/forums/intel-xdk/topic/629285#comment-1871814 <
Thank you Paul,
I tried the workaround presented in that post:
//initiate the Phaser framework
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'divgame');
game.state.add('GameState', GameState);
game.state.start('GameState');
//--BEGIN-- WORKAROUND
function onPause() {
if(!game.paused) {
game.gamePaused();
}
}
function onResume() {
setTimeout(function() {
if(game.paused) {
game.gameResumed();
}
}, 0);
}
document.addEventListener('pause', onPause, false);
document.addEventListener('resume', onResume, false);
//--END--
My main.js file has the same structure of the "phaser+ cordova pet tutorial". I'm working with that files of the tutorial.
If I change from Phaser 2.1.2 to 2.5 it stops rendering the game.
If you have a different approach, please let me know.
Thanks in advance,
Elvis