Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/template-ts-angular2. Excalibur TypeScript, Angular2, and SystemJS template
Something went wrong. Try again.
12345678910111213141516171819202122import { Component, OnInit } from '@angular/core';import * as ex from 'excalibur';
@Component({ selector: 'my-app', template: '<canvas id="game"></canvas>'})export class AppComponent implements OnInit { constructor(){
} ngOnInit(){ var engine = new ex.Engine({ canvasElementId: "game", width: 100, height: 100 }); engine.start(); }
}