Giter Club home page Giter Club logo

landlord's Introduction

landlord

Web在线斗地主游戏

游戏大概样式

游戏概况

游戏运行

1.映射前端目录

如果是mac自带的的apache

sudo ln -s ${绝对路径}/html /Library/WebServer/Documents/${目录名}/

其实就是能通过WebServer的方式访问到html下的index.html即可 注意,这里前端的端口号,不要和gameserver的一样(gameserver的在default.json中配置)

2.修改访问地址和端口

vim config/default.json

自己配置端口和访问地址

3.前端构建

cd html/js
npm install
npm run dev

构建出dev代码

4.启动server

只支持mac os或者linux,windows暂不支持

直接启动

cd server
./server.out

重新编译

cd server
rm server.out
make
./server.out

必须用clang构建

5.设备访问到index.html即可

Webassembly构建

默认已经编译好了wasm文件,html目录下puke.out.js和puke.out.wasm文件 如果想修改或者重新编译(依赖emscripten sdk)

cd assembly
emmake make

landlord's People

Contributors

vorshen avatar

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.