mirror of
https://github.com/photonstorm/phaser
synced 2025-01-27 20:35:15 +00:00
22 lines
373 B
JavaScript
22 lines
373 B
JavaScript
|
(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();
|
||
|
});
|
||
|
}());
|