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.
Before running any scripts, make sure you have npm installed on your machine and have installed dependencies:
Runs the dev server. Naviagte to http://localhost:4200/
. The app will automatically reload if you change any of the source files:
Generates a new component (you can also use directive | pipe | service | class | guard | interface | enum | module
):
Builds the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build:
Executes the unit tests via Karma:
Executes the end-to-end tests via Protractor:
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.