UNPKG

bp-space-invaders

Version:
46 lines (31 loc) 857 B
# Space Invaders A fun retro version in Angular 8 of the arcade classic "Space Invaders". # How To Install `npm install bp-space-invaders` # How To Use In your app.module.ts file. There is one variable: isDebug: <true|false> In Production this should be run as "false" The game will not work without these parameters ```javascript import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { SpaceInvadersModule } from 'bp-space-invaders'; @NgModule({ declarations: [AppComponent], imports: [ BrowserModule, SpaceInvadersModule.forRoot({ isDebug: false }) ], bootstrap: [AppComponent] }) export class AppModule {}} ``` # How To Display In your app.component.html file ```html <bp-space-invaders></bp-space-invaders> ```