UNPKG

ngx-snake

Version:

Snake game as an angular component, its only the core of the game... you need to add everything around it (controls, score...) yourself :)

13 lines (12 loc) 541 B
import { ElementRef, OnInit, Renderer2 } from '@angular/core'; import { TileState } from '../../definitions'; import * as i0 from "@angular/core"; export declare class TileComponent implements OnInit { el: ElementRef; private _renderer; state: TileState; constructor(el: ElementRef, _renderer: Renderer2); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TileComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "ngx-snake-tile", never, { "state": "state"; }, {}, never, never>; }