nodePong/client/lib/npg_client.js

66 lines
917 B
JavaScript

/**
* @file NPGClient.js
* @author frtk
*/
var NPGClient = { 'version': '' };
NPGClient.NAMEMAXSIZE = 8;
NPGClient.userName = '';
// ui
NPGClient.CAN_W = 800;
NPGClient.CAN_H = 500;
NPGClient.CAN_COL = '#000000';
// counters
NPGClient.pageCount = -1;
// 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'
},
},
TITLE: {
'text': 'nodePong',
'x': 400,
'y': 150,
'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'
}
},
};