M tools/audio.js +2 -2
@@ 1,6 1,6 @@
"use strict"
-const fs = require('fs');
-const { checkTypes, toAsmHex } = require('./utils');
+const fs = require("fs");
+const { checkTypes, toAsmHex } = require("./utils");
class AudioTrack {
constructor(name) {
M tools/findaddr.js +1 -1
@@ 3,7 3,7 @@ if (process.argv.length < 4) {
process.exit(1);
}
-var fs = require('fs');
+var fs = require("fs");
var filename = process.argv[2];
fs.readFile(filename, "ascii", function(err, data) {
M tools/images.js +3 -3
@@ 1,7 1,7 @@
"use strict"
-const fs = require('fs');
-const PNG = require('png-js');
-const { checkTypes } = require('./utils');
+const fs = require("fs");
+const PNG = require("png-js");
+const { checkTypes } = require("./utils");
class Image {
constructor(width, height, palette) {
M tools/resources.js +7 -7
@@ 1,11 1,11 @@
"use strict"
-const fs = require('fs');
-const path = require('path');
-const { checkTypes } = require('./utils');
-const { TileMap, Tmx } = require('./tilemaps');
-const { Image, PNGLoader } = require('./images');
-const { Sprite, AsepriteSheet } = require('./sprites');
-const { AudioTrack, VGMLoader } = require('./audio');
+const fs = require("fs");
+const path = require("path");
+const { checkTypes } = require("./utils");
+const { TileMap, Tmx } = require("./tilemaps");
+const { Image, PNGLoader } = require("./images");
+const { Sprite, AsepriteSheet } = require("./sprites");
+const { AudioTrack, VGMLoader } = require("./audio");
async function main() {
if (process.argv.length < 3) {
M tools/sprites.js +4 -4
@@ 1,8 1,8 @@
"use strict"
-const fs = require('fs');
-const path = require('path');
-const { checkTypes } = require('./utils');
-const { Image, ImageSlice, PNGLoader } = require('./images');
+const fs = require("fs");
+const path = require("path");
+const { checkTypes } = require("./utils");
+const { Image, ImageSlice, PNGLoader } = require("./images");
class Sprite {
constructor(name, sheet) {
M tools/tilemaps.js +5 -5
@@ 1,9 1,9 @@
"use strict"
-const fs = require('fs');
-const path = require('path');
-const xml2js = require('xml2js');
-const { checkTypes } = require('./utils');
-const { Image, Palette, PNGLoader } = require('./images');
+const fs = require("fs");
+const path = require("path");
+const xml2js = require("xml2js");
+const { checkTypes } = require("./utils");
+const { Image, Palette, PNGLoader } = require("./images");
class TileMap {
constructor(name, width, height, tileSet) {