-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
94 lines (79 loc) · 2.25 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "diep.io-clone",
"version": "0.2.0",
"dependencies": {
"protobufjs": "5.0.1",
"seedrandom": "latest",
"socket.io-client": "latest",
"socket.io": "latest",
"victor": "latest"
},
"devDependencies": {
"browserify": "12.0.0",
"jshint": "latest",
"uglify-js": "latest"
},
"engines": {
"node": ">=4.6.0"
},
"jshintConfig": {
"curly": true,
"laxbreak": true,
"strict": true,
"undef": true,
"unused": true,
"predef": [
"alert",
"console",
"document",
"module",
"PIXI",
"require",
"window"
]
},
"scripts": {
"lint": "jshint modules/*.js view/*.js app/*.js",
"config": "python cfg/conv2js.py --excel_file=cfg/config.xlsx --output_path=cfg/ --skip_rows=1",
"proto": "pbjs proto/tank.proto -t json > www/tank.proto.json",
"debug": "browserify app/client.js > www/index.js",
"predebug": "npm run lint && npm run config && npm run proto",
"postdebug": "node --debug app/server.js",
"release": "browserify app/client.js | uglifyjs -mc > www/index.js",
"prerelease": "npm run lint && npm run proto",
"postrelease": "node app/server.js",
"replay": "node app/replay.js $RECORD"
},
"private": true,
"app": {
"domain": "tank.gaccob.com",
"port": 9000,
"proto": "tank.proto.json",
"logLevel": 1,
"world": {
"frame": 30,
"unitCollideCheckIntervalFrames": 15,
"clientSyncRotationIntervalFrames": 2,
"clientSyncForceIntervalFrames": 2,
"h": 2048,
"w": 2048,
"cw": 800,
"ch": 640,
"gridSize": 128,
"maxOnline": 30,
"initTank": 101,
"aiMaxCount": 0,
"obstacleMaxCount": 0,
"obstacleRegion": {
"wRatio": 0.92,
"hRatio": 0.92
}
},
"dieAnimation": {
"scaleIncrease": 0.1,
"alphaStart": 0.4,
"alphaEnd": 0.1,
"alphaDecrease": 0.1
}
}
}