UNPKG

bp-prism-game

Version:
50 lines (35 loc) 1.02 kB
# Prism This is a fun "alien creep" game in angular 8. # How To Install npm install bp-prism-game # How To Import In your app.module.ts file. There are two variables: isDebug: <true|false> In Production this should be run as "false" addExtraScenery: <true|false> If true, the game will add extra scenery to fill in paths 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 { PrismModule } from 'bp-prism-game'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @NgModule({ declarations: [AppComponent], imports: [ BrowserModule, BrowserAnimationsModule, PrismModule.forRoot({ isDebug: false, addExtraScenery: true } as any) ], bootstrap: [AppComponent] }) export class AppModule {} ``` # How To Display In your app.component.html file ```html <bp-prism-game></bp-prism-game> ```