fix stone movement
This commit is contained in:
parent
669d0b1a3b
commit
1d44821af8
@ -328,7 +328,7 @@ var Mine = function() {
|
|||||||
newMap[y-1][x+1] = '*';
|
newMap[y-1][x+1] = '*';
|
||||||
newMap[y][x] = ' ';
|
newMap[y][x] = ' ';
|
||||||
if ('R' == map[y-2][x+1]) this._crushed();
|
if ('R' == map[y-2][x+1]) this._crushed();
|
||||||
} else if ((below == '*') && ' ' == map[y-1][x-y] && ' ' == map[y][x-1]) {
|
} else if ((below == '*') && ' ' == map[y-1][x-1] && ' ' == map[y][x-1]) {
|
||||||
// fall left
|
// fall left
|
||||||
newMap[y-1][x-1] = '*';
|
newMap[y-1][x-1] = '*';
|
||||||
newMap[y][x] = ' ';
|
newMap[y][x] = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user