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

23 lines
495 B
JavaScript
Raw Normal View History

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