Added phaser build and hellophaser sample
This commit is contained in:
22
resources/Project Templates/RequireJS/src/main.js
Normal file
22
resources/Project Templates/RequireJS/src/main.js
Normal file
@@ -0,0 +1,22 @@
|
||||
(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();
|
||||
});
|
||||
}());
|
||||
Reference in New Issue
Block a user