serkanyersen / snake

Basic Snake Game in TypeScript

Home Page:https://serkanyersen.github.io/snake/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 around
  • 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 build the app
  • run npm run dev to get the game running on your browser

About

Basic Snake Game in TypeScript

https://serkanyersen.github.io/snake/


Languages

Language:TypeScript 69.4%Language:CSS 22.7%Language:JavaScript 5.9%Language:HTML 1.9%