zoukankan      html  css  js  c++  java
  • 部署 mozilla-BrowserQuest

    1,到GitHub下载代码  https://github.com/mozilla/BrowserQuest

    2,安装Node.Js 下载地址 http://nodejs.org/ 直接下载安装版就可以,

    3,安装   npm libraries ,

    image

    分别执行:

    npm install underscore
    npm install log
    npm install bison
    npm install websocket
    npm install websocket-server
    npm install sanitizer

    npm install  memcache

     

    结果如下:

    image

     

    4, 将 Node.exe 复制到 BrowserQuest-master 的要目录,

    如下。

    image

     

    5, 执行 node server/js/main.js

     

    6,启动起来了以后。

    image

     

    客户端配置开始了。

    1,将 clientconfig 下 文件 config_local.json-dist 改名为 config_local.json

                                          config_build.json-dist    改名为 config_build.json

     

    2,并修改config_local.json 如下:

    {
        "host": "localhost",
        "port": 8000,
        "dispatcher": false
    }

      config_build.json-dist   内容如下:

     

    {
        "host": "localhost",
        "port": 8000
    }

     

     

    3,新建一个VS.net 空项目。

    在Web.Config 加入

    <system.webServer>
      <staticContent>
        <mimeMap fileExtension=".json" mimeType="application/x-javascript" />
      </staticContent>
    </system.webServer>

     

    允许 使用.json文件。

     

    4,将 Client及Shared文件复制过去。

    image

     

    5,运行。 现在可以拿这个游戏出去装 A+1 了。

     

    image

  • 相关阅读:
    hibernateValidator 升级
    java异常
    reids过期键三种删除策略
    hashmap源码探究
    http知识梳理1
    GregorianCalendar类的使用
    计算机网络笔记
    List的toArray方法
    实习周记一
    vue指令详解
  • 原文地址:https://www.cnblogs.com/zbw911/p/3788137.html
Copyright © 2011-2022 走看看