Skip to content

Commit b149b13

Browse files
committed
Merge pull request #1 from kidsil/patch-1
md should be calculated by scale
2 parents ddefe37 + eee13bf commit b149b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Block = function(game,x,y,type,color,scale){
2222

2323
};
2424

25-
var md = width/2;
25+
var md = (width * this.scale ) / 2;
2626

2727
Block.prototype = {
2828

@@ -386,4 +386,4 @@ Block.prototype = {
386386

387387

388388

389-
};
389+
};

0 commit comments

Comments
 (0)