diff --git a/src/ppu.js b/src/ppu.js index 7045cae..b4d71ef 100644 --- a/src/ppu.js +++ b/src/ppu.js @@ -1225,18 +1225,20 @@ PPU.prototype = { if (toffset < 8) { // first half of sprite. - t = this.ptTile[ - this.sprTile[0] + - (this.vertFlip[0] ? 1 : 0) + - ((this.sprTile[0] & 1) !== 0 ? 255 : 0) - ]; + t = + this.ptTile[ + this.sprTile[0] + + (this.vertFlip[0] ? 1 : 0) + + ((this.sprTile[0] & 1) !== 0 ? 255 : 0) + ]; } else { // second half of sprite. - t = this.ptTile[ - this.sprTile[0] + - (this.vertFlip[0] ? 0 : 1) + - ((this.sprTile[0] & 1) !== 0 ? 255 : 0) - ]; + t = + this.ptTile[ + this.sprTile[0] + + (this.vertFlip[0] ? 0 : 1) + + ((this.sprTile[0] & 1) !== 0 ? 255 : 0) + ]; if (this.vertFlip[0]) { toffset = 15 - toffset; } else { diff --git a/yarn.lock b/yarn.lock index 90a1d63..6532b79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2210,8 +2210,8 @@ prettier-check@^2.0.0: execa "^0.6.0" prettier@^2.0.5: - version "2.2.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + version "2.4.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c" process-nextick-args@~1.0.6: version "1.0.7"