Skip to content

Commit

Permalink
Add comments and include license info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Johnson committed Aug 9, 2017
1 parent 8501bba commit 3e8a212
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
11 changes: 2 additions & 9 deletions client/js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* TODO
* Add leave lobby button.
* How to play.
*/

/* global io */
Expand Down Expand Up @@ -528,6 +527,7 @@ $(function() {
c.fillText(winner.score, x, score_y);
}

// Show background grid on splash screen.
function drawSplash() {
if(c !== undefined && splash) {
// Clear canvas.
Expand All @@ -540,6 +540,7 @@ $(function() {
window.requestAnimationFrame(drawSplash);
}

// Fill background grid on splash.
function fillGridSplash() {
var c_width = canvas.width;
var c_height = canvas.height;
Expand All @@ -565,14 +566,6 @@ $(function() {

c.strokeStyle = '#000';
c.lineWidth = 8;
// players.forEach(function(player) {
// var rel_x = player.x - view_x;
// var rel_y = player.y - view_y;
// var x = rel_x * gap_w + Math.ceil(c.lineWidth / 2) + 1;
// var y = rel_y * gap_h + Math.ceil(c.lineWidth / 2) + 1;
// c.strokeRect(x, y, gap_w - 2 * (Math.ceil(c.lineWidth / 2) + 1),
// gap_h - 2 * (Math.ceil(c.lineWidth / 2) + 1));
// });
}
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"express": "^4.15.3",
"socket.io": "^2.0.1"
},
"author": "Jordan Johnson"
"author": "Jordan Johnson",
"license": "MIT"
}
2 changes: 0 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* TODO
* Check for host leaving a lobby.
* Add leave lobby functionality.
* Add start game functionality.
*/

var express = require('express');
Expand Down

0 comments on commit 3e8a212

Please sign in to comment.