├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE.md ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── appveyor.yml ├── assets ├── client │ ├── debug.html │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ ├── index.html │ ├── logo.txt │ └── styles │ │ └── main.css └── server │ ├── perlinNoise.ts │ ├── randomWalkMapWithPerlin.ts │ └── testMap.txt ├── package.json ├── src ├── client │ ├── client.ts │ ├── clientSpec.ts │ ├── debug.ts │ └── debugSpec.ts ├── context │ ├── context.ts │ ├── contextSpec.ts │ ├── game.ts │ ├── gameSpec.ts │ ├── lobby.ts │ └── lobbySpec.ts ├── game │ ├── actions.ts │ ├── actionsSpec.ts │ ├── animal.ts │ ├── animalSpec.ts │ ├── character.ts │ ├── characterSpec.ts │ ├── entity.ts │ ├── inventory.ts │ ├── inventorySpec.ts │ ├── items │ │ ├── book.ts │ │ ├── campSupplies.ts │ │ ├── ingestible.ts │ │ ├── ingestibleSpec.ts │ │ ├── item.ts │ │ ├── itemCreator.ts │ │ ├── itemName.ts │ │ ├── itemNameSpec.ts │ │ ├── itemSpec.ts │ │ ├── weapon.ts │ │ └── weaponSpec.ts │ ├── map │ │ ├── cell.ts │ │ ├── cellSpec.ts │ │ ├── characterMap.ts │ │ ├── characterMapSpec.ts │ │ ├── describeRoom.ts │ │ ├── grid.ts │ │ ├── map.ts │ │ ├── parseGrid.ts │ │ └── parseGridSpec.ts │ ├── messaging.ts │ ├── messagingSpec.ts │ ├── player.ts │ ├── playerSpec.ts │ └── stats.ts ├── helpers.ts ├── helpersSpec.ts ├── logger.ts ├── main.ts ├── mainSpec.ts ├── rng.ts ├── server │ ├── server.ts │ └── serverSpec.ts ├── socket.ts └── test.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/LICENSE.md -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/appveyor.yml -------------------------------------------------------------------------------- /assets/client/debug.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/debug.html -------------------------------------------------------------------------------- /assets/client/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/favicon-16x16.png -------------------------------------------------------------------------------- /assets/client/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/favicon-32x32.png -------------------------------------------------------------------------------- /assets/client/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/favicon.ico -------------------------------------------------------------------------------- /assets/client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/index.html -------------------------------------------------------------------------------- /assets/client/logo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/logo.txt -------------------------------------------------------------------------------- /assets/client/styles/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/client/styles/main.css -------------------------------------------------------------------------------- /assets/server/perlinNoise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/server/perlinNoise.ts -------------------------------------------------------------------------------- /assets/server/randomWalkMapWithPerlin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/assets/server/randomWalkMapWithPerlin.ts -------------------------------------------------------------------------------- /assets/server/testMap.txt: -------------------------------------------------------------------------------- 1 | 2 2 2 | X##^ 3 | _^#_ 4 | #___ 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/package.json -------------------------------------------------------------------------------- /src/client/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/client/client.ts -------------------------------------------------------------------------------- /src/client/clientSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/client/clientSpec.ts -------------------------------------------------------------------------------- /src/client/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/client/debug.ts -------------------------------------------------------------------------------- /src/client/debugSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/client/debugSpec.ts -------------------------------------------------------------------------------- /src/context/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/context.ts -------------------------------------------------------------------------------- /src/context/contextSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/contextSpec.ts -------------------------------------------------------------------------------- /src/context/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/game.ts -------------------------------------------------------------------------------- /src/context/gameSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/gameSpec.ts -------------------------------------------------------------------------------- /src/context/lobby.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/lobby.ts -------------------------------------------------------------------------------- /src/context/lobbySpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/context/lobbySpec.ts -------------------------------------------------------------------------------- /src/game/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/actions.ts -------------------------------------------------------------------------------- /src/game/actionsSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/actionsSpec.ts -------------------------------------------------------------------------------- /src/game/animal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/animal.ts -------------------------------------------------------------------------------- /src/game/animalSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/animalSpec.ts -------------------------------------------------------------------------------- /src/game/character.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/character.ts -------------------------------------------------------------------------------- /src/game/characterSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/characterSpec.ts -------------------------------------------------------------------------------- /src/game/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/entity.ts -------------------------------------------------------------------------------- /src/game/inventory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/inventory.ts -------------------------------------------------------------------------------- /src/game/inventorySpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/inventorySpec.ts -------------------------------------------------------------------------------- /src/game/items/book.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/book.ts -------------------------------------------------------------------------------- /src/game/items/campSupplies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/campSupplies.ts -------------------------------------------------------------------------------- /src/game/items/ingestible.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/ingestible.ts -------------------------------------------------------------------------------- /src/game/items/ingestibleSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/ingestibleSpec.ts -------------------------------------------------------------------------------- /src/game/items/item.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/item.ts -------------------------------------------------------------------------------- /src/game/items/itemCreator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/itemCreator.ts -------------------------------------------------------------------------------- /src/game/items/itemName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/itemName.ts -------------------------------------------------------------------------------- /src/game/items/itemNameSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/itemNameSpec.ts -------------------------------------------------------------------------------- /src/game/items/itemSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/itemSpec.ts -------------------------------------------------------------------------------- /src/game/items/weapon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/weapon.ts -------------------------------------------------------------------------------- /src/game/items/weaponSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/items/weaponSpec.ts -------------------------------------------------------------------------------- /src/game/map/cell.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/cell.ts -------------------------------------------------------------------------------- /src/game/map/cellSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/cellSpec.ts -------------------------------------------------------------------------------- /src/game/map/characterMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/characterMap.ts -------------------------------------------------------------------------------- /src/game/map/characterMapSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/characterMapSpec.ts -------------------------------------------------------------------------------- /src/game/map/describeRoom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/describeRoom.ts -------------------------------------------------------------------------------- /src/game/map/grid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/grid.ts -------------------------------------------------------------------------------- /src/game/map/map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/map.ts -------------------------------------------------------------------------------- /src/game/map/parseGrid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/parseGrid.ts -------------------------------------------------------------------------------- /src/game/map/parseGridSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/map/parseGridSpec.ts -------------------------------------------------------------------------------- /src/game/messaging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/messaging.ts -------------------------------------------------------------------------------- /src/game/messagingSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/messagingSpec.ts -------------------------------------------------------------------------------- /src/game/player.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/player.ts -------------------------------------------------------------------------------- /src/game/playerSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/playerSpec.ts -------------------------------------------------------------------------------- /src/game/stats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/game/stats.ts -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/helpersSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/helpersSpec.ts -------------------------------------------------------------------------------- /src/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/logger.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/mainSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/mainSpec.ts -------------------------------------------------------------------------------- /src/rng.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/rng.ts -------------------------------------------------------------------------------- /src/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/server/server.ts -------------------------------------------------------------------------------- /src/server/serverSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/server/serverSpec.ts -------------------------------------------------------------------------------- /src/socket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/socket.ts -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/src/test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LOZORD/xanadu/HEAD/tslint.json --------------------------------------------------------------------------------