Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import { Phaser } from '../../../node_modules/phaser/build/phaser.min.js';
- @Component({
- selector: 'app-simple-game',
- templateUrl: 'simple-game.component.html',
- styleUrls: ['simple-game.component.less']
- })
- export class SimpleGameComponent implements OnInit {
- constructor() {
- this.game = new Phaser.Game(800, 600, Phaser.AUTO, 'content', { preload: this.preload, create: this.create });
- }
- ngOnInit() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement