/SnakeGame-Angular5

🐍Snake game implemented in Angular 5

Primary LanguageTypeScript

SnakeGame-Angular5

Snake game implemented in Angular 5

Overview

snake

[![build-url][build-url-svg]][build-url] [![Dependencies][dependencies]][dependencies-url] [![Dev Dependencies][dev-dependencies]][dev-dependencies-url]

ngx-Snake is simple Snake arcade game implemented in Angular 5 (latest 5.0.0)

Controls

UP, DOWN, LEFT, RIGHT - to control snake

Setup

Note: Require Node 4+ together with Npm 3+, also be sure to install Angular-CLI (latest 1.5.0)

$ npm install -g @angular/cli@latest

Clone this repo in your favourite shell:

$ git clone https://github.com/jackottawa/SnakeGame-Angular5.git

Install the npm packages described in the package.json:

$ npm install

Transpile typescript into javascript, host the app and monitor the changes:

$ ng serve

Visit http://localhost:4200 and play!

TODO

  • Save Best Score
  • Multiple modes (in progress)
    • Classic
    • No Walls
    • Obstacles
    • Multiple Fruits
  • Update UI
    • Make it responsive
    • Introduce controls for mobile devices
  • Write tests
  • ...