GithubHelp home page GithubHelp logo

wmserver's Introduction

未名世界

未名世界是一个基于LBS的移动网络游戏,这是它的后台部分。 using pomelo and NodeJS.

###配置

  • 安装node.js(>=0.8),推荐使用nvm(node version manager)安装。
  • 使用npm安装pomelo(0.4),npm install pomelo -g
  • 在项目文件夹下使用sh npm-install.sh命令进行依赖包安装。

###运行

在game-server文件夹下使用pomelo start命令启动服务器。

###数据生成(seeding)

在shared文件夹下依次运行node seeds.jsnode seeds-mission.js即可

###测试

使用web版的简单客户端可以进行测试,进入web-server文件夹下运行node app.js可以开启web服务器,访问http://0.0.0.0:3001即可进行功能测试,并且附带有部分自动化单元测试。

###更改设置

在进行以上操作时,有可能涉及到对服务器端口、地址的修改。对于game-server,都可以在game-server/config/servers.json下面找到。对于web-server,可以在web-server/public/js/client.js下面找到相应的修改位置。

wmserver's People

Contributors

huxiuhan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zj8487 iofcas

wmserver's Issues

完成对地图、任务地点的设计

上次会议已经说明了,可以在snn的协助下,将任务地图(将不同任务地点染色、然后生成JSON数据)设计好。

生产的JSON数据格式:

{
  areas: [{
    id: Integer,
    name: String,
    points: [{x: Integer, y:Integer}, ...]
  }, ...],
  missions: [{
    id: Integer,
    name: String,
    description: String,
    areaId: Integer
  }, ...]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.