Browse code

version v0.1.0

frtk authored on 13/02/2016 14:01:43
Showing 4 changed files
... ...
@@ -1,29 +1,29 @@
1 1
 /**
2
- * @file nodePong.js
2
+ * @file npg_app.js
3 3
  * @author frtk
4 4
  */
5 5
 
6 6
 
7
-/*
7
+/**
8 8
  * nodejs modules
9 9
  */
10 10
 //--- 
11 11
 var fs = require('fs');
12 12
 var express = require('express');
13 13
 var http = require('http');
14
-//--- server app libs & params
15
-//var servP = require('./server/server_config.js');  
16
-var npg = require('./server/server_core.js');
17
-//--- nodePong config
18
-var cfg = require('./server/server_config.js');
19 14
 
20 15
 
21
-//
16
+/**
17
+ * npg server 
18
+ */
19
+//---
20
+var cfg = require('./server/npg_server_config.js');
21
+var npg = require('./server/npg_server.js');
22 22
 npg.NPGServer.init(cfg.Config);
23 23
 
24 24
 
25
-/*
26
- * starting HTTP and socket.io services
25
+/**
26
+ * HTTP
27 27
  */
28 28
 //--- HTTP server
29 29
 npg.NPGServer.log("$ # starting http service on port " + npg.NPGServer.port);
... ...
@@ -33,18 +33,21 @@ httpserv.listen(npg.NPGServer.port);
33 33
 //--- allow access to static files from "/client" directory
34 34
 app.use(express.static(__dirname + '/client/'));
35 35
 
36
+
37
+/**
38
+ * socket.io
39
+ */
36 40
 //--- socket.io
37 41
 npg.NPGServer.log('$ # registering socket.io service on port ' + npg.NPGServer.port);  
38 42
 var io = require('socket.io').listen(httpserv, { log: true } );
39 43
 //-- setup server socket handling features
40 44
 npg.NPGServer.socketHandling(io);
41
-//
42 45
 npg.NPGServer.log('$ #####');
43 46
 
44 47
 
45 48
 
46
-/*
47
- * running nodePong server
49
+/**
50
+ * run app
48 51
  */
49 52
 //---
50 53
 
... ...
@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "npg_app.js",
3
-  "version": "0.0.9",
3
+  "version": "0.1.0",
4 4
   "description": "Multiplayer online Pong Game using nodejs and socket.io",
5 5
   "directories": {
6 6
     "server": "server",
... ...
@@ -4,7 +4,7 @@
4 4
  */
5 5
 
6 6
 var Config = {
7
-  VERSION : '0.0.8',
7
+  VERSION : '0.1.0',
8 8
   HTTP: {
9 9
     host: '127.0.0.1',
10 10
     port: 8042
... ...
@@ -1,4 +1,13 @@
1 1
 
2
+
3
+### **v0.1.0:**
4
+-------------------------- 
5
+focus: app
6
+-------------------------- 
7
+- updated npg_app.js
8
+
9
+
10
+
2 11
 ### **v0.0.9:**
3 12
 -------------------------- focus: renaming files/directories
4 13
 ---- App