mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-12-03 05:10:04 +01:00
Fix sprite compiler
This commit is contained in:
1 parent
e353286032
commit
a3391e6f1e
2 files changed
+3
-3
No files matched your search
@@ -984,7 +984,7 @@ function createSpritesTS(dest: string, config: SpriteTSConfig) {
|
||||
const { objects, objects2 } = config.result;
|
||||
|
||||
let ts = fs.readFileSync(path.join(rootPath, 'src', 'ts', 'tools', 'sprites-template.ts'), 'utf8');
|
||||
ts = ts.replace(/export \{[\s\S]*?\};\r?\n?/, '');
|
||||
//ts = ts.replace(/export \{[\s\S]*?\};\r?\n?/, '');
|
||||
ts = ts.replace('/*SPRITE_SHEET*/', `images/${config.spriteFileName}`);
|
||||
ts = ts.replace('/*SPRITE_SHEET_PALETTE*/', `images/${config.paletteFileName}`);
|
||||
ts = ts.replace('/*SPRITE_SHEET_PALETTE_ALPHA*/', `images/${config.paletteAlphaFileName}`);
|
||||
|
||||
Reference in new issue
Block a user