webxoss game logic
Find a file
WEBXOSS bc10f92e0b fix WX12-047 WX12-048
Bugs:
    * Do not solve when turn end even if attacked
    * Keep `attackCount` when turn end

  Reason:
    * `fieldData.attackCount++` cause `NaN` (`undefined` + 1)
    * Save turn limited `attackCount` on `fieldData`

  Fix:
    * Take care of `attackCount++`
    * Use `fieldTurnData` instead of `fieldData`
2017-02-09 21:31:38 +08:00
webxoss-client@f45004945e Update version 2016-12-30 14:55:46 +08:00
.gitignore double sided resona 2016-10-25 18:15:39 +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 fix WX12-047 WX12-048 2017-02-09 21:31:38 +08:00
CardInfo.js fix WX12-047 WX12-048 2017-02-09 21:31:38 +08:00
Client.js init before WX13 2016-10-23 13:56:45 +08:00
ConstEffect.js add WX14 2016-12-01 01:16:57 +08:00
ConstEffectManager.js prepare for WX14 test 2016-12-01 23:55:42 +08:00
debug.js init before WX13 2016-10-23 13:56:45 +08:00
Effect.js init before WX13 2016-10-23 13:56:45 +08:00
EffectManager.js init before WX13 2016-10-23 13:56:45 +08:00
FakeSocket.js init before WX13 2016-10-23 13:56:45 +08:00
Game.js Fix mayu's room 2016-12-10 14:30:37 +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 prepare for WX14 test 2016-12-01 23:55:42 +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 fix WX12-047 WX12-048 2017-02-09 21:31:38 +08:00
Phase_backup.js init before WX13 2016-10-23 13:56:45 +08:00
Player.js Fix player.damageAsyn 2016-12-30 14:52:58 +08:00
random.min.js init before WX13 2016-10-23 13:56:45 +08:00
README.md add README.md 2017-01-09 16:13:40 +08:00
Room.js init before WX13 2016-10-23 13:56:45 +08:00
RoomManager.js Update version 2016-12-30 14:55:46 +08:00
socket.io.js init before WX13 2016-10-23 13:56:45 +08:00
test.html handle CardInfo for translation 2016-11-07 23:15:34 +08:00
test.js Fix mayu's room 2016-12-10 14:30:37 +08:00
Timming.js init before WX13 2016-10-23 13:56:45 +08:00
util.js init before WX13 2016-10-23 13:56:45 +08:00
Zone.js Fix WX14-006A WX14-006B WX14-024 WX14-027 moveTop/Bottom 2016-12-13 10:56:04 +08:00

WEBXOSS

Install

  1. Clone this project

  2. Init / Update submodule

git submodule init
git submodule update
  1. Download copyrighted images
cd webxoss-client
curl http://webxoss.com/images.tar | tar xv

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

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

Then open localhost. That's it.

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 http://localhost/path/to/your/project/test.html. 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.