The game server currently runs on nodejs v0.4.7 (but should run fine on the latest stable as well) and requires the latest versions of the following npm libraries:
![]()
Note: This version of BrowserQuest is an extended version of the original version. We have extended the original game with player level system, PvP fights, native achievements and more languages, so the game feels a little bit longer. You can find the source code of the app by starting the app. Then tap 'Credits'. Platinum armor is a stronger alternative to Gold armor.It takes a total of 90 Platinum Bars to craft a full suit. This adds up to 360 Platinum Ore for the full set of Platinum Armor. It is also the strongest set that is made from ore which can be mined from the start (with a Copper Pickaxe). It consists of a Platinum Helmet, Platinum Chainmail and Platinum Greaves.
![]()
All of them can be installed via
npm install -d (this will install a local copy of all the dependencies in the node_modules directory)
Configuration
The server settings (number of worlds, number of players per world, etc.) can be configured.Copy
config_local.json-dist to a new config_local.json file, then edit it. The server will override default settings with this file.
Deployment
In order to deploy the server, simply copy the
server and shared directories to the staging/production server.
Then run
node server/js/main.js in order to start the server.
Note: the
shared directory is the only one in the project which is a server dependency.
Monitoring
The server has a status URL which can be used as a health check or simply as a way to monitor player population.
Send a GET request to:
http://[host]:[port]/status
It will return a JSON array containing the number of players in all instanced worlds on this game server.
![]() Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |