Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import { Component, OnInit } from '@angular/core';
  2. import { Phaser } from '../../../node_modules/phaser/build/phaser.min.js';
  3.  
  4. @Component({
  5. selector: 'app-simple-game',
  6. templateUrl: 'simple-game.component.html',
  7. styleUrls: ['simple-game.component.less']
  8. })
  9. export class SimpleGameComponent implements OnInit {
  10.  
  11. constructor() {
  12. this.game = new Phaser.Game(800, 600, Phaser.AUTO, 'content', { preload: this.preload, create: this.create });
  13. }
  14.  
  15. ngOnInit() {
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement