Permalink
Browse files

Fix the colour issue

  • Loading branch information...
1 parent 5006042 commit 5ed276a4b664731b242d3d5f86844c85b0b3b2b9 @worzy worzy committed Oct 22, 2011
Showing with 3 additions and 5 deletions.
  1. +1 −3 public/tetromino.js
  2. +2 −2 public/view.js
View
@@ -35,9 +35,7 @@ Tetromino.prototype = {
};
Tetromino.tetrominos = [
- [[7,7,0],
- [0,7,7]]
-
+ [[1]]
];
Tetromino.getTetromino = function(num, rotation, x,y) {
View
@@ -51,7 +51,7 @@ TetrisView.prototype = {
e.preventDefault();
},
- wellColors: ['black', '#0000ff', '#ffa500', '#ffff00', '#00ff00', '#aa00ff', '#ff0000' ],
+ wellColors: ['black', '#0000ff' ],
draw: function() {
this.drawBlocks(this.game.well.blocks,0,0, false);
@@ -64,7 +64,7 @@ TetrisView.prototype = {
for(var i=0; i < blocks.length; i++) {
for(var j=0; j < blocks[i].length; j++) {
if (skipzero && !blocks[i][j]) continue;
-
+
this.ctx.fillStyle = this.wellColors[blocks[i][j]];
this.ctx.fillRect(blockSize*(x+j), blockSize*(y+i), blockSize-1, blockSize-1);
}

0 comments on commit 5ed276a

Please sign in to comment.