Permalink
Browse files

-

  • Loading branch information...
1 parent e939a1a commit 4637d0741a4c1062091a1579bfaed61b2506172b @worzy worzy committed Oct 23, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −0 public/javascripts/view.js
  2. +0 −2 views/index.html
@@ -61,6 +61,10 @@ TetrisView.prototype = {
drawBlocks: function(blocks, x,y, skipzero) {
var blockSize=this.blockSize;
+ blocks = socket.emit('getState');
+
+ console.log(blocks);
+
for(var i=0; i < blocks.length; i++) {
for(var j=0; j < blocks[i].length; j++) {
if (skipzero && !blocks[i][j]) continue;
View
@@ -10,8 +10,6 @@
</style>
<body>
<canvas width="200" height="400"></canvas>
-<canvas width="100" height="200"></canvas>
-<canvas width="40" height="80"></canvas>
<script>
</script>

0 comments on commit 4637d07

Please sign in to comment.