The TypeScript version has finally made it!
Favicons are provided by https://icons.iconarchive.com.
To get this project up and running on your local machine, follow these steps:
-
Clone the repository
git clone https://github.com/HasanMothaffar/Snake-TS.git
-
Install the required dependencies using yarn or npm
yarn install or npm install
-
Spin up a local development server either through webpack or VSCode's Liver Server extension
-
Enjoy the game!
In order to compile the source TypeScript and SCSS files into, run the following snippet in your terminal:
yarn run build
# or
npm run build
This will generate the dist
folder, which contains all the required files to run the project in the browser.
Note: You can also run yarn run watch
to compile files in watch mode.
-
Difficuly selection.
-
Mobile support! There's now a basic touch pad that simulates keyboard arrows.
-
Sound effects for when the snake eats a piece of food.