diff --git a/README.md b/README.md index ae5efe9..bd0a237 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ RoomJS 3.x Game Engine ====================== -[![Travis](https://img.shields.io/travis/doughsay/room.js.svg?style=flat-square)](https://travis-ci.org/doughsay/room.js) [![Code Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![Codecov](https://img.shields.io/codecov/c/github/doughsay/room.js.svg?style=flat-square)](https://codecov.io/gh/doughsay/room.js) [![David](https://img.shields.io/david/doughsay/room.js.svg?style=flat-square)](https://david-dm.org/doughsay/room.js) [![David](https://img.shields.io/david/dev/doughsay/room.js.svg?style=flat-square)](https://david-dm.org/doughsay/room.js?type=dev) +[![Travis](https://img.shields.io/travis/doughsay/room.js.svg?style=flat-square)](https://travis-ci.org/doughsay/room.js) [![Code Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com/) [![Codecov](https://img.shields.io/codecov/c/github/doughsay/room.js.svg?style=flat-square)](https://codecov.io/gh/doughsay/room.js) [![David](https://img.shields.io/david/doughsay/room.js.svg?style=flat-square)](https://david-dm.org/doughsay/room.js) [![David](https://img.shields.io/david/dev/doughsay/room.js.svg?style=flat-square)](https://david-dm.org/doughsay/room.js?type=dev) This repository contains the RoomJS game engine (or server). @@ -17,9 +17,9 @@ Clone the repository or download a ZIP archive. Installation steps are straightforward: -1. `npm install` +1. `yarn install` 2. Create a `.env` file to customize the server's configuration. See `.env.development` for examples and explanations. -3. `npm start` +3. `yarn start` To interact with the server, you must use a web client application. The standard [client](https://github.com/doughsay/room.js-client) is provided in a separate repository. diff --git a/demo/users.json b/demo/users.json index 5a7bc27..7d8e5c2 100644 --- a/demo/users.json +++ b/demo/users.json @@ -4,6 +4,6 @@ "password": "wqM8HoMtrWOi::U4lJqB1jJZDYZM1V8BUysXgH1WplZoKUWPqa8jTo::30::10000", "createdAt": "2016-09-17T17:58:43.527Z", "updatedAt": "2016-09-17T17:58:43.527Z", - "lastLoginAt": "2016-09-17T18:28:04.935Z" + "lastLoginAt": "2017-05-21T21:57:10.082Z" } } diff --git a/demo/world/lib/player/player.json b/demo/world/lib/player/player.json index 397ba9b..2fde343 100644 --- a/demo/world/lib/player/player.json +++ b/demo/world/lib/player/player.json @@ -15,16 +15,16 @@ "file": "announceSay.js" }, "chat": { - "verb": true, "file": "chat.js", + "verb": true, "pattern": "ch*at", "dobjarg": "any", "preparg": "any", "iobjarg": "any" }, "inventory": { - "verb": true, "file": "inventory.js", + "verb": true, "pattern": "i*nventory", "dobjarg": "none", "preparg": "none", @@ -43,8 +43,8 @@ "file": "renderPrompt.js" }, "say": { - "verb": true, "file": "say.js", + "verb": true, "pattern": "say \"", "dobjarg": "any", "preparg": "any", @@ -55,16 +55,16 @@ "file": "setMode.js" }, "who": { - "verb": true, "file": "who.js", + "verb": true, "pattern": "who", "dobjarg": "none", "preparg": "none", "iobjarg": "none" }, "readHelp": { - "verb": true, "file": "readHelp.js", + "verb": true, "pattern": "h*elp ?", "dobjarg": "any", "preparg": "none", diff --git a/demo/world/players/wizard/wizard.json b/demo/world/players/wizard/wizard.json new file mode 100644 index 0000000..fcde6d2 --- /dev/null +++ b/demo/world/players/wizard/wizard.json @@ -0,0 +1,20 @@ +{ + "name": "Wizard", + "aliases": [], + "traitIds": [ + "lib_player" + ], + "locationId": null, + "userId": "root", + "properties": { + "programmer": { + "value": true + }, + "previousLocation": { + "ref": "areas_city_southstreet1" + }, + "mode": { + "ref": "modes_playmode" + } + } +}