Skip to content

mlorencs/angular-snake

Repository files navigation

Angular Snake Game

This is a very simple Angular project that I have created in the process of learning Angular. There's probably many things wrong with this project. This project is a 2D Snake Game. There's a bug with movement that snake can eat itself by changing directions too quickly. There's also no speed increase when snake collects food to make the game more difficult.


This project was generated with Angular CLI version 11.2.12.


Available Scripts

Before running any scripts, make sure you have npm installed on your machine and have installed dependencies:

npm install


Runs the dev server. Naviagte to http://localhost:4200/. The app will automatically reload if you change any of the source files:

ng serve


Generates a new component (you can also use directive | pipe | service | class | guard | interface | enum | module):

ng generate component component-name


Builds the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build:

ng build


Executes the unit tests via Karma:

ng test


Executes the end-to-end tests via Protractor:

ng e2e


Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

About

A very simple 2D Snake Game built on Angular.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published