Skip to content
/ snake Public
forked from serkanyersen/snake

Tsickle in vanilla TS project example

Notifications You must be signed in to change notification settings

ikabirov/snake

 
 

Repository files navigation

Basic Snake Game written in TypeScript

Just for fun. It's written in vanilla js, no libraries used. Also it uses HTML elements to render the game instead of canvas.

Example

Demo

Controls

  • User arrow keys to move arround
  • G = Show Grid
  • C = No Clip Mode, go through self and walls
  • J = Slow down the snake
  • K = Speed up the snake
  • SPACE = Pause, Resume game
  • RETURN = start the game
  • 1 - 4 = Change levels
  • 0 remove level

Development

  • Checkout the project and CD into it
  • run npm install to get all dependencies
  • run npm run build to compile the app
  • run npm start to get the game running on your browser

About

Tsickle in vanilla TS project example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 75.6%
  • CSS 18.8%
  • JavaScript 5.6%