-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
client.js
43 lines (40 loc) · 905 Bytes
/
client.js
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
/**
*
* Reldens - config/config
*
* This is the main config file, please try not to modify this and create an .env file in your project root to setup all
* the variables you need to change.
*
*/
const Phaser = require('phaser');
const config = {
// @NOTE: the game server URL will be part of the configuration in the database.
// serverUrl: ''
type: Phaser.AUTO,
parent: 'reldens',
dom: {
createContainer: true
},
physics: {
default: 'arcade',
arcade: {
gravity: {
x: 0,
y: 0
},
debug: false
}
},
scale: {
parent: 'reldens',
mode: Phaser.Scale.FIT,
width: 500,
height: 500,
min: {
width: 300,
height: 500
},
autoCenter: Phaser.Scale.CENTER_BOTH
}
};
module.exports = config;