0.9.8 • Published 6 years ago

sheep-and-crocodile v0.9.8

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

sheep-and-crocodile

NPM version

Console game for nodejs about a sheep that runs away from a crocodile.

sheep-and-crocodile

Controls and rules

Use arrows or WSAD buttons to control a sheep (🐑).

Your goal is eat as much clovers (🍀) as you can.

Sheep eats clovers, crocodile (🐊) eats sheep. The crocodile will pursue the sheep until it is eaten by it.

By the way there are some random water on the map. A crocodile can swim, but a sheep does not.

You can exit game by Q button.

Install

You can install it by npm:

npm install -g sheep-and-crocodile

Game start

To start a game execute this in command line:

sheep_and_crocodile

or just:

sheepcroc

Params

--help

Prints rules and controls info.

--difficulty

You can choose difficulty by using this parameter (from 1 to 3):

sheep_and_crocodile --difficulty=1

By default difficulty is 1. The more value the harder to play (alias for 3 is 'nightmare').

--water

If you don't want water you can disable it this way:

sheep_and_crocodile --water=0

or just:

sheep_and_crocodile --no-water

--emoji

If you don't want emoji graphics you can disable it this way:

sheep_and_crocodile --emoji=0

or just:

sheep_and_crocodile --no-emoji

And you will see something like this:

sheep-and-crocodile simple graphics

Where:

  • \X< - crocodile;
  • @> - sheep;
  • ~% - clover;
  • vV - grass;
  • ~~ - water.
0.9.8

6 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago