Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import {CFG as config} from './config.js';
  2.  
  3. // Scenes
  4. import {LoadingScene} from './scenes/loading.js';
  5. import {AttractScene} from './scenes/attract.js';
  6. import {GameScene} from './scenes/game.js';
  7.  
  8. // Classes / Plugins
  9. import {CardClass} from './calsses/Card.js';
  10. //import {ButtonClass} from './calsses/Button.js';
  11.  
  12. var GreywaterGame = new Phaser.Game({
  13.         type: config.type,
  14.         width : config.width,
  15.         height : config.height,
  16.         background: '#ffffff',
  17.         scene : [
  18.                 LoadingScene,
  19.                 AttractScene,
  20.                 GameScene,
  21.         ],
  22.         plugins: {
  23.                 global : [
  24.                         {key: 'CardPlugin', plugin: CardClass, start: true},
  25.                         //{key: 'ButtonPlugin', plugin: ButtonClass, start: true},
  26.                 ]
  27.         }
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement