mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
webxoss game logic
webxoss-client@81a74dfdc8 | ||
.gitignore | ||
.gitmodules | ||
archive.js | ||
Callback.js | ||
Card.js | ||
CardInfo.js | ||
Client.js | ||
ConstEffect.js | ||
ConstEffectManager.js | ||
dango.js | ||
debug.js | ||
Effect.js | ||
EffectManager.js | ||
FakeSocket.js | ||
Game.js | ||
index.html | ||
IO.js | ||
IO_Node.js | ||
Mask.js | ||
nginx.conf | ||
package.json | ||
Phase.js | ||
Phase_backup.js | ||
Player.js | ||
random.min.js | ||
README.md | ||
Room.js | ||
RoomManager.js | ||
socket.io.js | ||
test.js | ||
testHelper.js | ||
Timming.js | ||
util.js | ||
Zone.js |
WEBXOSS
Install
-
Clone this project
-
Init / Update submodule
git submodule init
git submodule update
- 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
withcloudflare.webxoss.com
,incapsula.webxoss.com
orhongkong.webxoss.com:8080
to use proxy. - Card images are compressed. Use webxoss-fetch to get raw images.
- 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 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.