fix garbled room output
This commit is contained in:
parent
42750c7dfe
commit
d887e1e8eb
|
@ -216,6 +216,8 @@ $(document).ready(function() {
|
|||
|
||||
// tiled output
|
||||
|
||||
room = [];
|
||||
|
||||
_.times(16, function(tileY) {
|
||||
_.times(16, function(tileX) {
|
||||
// make pseudo-tile from monochrome bitmap
|
||||
|
@ -256,11 +258,6 @@ $(document).ready(function() {
|
|||
imageData = document.getElementById("room-output").getContext('2d').getImageData(0, 0, 128, 128);
|
||||
rawData = imageData.data;
|
||||
|
||||
/* this seems to go 0-15 initially and then 0-16? ??
|
||||
_.each(room, function(row, tileY) {
|
||||
console.log(tileY);
|
||||
});
|
||||
*/
|
||||
_.each(room, function(row, tileY) {
|
||||
_.each(row, function(tileName, tileX) {
|
||||
if (_.get(bitsyData, 'tiles.' + tileName + '.bitmap')) {
|
||||
|
|
Loading…
Reference in New Issue