0.1.1 • Published 3 years ago

@yigitsh/snakegame v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Snakegame

You can make Snake game in a simple way. Don't forget to review documentation to use the module. If you have any questions, you can come to the discord server.

Default Config

{
  "snake_head": "🟩",
  "snake_tail": "🟩",
  "background": "🟫",
  "food": "🥝",
  "width": 10,
  "height": 1
}

Example

Node

let SnakeGame = require("@yigitsh/snakegame").default;
SnakeGame = new SnakeGame();
// If you just want to edit certain settings, you can enter the name of the setting you want to edit and do it, you don't need to type the entire config directly there