Skip to content

Commit

Permalink
⚡ Update to pixi v6.2.1. This drops support for legacy renderers.
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Dec 22, 2021
1 parent fff68d9 commit 6e7204f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 23 deletions.
9 changes: 0 additions & 9 deletions app/data/ct.release/pixi-legacy.min.js

This file was deleted.

1 change: 0 additions & 1 deletion app/data/ct.release/pixi-legacy.min.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions app/data/ct.release/pixi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/data/ct.release/pixi.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion app/data/i18n/English.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@
"maxFPS": "Max framerate:",
"pixelatedrender": "Disable image smoothing here and in exported project (preserve crisp pixels)",
"hideCursor": "Hide system cursor",
"usePixiLegacy": "Add a legacy, canvas-based renderer to support older browsers and graphics cards (adds ~20kb up to your game)",
"desktopBuilds": "Desktop builds",
"launchMode": "Launch mode:",
"launchModes": {
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"nanoid": "^3.1.30",
"opentype.js": "^1.3.3",
"pixi-particles": "^4.2.1",
"pixi.js-legacy": "5.1.2",
"pixi.js": "6.2.1",
"png2icons": "^2.0.1",
"serve-handler": "^6.1.3",
"terser": "^5.3.5",
Expand Down
9 changes: 2 additions & 7 deletions src/node_requires/exporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,8 @@ const exportCtProject = async (project, projdir, production) => {
const injections = await getInjections();

/* Pixi.js */
if (settings.rendering.usePixiLegacy) {
await fs.copyFile(basePath + 'ct.release/pixi-legacy.min.js', path.join(writeDir, '/pixi.min.js'));
await fs.copyFile(basePath + 'ct.release/pixi-legacy.min.js.map', path.join(writeDir, '/pixi-legacy.min.js.map'));
} else {
await fs.copyFile(basePath + 'ct.release/pixi.min.js', path.join(writeDir, '/pixi.min.js'));
await fs.copyFile(basePath + 'ct.release/pixi.min.js.map', path.join(writeDir, '/pixi.min.js.map'));
}
await fs.copyFile(basePath + 'ct.release/pixi.min.js', path.join(writeDir, '/pixi.min.js'));
await fs.copyFile(basePath + 'ct.release/pixi.min.js.map', path.join(writeDir, '/pixi.min.js.map'));
if (project.emitterTandems && project.emitterTandems.length) {
await fs.copyFile(basePath + 'ct.release/pixi-particles.min.js', path.join(writeDir, '/pixi-particles.min.js'));
}
Expand Down

0 comments on commit 6e7204f

Please sign in to comment.