Add scrips to play easily and translate readme with GIFs
This commit is contained in:
parent
7582b76ee1
commit
90bde04df8
34
README.es.md
Normal file
34
README.es.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
node-games
|
||||||
|
==========
|
||||||
|
|
||||||
|
[English Version](README.md)
|
||||||
|
|
||||||
|
Algunos juegos de consola escritos en Node.
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i -g node-games
|
||||||
|
|
||||||
|
node-games
|
||||||
|
```
|
||||||
|
|
||||||
|
Sin instalar el juego globalmente:
|
||||||
|
```
|
||||||
|
npm start <juego> <idioma>
|
||||||
|
|
||||||
|
Ejemplo:
|
||||||
|
npm start snake es
|
||||||
|
|
||||||
|
(Si no se especifica el lenguage, por defecto se usa inglés)
|
||||||
|
```
|
||||||
|
|
||||||
|
spacecraft
|
||||||
|
----------
|
||||||
|
![spacecraft](spacecraft-es.gif)
|
||||||
|
|
||||||
|
snake
|
||||||
|
-----
|
||||||
|
![snake](snake-es.gif)
|
||||||
|
|
||||||
|
tanks
|
||||||
|
-----
|
||||||
|
![tanks](tanks-es.gif)
|
10
README.md
10
README.md
@ -1,6 +1,8 @@
|
|||||||
node-games
|
node-games
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
[Version en español](README.es.md)
|
||||||
|
|
||||||
Some fun console games written using Node.
|
Some fun console games written using Node.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -9,6 +11,14 @@ npm i -g node-games
|
|||||||
node-games
|
node-games
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Without installing node-games globally:
|
||||||
|
```
|
||||||
|
npm start <game> <language>
|
||||||
|
npm start snake es
|
||||||
|
|
||||||
|
(English will be default language if none is given)
|
||||||
|
```
|
||||||
|
|
||||||
spacecraft
|
spacecraft
|
||||||
----------
|
----------
|
||||||
![spacecraft](https://raw.githubusercontent.com/mdibaiee/node-games/master/spacecraft.gif)
|
![spacecraft](https://raw.githubusercontent.com/mdibaiee/node-games/master/spacecraft.gif)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "grunt && grunt copy",
|
"build": "grunt && grunt copy",
|
||||||
|
"start": "node index.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"bin": "index.js",
|
"bin": "index.js",
|
||||||
|
BIN
snake-es.gif
Normal file
BIN
snake-es.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
spacecraft-es.gif
Normal file
BIN
spacecraft-es.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
BIN
tanks-es.gif
Normal file
BIN
tanks-es.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Loading…
Reference in New Issue
Block a user