audio, etc
This commit is contained in:
parent
9d793a45ca
commit
3a90d633e3
BIN
dist/Tetris.ogg
vendored
Normal file
BIN
dist/Tetris.ogg
vendored
Normal file
Binary file not shown.
2
dist/tetrion.js
vendored
2
dist/tetrion.js
vendored
@ -1055,6 +1055,8 @@ Tetris.prototype = {
|
||||
_check: function() {
|
||||
var rows = checkFullRows(this.matrix);
|
||||
if (rows.length) {
|
||||
if(rows.length >= 4)
|
||||
new Audio('./dist/Tetris.ogg').play();
|
||||
removeRows(this.matrix, rows);
|
||||
var score = calcScore(rows);
|
||||
var reward = calcRewards(rows);
|
||||
|
@ -463,6 +463,8 @@ Tetris.prototype = {
|
||||
_check: function() {
|
||||
var rows = checkFullRows(this.matrix);
|
||||
if (rows.length) {
|
||||
if(rows.length >= 4)
|
||||
new Audio('./dist/Tetris.ogg').play();
|
||||
removeRows(this.matrix, rows);
|
||||
var score = calcScore(rows);
|
||||
var reward = calcRewards(rows);
|
||||
|
Loading…
Reference in New Issue
Block a user