For personal study, @swancai and I completed a snake game written only in Typescript.
- Open https://bluespaceteam.github.io/snake-ts/dist/, it starts as soon as the page loads.
- Use the
arrow keys
to control/accelerate the moving direction of the snake. - After the game is over, press
Enter/Space
to restart the game, and pressEsc
to cancel the popup. - The default width of the game is
320px
and the height is320px
, and the game is upgraded by1
level every10
minutes, up to10
levels. Can be set inconstant.ts
.
MIT © 2022 - Present @BlueSpaceTeam