phaser/resources/Project Templates/RequireJS/src/main.js
2014-11-25 00:24:28 +00:00

23 lines
No EOL
495 B
JavaScript

(function () {
'use strict';
requirejs.config({
baseUrl: "src/",
paths: {
// Edit the below path to point to where-ever you have placed the phaser.min.js file
phaser: 'libs/phaser/phaser.min'
},
shim: {
'phaser': {
exports: 'Phaser'
}
}
});
require(['phaser', 'game'], function (Phaser, Game) {
var game = new Game();
game.start();
});
}());