bp-space-invaders
v0.5.10
Published
The BP Space Invaders Game
Downloads
17
Maintainers
Readme
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
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
<bp-space-invaders></bp-space-invaders>