phaser/resources/Project Templates/RequireJS/src/main.js

22 lines
373 B
JavaScript
Raw Normal View History

(function () {
'use strict';
requirejs.config({
baseUrl: "src/",
paths: {
phaser: 'libs/phaser/phaser.min',
},
shim: {
'phaser': {
exports: 'Phaser'
}
}
});
require(['phaser', 'game'], function (Phaser, Game) {
var game = new Game();
game.start();
});
}());