webxoss game logic
Find a file
2017-09-24 08:48:38 -05:00
webxoss-client@a9c999cfd2 💁🍱 update Korean UI translations 2017-08-31 10:43:45 +08:00
.gitignore fix bugs of renaming room 2017-05-23 18:30:53 +08:00
.gitmodules init before WX13 2016-10-23 13:56:45 +08:00
Callback.js init before WX13 2016-10-23 13:56:45 +08:00
Card.js 💩 coding card effects (WX17 green) 2017-09-19 21:55:28 -05:00
CardInfo.js 💩 apply reviews (WX17 white) 2017-09-24 08:48:38 -05:00
Client.js init before WX13 2016-10-23 13:56:45 +08:00
ConstEffect.js 🐛 fix const effect with wisdom 2017-08-21 03:25:17 +08:00
ConstEffectManager.js 🐛 fix not removing triggering effects when lose ability 2017-06-10 22:01:51 +08:00
dango.js 🐛 use strict in dango.js 2017-07-20 21:49:59 +08:00
debug.js init before WX13 2016-10-23 13:56:45 +08:00
Effect.js 🐛 fix wisdom comparison 2017-06-13 21:13:23 +08:00
EffectManager.js init before WX13 2016-10-23 13:56:45 +08:00
FakeSocket.js one-key oben game && select deck in Server page 2017-04-17 10:45:17 +08:00
Game.js 💩 coding card effects 2017-09-08 17:46:38 +08:00
index.html add ignore limiting 2017-04-17 23:55:29 +08:00
IO.js init before WX13 2016-10-23 13:56:45 +08:00
IO_Node.js init before WX13 2016-10-23 13:56:45 +08:00
Mask.js 🐛 fix warning when setting private data using const effect 2017-08-22 21:27:29 +08:00
nginx.conf init before WX13 2016-10-23 13:56:45 +08:00
package.json double sided resona 2016-10-25 18:15:39 +08:00
Phase.js 💫 implement WX16-002 lastTurnCoinSkillsDisabled 2017-06-09 20:24:35 +08:00
Player.js 💩 coding card effects 2017-09-08 17:46:38 +08:00
random.min.js init before WX13 2016-10-23 13:56:45 +08:00
README.md 📝 update README.md 2017-08-30 00:18:42 +08:00
Room.js init before WX13 2016-10-23 13:56:45 +08:00
RoomManager.js 🐛 fix colorless 2017-08-23 22:18:29 +08:00
socket.io.js init before WX13 2016-10-23 13:56:45 +08:00
test.js improve README.mdd 2017-04-17 23:55:29 +08:00
testHelper.js fix bug - only select one deck in testHelper 2017-05-14 20:19:48 +08:00
Timming.js init before WX13 2016-10-23 13:56:45 +08:00
util.js rename room by editing room name 2017-05-23 00:30:18 +08:00
Zone.js 🐛 fix moving trap when rearrange signis 2017-06-10 22:35:31 +08:00

WEBXOSS

Install

  1. Clone this project
git clone https://github.com/webxoss/webxoss-core.git --recurse-submodules
  1. Init / Update submodule
cd webxoss-core
git submodule update --init --recursive
  1. Download copyrighted images
cd webxoss-client
curl http://webxoss.com/images.tar | tar xv
cd -

Note:

  • The card images are copyrighted by Takara Tomy. NO BUSINESS USE.
  • If it's slow, you can replace webxoss.com with cloudflare.webxoss.com, incapsula.webxoss.com or hongkong.webxoss.com:8080 to use proxy.
  • Card images are compressed. Use webxoss-fetch to get raw images.
  1. Install dependencies
npm install

Run

WEBXOSS can be runned in 2 modes: node or browser.

Node mode

Use nodejs to create a WEBXOSS server over network.

# listen to 127.0.0.1:80
node test.js

Then open 127.0.0.1. That's it.

# or specify a port
node test.js port=8080

Browser mode

WEBXOSS server can be runned in a browser tab, typically for easier debugging.

In this case, nodejs isn't needed. Just serve this project using nginx, apache or anything else.

Then, open 127.0.0.1 (map to webxoss-core folder). The browser tab you just opened is a real WEBXOSS server. You can open console to see what's inside it.

Note:

  • The "server" and "client" tabs use postMessage to simulate network communications. So you can only play with yourself in a browser.
  • See this test guide for more test tricks.