mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 12:33:38 +00:00
23 lines
No EOL
495 B
JavaScript
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();
|
|
});
|
|
}()); |