nodePong/client/lib/npg_client.js

66 lines
917 B
JavaScript
Raw Normal View History

2016-02-13 14:49:19 +01:00
/**
* @file NPGClient.js
* @author frtk
*/
var NPGClient = { 'version': '' };
2016-02-14 00:23:22 +01:00
NPGClient.NAMEMAXSIZE = 8;
NPGClient.userName = '';
2016-02-13 21:06:40 +01:00
// ui
NPGClient.CAN_W = 800;
NPGClient.CAN_H = 500;
NPGClient.CAN_COL = '#000000';
2016-02-14 00:23:22 +01:00
2016-02-13 21:06:40 +01:00
// counters
NPGClient.pageCount = -1;
2016-02-14 00:23:22 +01:00
// Login Page
NPGClient.LOGIN = {
SERVSTATUS: {
'text': {
'online' : 'server: online',
'offline' : 'server: offline',
},
'x': 400,
'y': 450,
'style': {
'font': '15px Lucida Console',
'col': '#FFFFFF',
'align': 'center'
},
},
2016-02-13 21:06:40 +01:00
TITLE: {
'text': 'nodePong',
2016-02-14 00:23:22 +01:00
'x': 400,
2016-02-13 21:06:40 +01:00
'y': 150,
2016-02-14 00:23:22 +01:00
'style': {
'font': '50px Lucida Console',
'col': '#FFFFFF',
'align': 'center'
}
},
INPUT: {
'text': 'enter a name: ',
'x': 400,
'y': 300,
'style': {
'font': '25px Lucida Console',
'col': '#FFFFFF',
'align': 'center'
}
},
};
2016-02-13 21:06:40 +01:00
2016-02-13 14:49:19 +01:00