diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cbc7978..5c8fbe47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [20.2.1](https://github.com/seleb/bitsy-hacks/compare/v20.2.0...v20.2.1) (2022-04-09) + + +### Bug Fixes + +* reinitialize `TransitionManager` as part of kitsy setup ([e241570](https://github.com/seleb/bitsy-hacks/commit/e241570ccfa4506abb60bfdcac8b61ed1182b6ff)) +* **transparent sprites:** transparency working during transitions ([9df1992](https://github.com/seleb/bitsy-hacks/commit/9df19926e579119c6bd4fe36d522d41bc7dc4ef1)) + # [20.2.0](https://github.com/seleb/bitsy-hacks/compare/v20.1.2...v20.2.0) (2022-04-08) diff --git a/dist/avatar-by-room.js b/dist/avatar-by-room.js index 872cd28e..aabcedc0 100644 --- a/dist/avatar-by-room.js +++ b/dist/avatar-by-room.js @@ -4,7 +4,7 @@ @summary change the avatar in certain rooms @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -177,7 +177,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -219,6 +219,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -244,7 +245,7 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/backdrops.js b/dist/backdrops.js index 2b3d7c12..9d327036 100644 --- a/dist/backdrops.js +++ b/dist/backdrops.js @@ -4,7 +4,7 @@ @summary makes the game have a backdrop @license MIT @author Cephalopodunk & Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -181,7 +181,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -223,6 +223,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -250,7 +251,7 @@ var after = kitsy.after; @summary makes all sprites have transparent backgrounds @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -279,6 +280,35 @@ before('renderer.GetDrawingFrame', function (drawing, frameIndex) { }); // send -1 instead of background colour index if transparent inject(/bitsyDrawPixel\(backgroundColor, x, y\)/, 'bitsyDrawPixel(window.makeTransparent ? -1 : backgroundColor, x, y)'); +// make sure transitions render using regular room logic +inject( + /(function createRoomPixelBuffer\(room\) {)/, + `$1 +var buffer = drawingBuffers[screenBufferId]; +var s = buffer.scale; +buffer.scale = 1; +drawRoom(room); +renderDrawingBuffer(screenBufferId, buffer); +const data = buffer.canvas.getContext('2d').getImageData(0, 0, buffer.width, buffer.height).data; +var pixelBuffer = []; +for (var y = 0; y < buffer.height; ++y) { +for (var x = 0; x < buffer.width; ++x) { + var idx = (y*buffer.width + x)*4; + var r = data[idx + 0]; + var g = data[idx + 1]; + var b = data[idx + 2]; + var p = getPal(getRoomPal(curRoom)).findIndex(i => r === i[0] && g === i[1] && b === i[2]); + pixelBuffer.push(tileColorStartIndex + p); +} +} +buffer.scale = s; +invalidateDrawingBuffer(buffer); +return pixelBuffer; +` +); +// make sure tiles are available when drawing rooms +inject(/(var tileBuffer = drawingBuffers\[tileId\];)/, 'hackForEditor_GetImageFromTileId(tileId); $1'); + // overwrite transparent pixel after('renderPixelInstruction', function (bufferId, buffer, paletteIndex, x, y) { if (paletteIndex !== -1) return; @@ -302,7 +332,7 @@ after('renderPixelInstruction', function (bufferId, buffer, paletteIndex, x, y) @summary makes the game have a transparent background @license MIT @author Cephalopodunk & Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/basic-sfx.js b/dist/basic-sfx.js index d1d075b2..49ec61fa 100644 --- a/dist/basic-sfx.js +++ b/dist/basic-sfx.js @@ -4,7 +4,7 @@ @summary "walk" and "talk" sound effect support @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -172,7 +172,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -214,6 +214,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -239,7 +240,7 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/bitsymuse.js b/dist/bitsymuse.js index 231de8fa..1748d10c 100644 --- a/dist/bitsymuse.js +++ b/dist/bitsymuse.js @@ -4,7 +4,7 @@ @summary A variety of Bitsy sound and music handlers @license MIT @author David Mowatt -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -206,7 +206,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -248,6 +248,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -371,7 +372,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/canvas-replacement.js b/dist/canvas-replacement.js index b6bedc3a..f56ff355 100644 --- a/dist/canvas-replacement.js +++ b/dist/canvas-replacement.js @@ -4,7 +4,7 @@ @summary WebGLazy bitsy integration (this one's mostly just for me) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -203,7 +203,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -245,6 +245,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/character-portraits-animated.js b/dist/character-portraits-animated.js index f028206c..cfe0d3e2 100644 --- a/dist/character-portraits-animated.js +++ b/dist/character-portraits-animated.js @@ -4,7 +4,7 @@ @summary high quality anime gifs @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -971,7 +971,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -1013,6 +1013,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -1088,7 +1089,7 @@ function addDialogTag(tag, fn) { @summary high quality anime jpegs (or pngs i guess) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/character-portraits.js b/dist/character-portraits.js index c90469e3..b5088a11 100644 --- a/dist/character-portraits.js +++ b/dist/character-portraits.js @@ -4,7 +4,7 @@ @summary high quality anime jpegs (or pngs i guess) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -200,7 +200,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -242,6 +242,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/close-on-ending.js b/dist/close-on-ending.js index 985ff350..f0a68eef 100644 --- a/dist/close-on-ending.js +++ b/dist/close-on-ending.js @@ -4,7 +4,7 @@ @summary Prevents from playing past an ending @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -163,7 +163,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -205,6 +205,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/corrupt.js b/dist/corrupt.js index d8780e28..77bbc352 100644 --- a/dist/corrupt.js +++ b/dist/corrupt.js @@ -4,7 +4,7 @@ @summary corrupts gamedata at runtime @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -60,7 +60,7 @@ bitsy = bitsy || /*#__PURE__*/_interopDefaultLegacy(bitsy); @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -122,7 +122,7 @@ function getImage(name, map) { @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -340,7 +340,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -382,6 +382,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/custom-exit-effects.js b/dist/custom-exit-effects.js index 1b011cc2..399b65f9 100644 --- a/dist/custom-exit-effects.js +++ b/dist/custom-exit-effects.js @@ -4,7 +4,7 @@ @summary make custom exit transition effects @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -199,7 +199,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -241,6 +241,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -288,8 +289,6 @@ function lerpPalettes(start, end, delta) { } before('startExportedGame', function () { - // recreate the transition manager so the injected code is used - bitsy.transition = new bitsy.TransitionManager(); // make the custom effects available Object.entries(hackOptions).forEach(function (entry) { bitsy.transition.RegisterTransitionEffect(entry[0], entry[1]); diff --git a/dist/custom-keyhandlers.js b/dist/custom-keyhandlers.js index e72496ff..82ff4b4d 100644 --- a/dist/custom-keyhandlers.js +++ b/dist/custom-keyhandlers.js @@ -4,7 +4,7 @@ @summary run custom code on key inputs @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -188,7 +188,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -230,6 +230,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/custom-text-effect.js b/dist/custom-text-effect.js index 9f039ace..7fc7abf5 100644 --- a/dist/custom-text-effect.js +++ b/dist/custom-text-effect.js @@ -4,7 +4,7 @@ @summary make {custom}text effects{custom} @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -351,7 +351,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -393,6 +393,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dialog-audio-vocal-synth.js b/dist/dialog-audio-vocal-synth.js index cbfd5560..64dc6b36 100644 --- a/dist/dialog-audio-vocal-synth.js +++ b/dist/dialog-audio-vocal-synth.js @@ -4,7 +4,7 @@ @summary animal crossing-style audio powered by the pink trombone vocal synth @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -884,7 +884,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -926,6 +926,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -1001,7 +1002,7 @@ function addDialogTag(tag, fn) { @summary animal crossing-style audio @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -1058,7 +1059,7 @@ before('dialogBuffer.DoNextChar', function () { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/dialog-audio.js b/dist/dialog-audio.js index e3ccbd6b..e48bdffc 100644 --- a/dist/dialog-audio.js +++ b/dist/dialog-audio.js @@ -4,7 +4,7 @@ @summary animal crossing-style audio @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -190,7 +190,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -232,6 +232,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dialog-box-transition.js b/dist/dialog-box-transition.js index d9696a40..6c8d069b 100644 --- a/dist/dialog-box-transition.js +++ b/dist/dialog-box-transition.js @@ -4,7 +4,7 @@ @summary adds an easing transition animation to display the dialog box text @license MIT @author Delacannon -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -160,7 +160,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -202,6 +202,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dialog-choices.js b/dist/dialog-choices.js index ffb625b1..c88bc53e 100644 --- a/dist/dialog-choices.js +++ b/dist/dialog-choices.js @@ -4,7 +4,7 @@ @summary dialog choices @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -241,7 +241,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -283,6 +283,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -415,7 +416,7 @@ inject(/(this\.AddLinebreak = )/, 'this.AddParagraphBreak = function() { buffer. @summary Adds paragraph breaks to the dialogue parser @license WTFPL (do WTF you want) @author Sean S. LeBlanc, David Mowatt -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -459,7 +460,7 @@ addDialogTag('p', function (environment, parameters, onReturn) { @summary put more words onscreen @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/dialog-jump.js b/dist/dialog-jump.js index 59f45a5e..cc391139 100644 --- a/dist/dialog-jump.js +++ b/dist/dialog-jump.js @@ -4,7 +4,7 @@ @summary jump from one dialog entry to another @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -174,7 +174,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -216,6 +216,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dialog-pause.js b/dist/dialog-pause.js index 2f8a5476..21092e61 100644 --- a/dist/dialog-pause.js +++ b/dist/dialog-pause.js @@ -4,7 +4,7 @@ @summary add pauses in between printing text @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -160,7 +160,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -202,6 +202,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dialog-prompt.js b/dist/dialog-prompt.js index c04c08e5..f37ff06d 100644 --- a/dist/dialog-prompt.js +++ b/dist/dialog-prompt.js @@ -4,7 +4,7 @@ @summary prompt the user for text input in dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -197,7 +197,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -239,6 +239,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -321,7 +322,7 @@ inject(/(this\.AddLinebreak = )/, 'this.AddParagraphBreak = function() { buffer. @summary Adds paragraph breaks to the dialogue parser @license WTFPL (do WTF you want) @author Sean S. LeBlanc, David Mowatt -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/direction-in-dialog.js b/dist/direction-in-dialog.js index 67977f7e..57b08284 100644 --- a/dist/direction-in-dialog.js +++ b/dist/direction-in-dialog.js @@ -4,7 +4,7 @@ @summary provides a variable with player direction @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -166,7 +166,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -208,6 +208,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/directional-avatar.js b/dist/directional-avatar.js index ba8e6690..4420259c 100644 --- a/dist/directional-avatar.js +++ b/dist/directional-avatar.js @@ -4,7 +4,7 @@ @summary flips the player's sprite based on directional movement @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -41,7 +41,7 @@ bitsy = bitsy || /*#__PURE__*/_interopDefaultLegacy(bitsy); @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -103,7 +103,7 @@ function getImage(name, map) { @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -305,7 +305,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -347,6 +347,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/dynamic-background.js b/dist/dynamic-background.js index 4d58a155..fe32ae72 100644 --- a/dist/dynamic-background.js +++ b/dist/dynamic-background.js @@ -4,7 +4,7 @@ @summary HTML background matching bitsy background @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -170,7 +170,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -212,6 +212,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -237,7 +238,7 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/edit-dialog-from-dialog.js b/dist/edit-dialog-from-dialog.js index 9e894d11..1dc68fdd 100644 --- a/dist/edit-dialog-from-dialog.js +++ b/dist/edit-dialog-from-dialog.js @@ -4,7 +4,7 @@ @summary edit dialog from dialog (yes really) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -169,7 +169,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -211,6 +211,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -296,7 +297,7 @@ function addDeferredDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/edit-image-from-dialog.js b/dist/edit-image-from-dialog.js index 3bd1cdf4..079a2bdd 100644 --- a/dist/edit-image-from-dialog.js +++ b/dist/edit-image-from-dialog.js @@ -4,7 +4,7 @@ @summary edit sprites, items, and tiles from dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -67,7 +67,7 @@ bitsy = bitsy || /*#__PURE__*/_interopDefaultLegacy(bitsy); @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -129,7 +129,7 @@ function getImage(name, map) { @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -323,7 +323,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -365,6 +365,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/edit-player-from-dialog.js b/dist/edit-player-from-dialog.js index 7dfd727c..82464aba 100644 --- a/dist/edit-player-from-dialog.js +++ b/dist/edit-player-from-dialog.js @@ -4,7 +4,7 @@ @summary change which sprite is controlled by the player @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -171,7 +171,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -213,6 +213,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -336,7 +337,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/edit-room-from-dialog.js b/dist/edit-room-from-dialog.js index aba0297d..42192ca4 100644 --- a/dist/edit-room-from-dialog.js +++ b/dist/edit-room-from-dialog.js @@ -4,7 +4,7 @@ @summary modify the content of a room from dialog @license MIT @author Dana Holdampf -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -290,7 +290,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -332,6 +332,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -455,7 +456,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/end-from-dialog.js b/dist/end-from-dialog.js index a363b3a8..87f96545 100644 --- a/dist/end-from-dialog.js +++ b/dist/end-from-dialog.js @@ -4,7 +4,7 @@ @summary trigger an ending from dialog, including narration text @license WTFPL (do WTF you want) @author @mildmojo -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -194,7 +194,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -236,6 +236,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/exit-from-dialog.js b/dist/exit-from-dialog.js index 25d780c5..100eceaf 100644 --- a/dist/exit-from-dialog.js +++ b/dist/exit-from-dialog.js @@ -4,7 +4,7 @@ @summary exit to another room from dialog, including conditionals @license WTFPL (do WTF you want) @author @mildmojo -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -194,7 +194,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -236,6 +236,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -359,7 +360,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/external-game-data.js b/dist/external-game-data.js index e551fdee..8eefb3be 100644 --- a/dist/external-game-data.js +++ b/dist/external-game-data.js @@ -4,7 +4,7 @@ @summary separate Bitsy game data from your (modded) HTML for easier development @license WTFPL (do WTF you want) @author @mildmojo -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -182,7 +182,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -224,6 +224,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/favicon-from-sprite.js b/dist/favicon-from-sprite.js index 6c1d225e..d90d93aa 100644 --- a/dist/favicon-from-sprite.js +++ b/dist/favicon-from-sprite.js @@ -4,7 +4,7 @@ @summary generate a browser favicon (tab icon) from a Bitsy sprite, including animation! @license WTFPL (do WTF you want) @author @mildmojo -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -170,7 +170,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -212,6 +212,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -237,7 +238,7 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/follower.js b/dist/follower.js index 00a52b71..9cf22297 100644 --- a/dist/follower.js +++ b/dist/follower.js @@ -4,7 +4,7 @@ @summary make sprites follow the player @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -193,7 +193,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -235,6 +235,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -358,7 +359,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/gamepad-input.js b/dist/gamepad-input.js index 15c2303f..3f08334f 100644 --- a/dist/gamepad-input.js +++ b/dist/gamepad-input.js @@ -4,7 +4,7 @@ @summary HTML5 gamepad support @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -489,7 +489,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -531,6 +531,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/gravity.js b/dist/gravity.js index 179a1809..5c3c7202 100644 --- a/dist/gravity.js +++ b/dist/gravity.js @@ -4,7 +4,7 @@ @summary Pseudo-platforming/gravity/physics @license MIT @author Cole Sea -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -122,7 +122,7 @@ bitsy = bitsy || /*#__PURE__*/_interopDefaultLegacy(bitsy); @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -184,7 +184,7 @@ function getImage(name, map) { @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -386,7 +386,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -428,6 +428,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/itsy-bitsy.js b/dist/itsy-bitsy.js index c260179d..b3822e3f 100644 --- a/dist/itsy-bitsy.js +++ b/dist/itsy-bitsy.js @@ -4,7 +4,7 @@ @summary for when bitsy's not small enough @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -171,7 +171,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -213,6 +213,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/javascript-dialog.js b/dist/javascript-dialog.js index db8af88c..30cacf3b 100644 --- a/dist/javascript-dialog.js +++ b/dist/javascript-dialog.js @@ -4,7 +4,7 @@ @summary execute arbitrary javascript from dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -196,7 +196,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -238,6 +238,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/logic-operators-extended.js b/dist/logic-operators-extended.js index dd3f945c..df219e65 100644 --- a/dist/logic-operators-extended.js +++ b/dist/logic-operators-extended.js @@ -3,7 +3,7 @@ @file logic-operators-extended @summary adds conditional logic operators @author @mildmojo -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -168,7 +168,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -210,6 +210,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/long-dialog.js b/dist/long-dialog.js index 47d9d278..94100be1 100644 --- a/dist/long-dialog.js +++ b/dist/long-dialog.js @@ -4,7 +4,7 @@ @summary put more words onscreen @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -184,7 +184,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -226,6 +226,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -358,7 +359,7 @@ inject(/(this\.AddLinebreak = )/, 'this.AddParagraphBreak = function() { buffer. @summary Adds paragraph breaks to the dialogue parser @license WTFPL (do WTF you want) @author Sean S. LeBlanc, David Mowatt -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/multi-sprite-avatar.js b/dist/multi-sprite-avatar.js index 5a6c7808..82dee7ea 100644 --- a/dist/multi-sprite-avatar.js +++ b/dist/multi-sprite-avatar.js @@ -4,7 +4,7 @@ @summary make the player big @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -201,7 +201,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -243,6 +243,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -366,7 +367,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/noclip.js b/dist/noclip.js index 0c8f95a7..9330d3a6 100644 --- a/dist/noclip.js +++ b/dist/noclip.js @@ -4,7 +4,7 @@ @summary walk through wall tiles, sprites, items, exits, and endings @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -182,7 +182,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -224,6 +224,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -251,7 +252,7 @@ var after = kitsy.after; @summary run custom code on key inputs @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/online.js b/dist/online.js index f126a0e0..7a803558 100644 --- a/dist/online.js +++ b/dist/online.js @@ -4,7 +4,7 @@ @summary multiplayer bitsy @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -182,7 +182,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -224,6 +224,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -347,7 +348,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -411,7 +412,7 @@ function getImage(name, map) { @summary edit dialog from dialog (yes really) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -478,7 +479,7 @@ addDeferredDialogTag('dialog', editDialog); @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -547,7 +548,7 @@ function setSpriteData(id, frame, newData) { @summary edit sprites, items, and tiles from dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -692,7 +693,7 @@ addDualDialogTag('imagePal', editPalette); @summary execute arbitrary javascript from dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/opaque-tiles.js b/dist/opaque-tiles.js index e209b9d5..f3a5f140 100644 --- a/dist/opaque-tiles.js +++ b/dist/opaque-tiles.js @@ -4,7 +4,7 @@ @summary tiles which hide the player @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -169,7 +169,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -211,6 +211,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/paragraph-break.js b/dist/paragraph-break.js index 0ab3df65..8e5a2c7d 100644 --- a/dist/paragraph-break.js +++ b/dist/paragraph-break.js @@ -4,7 +4,7 @@ @summary Adds paragraph breaks to the dialogue parser @license WTFPL (do WTF you want) @author Sean S. LeBlanc, David Mowatt -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -176,7 +176,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -218,6 +218,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/permanent-items.js b/dist/permanent-items.js index 51529786..30aba143 100644 --- a/dist/permanent-items.js +++ b/dist/permanent-items.js @@ -4,7 +4,7 @@ @summary prevent some items from being picked up @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -166,7 +166,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -208,6 +208,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/push-sprites.js b/dist/push-sprites.js index d4e18456..806bff9d 100644 --- a/dist/push-sprites.js +++ b/dist/push-sprites.js @@ -4,7 +4,7 @@ @summary sokoban-style sprite pushing @license MIT @author jan0sc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -198,7 +198,7 @@ bitsy = bitsy || /*#__PURE__*/_interopDefaultLegacy(bitsy); @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -260,7 +260,7 @@ function getImage(name, map) { @file edit image at runtime @summary API for updating image data at runtime. @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @description @@ -462,7 +462,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -504,6 +504,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/replace-drawing.js b/dist/replace-drawing.js index b7d8ddc8..38df2666 100644 --- a/dist/replace-drawing.js +++ b/dist/replace-drawing.js @@ -4,7 +4,7 @@ @summary add name-tags to replace drawings when the game is loading @license MIT @author Elkie Nova -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -177,7 +177,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -219,6 +219,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/save.js b/dist/save.js index 0b45875c..9043bbe0 100644 --- a/dist/save.js +++ b/dist/save.js @@ -4,7 +4,7 @@ @summary save/load your game @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -195,7 +195,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -237,6 +237,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -360,7 +361,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/smooth-moves.js b/dist/smooth-moves.js index 3ab0fd77..c1dc9764 100644 --- a/dist/smooth-moves.js +++ b/dist/smooth-moves.js @@ -4,7 +4,7 @@ @summary ease the player's movement @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -170,7 +170,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -212,6 +212,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/solid-items.js b/dist/solid-items.js index 6bbd5585..7589e762 100644 --- a/dist/solid-items.js +++ b/dist/solid-items.js @@ -4,7 +4,7 @@ @summary treat some items like sprites that can be placed multiple times @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -167,7 +167,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -209,6 +209,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/sprite-effects.js b/dist/sprite-effects.js index 9610aaed..4cd58271 100644 --- a/dist/sprite-effects.js +++ b/dist/sprite-effects.js @@ -4,7 +4,7 @@ @summary like text effects, but for sprites @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -215,7 +215,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -257,6 +257,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -380,7 +381,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/stopwatch.js b/dist/stopwatch.js index 0fffbfb3..2e68fe7c 100644 --- a/dist/stopwatch.js +++ b/dist/stopwatch.js @@ -4,7 +4,7 @@ @summary time player actions @license MIT @author Lenny Magner -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -202,7 +202,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -244,6 +244,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -367,7 +368,7 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ diff --git a/dist/text-to-speech.js b/dist/text-to-speech.js index 5a36d299..12f7f486 100644 --- a/dist/text-to-speech.js +++ b/dist/text-to-speech.js @@ -4,7 +4,7 @@ @summary text-to-speech for bitsy dialog @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -192,7 +192,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -234,6 +234,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/tracery-processing.js b/dist/tracery-processing.js index 4b928144..6e7f4a58 100644 --- a/dist/tracery-processing.js +++ b/dist/tracery-processing.js @@ -4,7 +4,7 @@ @summary process all dialog text with a tracery grammar @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -1036,7 +1036,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -1078,6 +1078,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/transitions.js b/dist/transitions.js index c7a94e8d..23632b57 100644 --- a/dist/transitions.js +++ b/dist/transitions.js @@ -4,7 +4,7 @@ @summary customizable WebGL transitions @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -223,7 +223,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -265,6 +265,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -292,7 +293,7 @@ var after = kitsy.after; @summary WebGLazy bitsy integration (this one's mostly just for me) @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 diff --git a/dist/transparent-background.js b/dist/transparent-background.js index 9b99e06e..cc4d0322 100644 --- a/dist/transparent-background.js +++ b/dist/transparent-background.js @@ -4,7 +4,7 @@ @summary makes the game have a transparent background @license MIT @author Cephalopodunk & Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -171,7 +171,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -213,6 +213,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -240,7 +241,7 @@ var after = kitsy.after; @summary makes all sprites have transparent backgrounds @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -269,6 +270,35 @@ before('renderer.GetDrawingFrame', function (drawing, frameIndex) { }); // send -1 instead of background colour index if transparent inject(/bitsyDrawPixel\(backgroundColor, x, y\)/, 'bitsyDrawPixel(window.makeTransparent ? -1 : backgroundColor, x, y)'); +// make sure transitions render using regular room logic +inject( + /(function createRoomPixelBuffer\(room\) {)/, + `$1 +var buffer = drawingBuffers[screenBufferId]; +var s = buffer.scale; +buffer.scale = 1; +drawRoom(room); +renderDrawingBuffer(screenBufferId, buffer); +const data = buffer.canvas.getContext('2d').getImageData(0, 0, buffer.width, buffer.height).data; +var pixelBuffer = []; +for (var y = 0; y < buffer.height; ++y) { +for (var x = 0; x < buffer.width; ++x) { + var idx = (y*buffer.width + x)*4; + var r = data[idx + 0]; + var g = data[idx + 1]; + var b = data[idx + 2]; + var p = getPal(getRoomPal(curRoom)).findIndex(i => r === i[0] && g === i[1] && b === i[2]); + pixelBuffer.push(tileColorStartIndex + p); +} +} +buffer.scale = s; +invalidateDrawingBuffer(buffer); +return pixelBuffer; +` +); +// make sure tiles are available when drawing rooms +inject(/(var tileBuffer = drawingBuffers\[tileId\];)/, 'hackForEditor_GetImageFromTileId(tileId); $1'); + // overwrite transparent pixel after('renderPixelInstruction', function (bufferId, buffer, paletteIndex, x, y) { if (paletteIndex !== -1) return; diff --git a/dist/transparent-dialog.js b/dist/transparent-dialog.js index 8f09ec40..ed1ea2e3 100644 --- a/dist/transparent-dialog.js +++ b/dist/transparent-dialog.js @@ -4,7 +4,7 @@ @summary makes the dialog box have a transparent background @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -156,7 +156,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -198,6 +198,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/transparent-sprites.js b/dist/transparent-sprites.js index 52fc6849..cf8c4167 100644 --- a/dist/transparent-sprites.js +++ b/dist/transparent-sprites.js @@ -4,7 +4,7 @@ @summary makes all sprites have transparent backgrounds @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -167,7 +167,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -209,6 +209,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); @@ -241,6 +242,35 @@ before('renderer.GetDrawingFrame', function (drawing, frameIndex) { }); // send -1 instead of background colour index if transparent inject(/bitsyDrawPixel\(backgroundColor, x, y\)/, 'bitsyDrawPixel(window.makeTransparent ? -1 : backgroundColor, x, y)'); +// make sure transitions render using regular room logic +inject( + /(function createRoomPixelBuffer\(room\) {)/, + `$1 +var buffer = drawingBuffers[screenBufferId]; +var s = buffer.scale; +buffer.scale = 1; +drawRoom(room); +renderDrawingBuffer(screenBufferId, buffer); +const data = buffer.canvas.getContext('2d').getImageData(0, 0, buffer.width, buffer.height).data; +var pixelBuffer = []; +for (var y = 0; y < buffer.height; ++y) { +for (var x = 0; x < buffer.width; ++x) { + var idx = (y*buffer.width + x)*4; + var r = data[idx + 0]; + var g = data[idx + 1]; + var b = data[idx + 2]; + var p = getPal(getRoomPal(curRoom)).findIndex(i => r === i[0] && g === i[1] && b === i[2]); + pixelBuffer.push(tileColorStartIndex + p); +} +} +buffer.scale = s; +invalidateDrawingBuffer(buffer); +return pixelBuffer; +` +); +// make sure tiles are available when drawing rooms +inject(/(var tileBuffer = drawingBuffers\[tileId\];)/, 'hackForEditor_GetImageFromTileId(tileId); $1'); + // overwrite transparent pixel after('renderPixelInstruction', function (bufferId, buffer, paletteIndex, x, y) { if (paletteIndex !== -1) return; diff --git a/dist/twine-bitsy-comms.js b/dist/twine-bitsy-comms.js index 4ba40697..33e3b059 100644 --- a/dist/twine-bitsy-comms.js +++ b/dist/twine-bitsy-comms.js @@ -4,7 +4,7 @@ @summary interprocess communication for twine and bitsy @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -238,7 +238,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -280,6 +280,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/dist/unique-items.js b/dist/unique-items.js index a29ae6df..476d4cd9 100644 --- a/dist/unique-items.js +++ b/dist/unique-items.js @@ -4,7 +4,7 @@ @summary items which, when picked up, remove all other instances of that item from the game @license MIT @author Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 @@ -167,7 +167,7 @@ function applyHook(root, functionName) { @summary Monkey-patching toolkit to make it easier and cleaner to run code before and after functions or to inject new code into script tags @license WTFPL (do WTF you want) @author Original by mildmojo; modified by Sean S. LeBlanc -@version 20.2.0 +@version 20.2.1 @requires Bitsy 7.12 */ @@ -209,6 +209,7 @@ if (!hooked) { bitsy.dialogRenderer = bitsy.dialogModule.CreateRenderer(); bitsy.dialogBuffer = bitsy.dialogModule.CreateBuffer(); bitsy.renderer = new bitsy.TileRenderer(bitsy.tilesize); + bitsy.transition = new bitsy.TransitionManager(); // Hook everything kitsy.applyHooks(); diff --git a/package-lock.json b/package-lock.json index a080d658..5f64e448 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@bitsy/hecks", - "version": "20.2.0", + "version": "20.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@bitsy/hecks", - "version": "20.2.0", + "version": "20.2.1", "license": "MIT (individual hacks have their own license specified)", "dependencies": { "@seansleblanc/pink-trombone": "^1.0.1", diff --git a/package.json b/package.json index 3a6f07a9..86f19f41 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "hacks" ], "main": "index.mjs", - "version": "20.2.0", + "version": "20.2.1", "bitsyVersion": "7.12", "scripts": { "build": "rollup -c",