Browse Source

Fixed tile assignments in NESNameTable

dev
Bryan Miller 5 years ago
parent
commit
1bfa8b6230
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/js/models/NESNameTable.js

+ 2
- 2
app/js/models/NESNameTable.js View File

@@ -186,8 +186,8 @@ export default class NESNameTable extends ISurface{
var _x = Math.floor(x % 8);
var _y = Math.floor(y % 8);

var tileX = Math.floor(x / 32);
var tileY = Math.floor(y / 32);
var tileX = Math.floor(x / 8);
var tileY = Math.floor(y / 8);

ci = this.__bank.rp[this.__tiles[(tileY * 32) + tileX]].getPixelIndex(_x, _y);
pi = this._PaletteFromCoords(x, y);

Loading…
Cancel
Save