From 3d1e88273f85c7aeeaa4d87bbf8309c05cb0ee28 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 26 Aug 2021 06:44:48 +0000 Subject: [PATCH] chore(release): 17.0.0 [skip ci] # [17.0.0](https://github.com/seleb/bitsy-hacks/compare/v16.0.2...v17.0.0) (2021-08-26) ### Bug Fixes * support bitsy 7.8 ([e1d88de](https://github.com/seleb/bitsy-hacks/commit/e1d88deee8a78f033da722dfc2be2619b3aa3006)) * **dialog choices:** choice selected early when skipping dialog ([d0c123c](https://github.com/seleb/bitsy-hacks/commit/d0c123cf152411b8abc23b1f76c61be8f078f649)) * **dialog choices:** hook not applying due to whitespace change ([c6391a7](https://github.com/seleb/bitsy-hacks/commit/c6391a79ea9d07496d617d1bb77d67e54665b0fc)) * remove `moveSprites` hook ([f110b0b](https://github.com/seleb/bitsy-hacks/commit/f110b0b954e0a09c83084695cd8a9ca42be39f3e)) * reset callbacks after hooks ([7cbcb8d](https://github.com/seleb/bitsy-hacks/commit/7cbcb8d04aa010bd94a7f2101ca166b5426cb9b5)) * **backdrops:** incorrect option name ([8b0b15d](https://github.com/seleb/bitsy-hacks/commit/8b0b15d2266828a125f3932ce3a92c7bf3f77de0)) * **backdrops:** make canvas transparent ([dc7d0c1](https://github.com/seleb/bitsy-hacks/commit/dc7d0c1d7ebccfe5fe09d70e42c553261c950fc0)) * **backdrops:** preload not called ([86ec258](https://github.com/seleb/bitsy-hacks/commit/86ec258b602aecdeb22c127beac5cd6a4d1a7774)) * **dialog prompt:** default value not showing up until keypress ([fdc3fc0](https://github.com/seleb/bitsy-hacks/commit/fdc3fc0a11479a0a3a2737eb05ca050fc0ae20a0)) * **dialog prompt:** dialog not automatically continuing after prompt ([d50b5dd](https://github.com/seleb/bitsy-hacks/commit/d50b5dd1aea3a6c687234a0b7047435b3191b5e4)) * outdated method of clearing render cache ([663bc2e](https://github.com/seleb/bitsy-hacks/commit/663bc2e539e06cf66e7f0a41fb3c92d360787ea0)) ### BREAKING CHANGES * support changed from bitsy 7.2 to 7.8 --- CHANGELOG.md | 22 ++++++++++++++++++++++ dist/3d.js | 7 ++++++- dist/avatar-by-room.js | 7 ++++++- dist/backdrops.js | 12 +++++++++--- dist/basic-sfx.js | 7 ++++++- dist/bitsymuse.js | 7 ++++++- dist/canvas-replacement.js | 7 ++++++- dist/character-portraits-animated.js | 7 ++++++- dist/character-portraits.js | 7 ++++++- dist/close-on-ending.js | 7 ++++++- dist/corrupt.js | 9 +++++++-- dist/custom-exit-effects.js | 7 ++++++- dist/custom-keyhandlers.js | 7 ++++++- dist/custom-text-effect.js | 7 ++++++- dist/dialog-audio-vocal-synth.js | 7 ++++++- dist/dialog-audio.js | 7 ++++++- dist/dialog-box-transition.js | 7 ++++++- dist/dialog-choices.js | 13 ++++++++++--- dist/dialog-jump.js | 7 ++++++- dist/dialog-pause.js | 7 ++++++- dist/dialog-prompt.js | 11 ++++++++++- dist/direction-in-dialog.js | 7 ++++++- dist/directional-avatar.js | 7 ++++++- dist/dynamic-background.js | 8 ++++++-- dist/edit-dialog-from-dialog.js | 7 ++++++- dist/edit-image-from-dialog.js | 7 ++++++- dist/edit-player-from-dialog.js | 7 ++++++- dist/edit-room-from-dialog.js | 7 ++++++- dist/end-from-dialog.js | 7 ++++++- dist/exit-from-dialog.js | 7 ++++++- dist/external-game-data.js | 7 ++++++- dist/favicon-from-sprite.js | 7 ++++++- dist/follower.js | 12 ++++++------ dist/gamepad-input.js | 7 ++++++- dist/gravity.js | 7 ++++++- dist/itsy-bitsy.js | 7 ++++++- dist/javascript-dialog.js | 9 +++++++-- dist/logic-operators-extended.js | 7 ++++++- dist/long-dialog.js | 7 ++++++- dist/multi-sprite-avatar.js | 7 ++++++- dist/noclip.js | 7 ++++++- dist/online.js | 9 +++++++-- dist/opaque-tiles.js | 7 ++++++- dist/palette-maps.js | 7 ++++++- dist/paragraph-break.js | 7 ++++++- dist/permanent-items.js | 7 ++++++- dist/push-sprites.js | 7 ++++++- dist/replace-drawing.js | 7 ++++++- dist/save.js | 7 ++++++- dist/smooth-moves.js | 7 ++++++- dist/solid-items.js | 7 ++++++- dist/sprite-effects.js | 7 ++++++- dist/stopwatch.js | 7 ++++++- dist/text-to-speech.js | 7 ++++++- dist/textbox-styler.js | 7 ++++++- dist/tracery-processing.js | 7 ++++++- dist/transitions.js | 7 ++++++- dist/transparent-background.js | 7 ++++++- dist/transparent-dialog.js | 7 ++++++- dist/transparent-sprites.js | 7 ++++++- dist/twine-bitsy-comms.js | 7 ++++++- dist/unique-items.js | 7 ++++++- package-lock.json | 2 +- package.json | 2 +- 64 files changed, 404 insertions(+), 76 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd5e7ee8..e0490ed8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +# [17.0.0](https://github.com/seleb/bitsy-hacks/compare/v16.0.2...v17.0.0) (2021-08-26) + + +### Bug Fixes + +* support bitsy 7.8 ([e1d88de](https://github.com/seleb/bitsy-hacks/commit/e1d88deee8a78f033da722dfc2be2619b3aa3006)) +* **dialog choices:** choice selected early when skipping dialog ([d0c123c](https://github.com/seleb/bitsy-hacks/commit/d0c123cf152411b8abc23b1f76c61be8f078f649)) +* **dialog choices:** hook not applying due to whitespace change ([c6391a7](https://github.com/seleb/bitsy-hacks/commit/c6391a79ea9d07496d617d1bb77d67e54665b0fc)) +* remove `moveSprites` hook ([f110b0b](https://github.com/seleb/bitsy-hacks/commit/f110b0b954e0a09c83084695cd8a9ca42be39f3e)) +* reset callbacks after hooks ([7cbcb8d](https://github.com/seleb/bitsy-hacks/commit/7cbcb8d04aa010bd94a7f2101ca166b5426cb9b5)) +* **backdrops:** incorrect option name ([8b0b15d](https://github.com/seleb/bitsy-hacks/commit/8b0b15d2266828a125f3932ce3a92c7bf3f77de0)) +* **backdrops:** make canvas transparent ([dc7d0c1](https://github.com/seleb/bitsy-hacks/commit/dc7d0c1d7ebccfe5fe09d70e42c553261c950fc0)) +* **backdrops:** preload not called ([86ec258](https://github.com/seleb/bitsy-hacks/commit/86ec258b602aecdeb22c127beac5cd6a4d1a7774)) +* **dialog prompt:** default value not showing up until keypress ([fdc3fc0](https://github.com/seleb/bitsy-hacks/commit/fdc3fc0a11479a0a3a2737eb05ca050fc0ae20a0)) +* **dialog prompt:** dialog not automatically continuing after prompt ([d50b5dd](https://github.com/seleb/bitsy-hacks/commit/d50b5dd1aea3a6c687234a0b7047435b3191b5e4)) +* outdated method of clearing render cache ([663bc2e](https://github.com/seleb/bitsy-hacks/commit/663bc2e539e06cf66e7f0a41fb3c92d360787ea0)) + + +### BREAKING CHANGES + +* support changed from bitsy 7.2 to 7.8 + ## [16.0.2](https://github.com/seleb/bitsy-hacks/compare/v16.0.1...v16.0.2) (2021-07-15) diff --git a/dist/3d.js b/dist/3d.js index 6d20d45a..ce3b4a36 100644 --- a/dist/3d.js +++ b/dist/3d.js @@ -3,7 +3,7 @@ @file 3d @summary bitsy in three dee @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.3 @author Sean S. LeBlanc & Elkie Nova @@ -544,6 +544,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/avatar-by-room.js b/dist/avatar-by-room.js index 64b88273..55a1c0ca 100644 --- a/dist/avatar-by-room.js +++ b/dist/avatar-by-room.js @@ -3,7 +3,7 @@ @file avatar by room @summary change the avatar in certain rooms @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.3 @author Sean S. LeBlanc @@ -247,6 +247,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/backdrops.js b/dist/backdrops.js index 50a96bf9..a15a76c7 100644 --- a/dist/backdrops.js +++ b/dist/backdrops.js @@ -3,7 +3,7 @@ @file backdrops @summary makes the game have a backdrop @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 7.2 @author Cephalopodunk & Sean S. LeBlanc @@ -222,6 +222,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -350,12 +355,13 @@ hackOptions$1.isTransparent = function (drawing) { }; var imgCache = []; -after('onload', function () { +after('loadGame', function () { // set base style var game = document.getElementById('game'); game.style.backgroundSize = 'cover'; + game.style.backgroundColor = 'transparent'; // preload images - Object.values(hackOptions.imagesByRoom) + Object.values(hackOptions.backdropsByRoom) .concat([hackOptions.imageTitle, hackOptions.imageDefault]) .filter(function (src) { return src; diff --git a/dist/basic-sfx.js b/dist/basic-sfx.js index 4ffde44f..4dd895b0 100644 --- a/dist/basic-sfx.js +++ b/dist/basic-sfx.js @@ -3,7 +3,7 @@ @file basic sfx @summary "walk" and "talk" sound effect support @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -211,6 +211,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/bitsymuse.js b/dist/bitsymuse.js index 455e2188..79417fd7 100644 --- a/dist/bitsymuse.js +++ b/dist/bitsymuse.js @@ -3,7 +3,7 @@ @file bitsymuse @summary A variety of Bitsy sound and music handlers @license MIT -@version 16.0.2 +@version 17.0.0 @requires 4.8, 4.9 @author David Mowatt @@ -247,6 +247,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/canvas-replacement.js b/dist/canvas-replacement.js index 854045fc..e13f6477 100644 --- a/dist/canvas-replacement.js +++ b/dist/canvas-replacement.js @@ -3,7 +3,7 @@ @file canvas replacement @summary WebGLazy bitsy integration (this one's mostly just for me) @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -241,6 +241,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/character-portraits-animated.js b/dist/character-portraits-animated.js index 3b2042de..898f8305 100644 --- a/dist/character-portraits-animated.js +++ b/dist/character-portraits-animated.js @@ -3,7 +3,7 @@ @file character portraits animated @summary high quality anime gifs @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -1012,6 +1012,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/character-portraits.js b/dist/character-portraits.js index 46d40475..696690bc 100644 --- a/dist/character-portraits.js +++ b/dist/character-portraits.js @@ -3,7 +3,7 @@ @file character portraits @summary high quality anime jpegs (or pngs i guess) @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -241,6 +241,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/close-on-ending.js b/dist/close-on-ending.js index 10d329b5..4b6c57e0 100644 --- a/dist/close-on-ending.js +++ b/dist/close-on-ending.js @@ -3,7 +3,7 @@ @file close on ending @summary Prevents from playing past an ending @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -203,6 +203,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/corrupt.js b/dist/corrupt.js index 4ee5a11b..a1f556ba 100644 --- a/dist/corrupt.js +++ b/dist/corrupt.js @@ -3,7 +3,7 @@ @file corrupt @summary corrupts gamedata at runtime @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.5 @author Sean S. LeBlanc @@ -328,6 +328,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -453,7 +458,7 @@ function corrupt() { c[i] = Math.round((c[i] + (Math.random() * 2 - 1) * hackOptions.paletteAmplitude) % 256); }); if (hackOptions.paletteImmediate) { - bitsy.renderImages(); + bitsy.renderer.ClearCache(); } // corrupt pixels of font data diff --git a/dist/custom-exit-effects.js b/dist/custom-exit-effects.js index f964c0ea..3402a519 100644 --- a/dist/custom-exit-effects.js +++ b/dist/custom-exit-effects.js @@ -3,7 +3,7 @@ @file custom-exit-effects @summary make custom exit transition effects @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.0 @author Sean S. LeBlanc @@ -251,6 +251,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/custom-keyhandlers.js b/dist/custom-keyhandlers.js index c4068c81..58c52943 100644 --- a/dist/custom-keyhandlers.js +++ b/dist/custom-keyhandlers.js @@ -3,7 +3,7 @@ @file custom-keyhandlers @summary run custom code on key inputs @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 7.0 @author Sean S. LeBlanc @@ -229,6 +229,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/custom-text-effect.js b/dist/custom-text-effect.js index 945aec59..f3803fd7 100644 --- a/dist/custom-text-effect.js +++ b/dist/custom-text-effect.js @@ -3,7 +3,7 @@ @file custom text effect @summary make {custom}text effects{custom} @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.3 @author Sean S. LeBlanc @@ -396,6 +396,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-audio-vocal-synth.js b/dist/dialog-audio-vocal-synth.js index 4febc43c..90037ad4 100644 --- a/dist/dialog-audio-vocal-synth.js +++ b/dist/dialog-audio-vocal-synth.js @@ -3,7 +3,7 @@ @file dialog audio vocal synth @summary animal crossing-style audio powered by the pink trombone vocal synth @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -924,6 +924,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-audio.js b/dist/dialog-audio.js index eb0848b3..6ca54270 100644 --- a/dist/dialog-audio.js +++ b/dist/dialog-audio.js @@ -3,7 +3,7 @@ @file dialog audio @summary animal crossing-style audio @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -230,6 +230,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-box-transition.js b/dist/dialog-box-transition.js index f0475f22..b8a66ff7 100644 --- a/dist/dialog-box-transition.js +++ b/dist/dialog-box-transition.js @@ -3,7 +3,7 @@ @file dialog box transition @summary adds an easing transition animation to display the dialog box text @license MIT -@version 16.0.2 +@version 17.0.0 @requires 4.8, 4.9 @author Delacannon @@ -201,6 +201,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-choices.js b/dist/dialog-choices.js index 2ad5de67..e6e4003c 100644 --- a/dist/dialog-choices.js +++ b/dist/dialog-choices.js @@ -3,7 +3,7 @@ @file dialog choices @summary binary dialog choices @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -280,6 +280,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -428,7 +433,9 @@ var ChoiceNode = function(options) { } else { done(); - window.dialogChoices.choicesActive = true; + setTimeout(() => { + window.dialogChoices.choicesActive = true; + }); } } window.dialogChoices.choices = this.options.map(function(option){ @@ -483,7 +490,7 @@ $1`); // interaction // (overrides the dialog skip/page flip) -inject(/(if\( dialogBuffer\.IsActive\(\) \) {)/, `$1 +inject(/(if\(\s*dialogBuffer\.IsActive\(\)\s*\) {)/, `$1 if(window.dialogChoices.handleInput(dialogBuffer)) { return; } else `); diff --git a/dist/dialog-jump.js b/dist/dialog-jump.js index a5c6b977..9fd12624 100644 --- a/dist/dialog-jump.js +++ b/dist/dialog-jump.js @@ -3,7 +3,7 @@ @file dialog jump @summary jump from one dialog entry to another @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -215,6 +215,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-pause.js b/dist/dialog-pause.js index 9a06d70d..74fa6a67 100644 --- a/dist/dialog-pause.js +++ b/dist/dialog-pause.js @@ -3,7 +3,7 @@ @file dialog pause @summary add pauses in between printing text @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -200,6 +200,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dialog-prompt.js b/dist/dialog-prompt.js index 97ed9fca..02320071 100644 --- a/dist/dialog-prompt.js +++ b/dist/dialog-prompt.js @@ -3,7 +3,7 @@ @file dialog prompt @summary prompt the user for text input in dialog @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.4 @author Sean S. LeBlanc @@ -238,6 +238,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -452,6 +457,9 @@ addDialogTag('prompt', function (environment, parameters, onReturn) { bitsy.input.anyKeyPressed = anyKeyPressed; bitsy.input.isTapReleased = isTapReleased; environment.GetDialogBuffer().CanContinue = CanContinue; + setTimeout(() => { + environment.GetDialogBuffer().Continue(); + }, 0); onReturn(null); }; @@ -459,6 +467,7 @@ addDialogTag('prompt', function (environment, parameters, onReturn) { cachedBuffer = bufferCopy(environment.GetDialogBuffer().GetBuffer()); // add a caret character immediately (otherwise it won't show up till a key is pressed) environment.GetDialogBuffer().AddText(hackOptions.caret); + updateInputDisplay(); }); // expose a setter/getter for private buffer in DialogBuffer class diff --git a/dist/direction-in-dialog.js b/dist/direction-in-dialog.js index 2d1e0fee..88cb4f70 100644 --- a/dist/direction-in-dialog.js +++ b/dist/direction-in-dialog.js @@ -3,7 +3,7 @@ @file direction in dialog @summary provides a variable with player direction @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.3 @author Sean S. LeBlanc @@ -207,6 +207,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/directional-avatar.js b/dist/directional-avatar.js index d6b94199..d29fe8b7 100644 --- a/dist/directional-avatar.js +++ b/dist/directional-avatar.js @@ -3,7 +3,7 @@ @file directional avatar @summary flips the player's sprite based on directional movement @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.3 @author Sean S. LeBlanc @@ -213,6 +213,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/dynamic-background.js b/dist/dynamic-background.js index 6a59c3ae..fc768eab 100644 --- a/dist/dynamic-background.js +++ b/dist/dynamic-background.js @@ -3,7 +3,7 @@ @file dynamic background @summary HTML background matching bitsy background @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -210,6 +210,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -270,7 +275,6 @@ after('load_game', function () { }); // wrap every function which involves changing the palette -after('moveSprites', updateBg); after('movePlayer', updateBg); after('parseWorld', updateBg); after('movePlayerThroughExit', updateBg); diff --git a/dist/edit-dialog-from-dialog.js b/dist/edit-dialog-from-dialog.js index 33e84a02..bc6c7c60 100644 --- a/dist/edit-dialog-from-dialog.js +++ b/dist/edit-dialog-from-dialog.js @@ -3,7 +3,7 @@ @file edit dialog from dialog @summary edit dialog from dialog (yes really) @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -210,6 +210,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/edit-image-from-dialog.js b/dist/edit-image-from-dialog.js index 317ba560..f7f07337 100644 --- a/dist/edit-image-from-dialog.js +++ b/dist/edit-image-from-dialog.js @@ -3,7 +3,7 @@ @file edit image from dialog @summary edit sprites, items, and tiles from dialog @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.3 @author Sean S. LeBlanc @@ -239,6 +239,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/edit-player-from-dialog.js b/dist/edit-player-from-dialog.js index 5142c6e6..b182152d 100644 --- a/dist/edit-player-from-dialog.js +++ b/dist/edit-player-from-dialog.js @@ -3,7 +3,7 @@ @file edit player from dialog @summary change which sprite is controlled by the player @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -212,6 +212,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/edit-room-from-dialog.js b/dist/edit-room-from-dialog.js index a2525566..5317ada6 100644 --- a/dist/edit-room-from-dialog.js +++ b/dist/edit-room-from-dialog.js @@ -3,7 +3,7 @@ @file edit room from dialog @summary modify the content of a room from dialog @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 6.1 @author Dana Holdampf @@ -331,6 +331,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/end-from-dialog.js b/dist/end-from-dialog.js index 4ac368d9..804c2c64 100644 --- a/dist/end-from-dialog.js +++ b/dist/end-from-dialog.js @@ -3,7 +3,7 @@ @file end-from-dialog @summary trigger an ending from dialog, including narration text @license WTFPL (do WTF you want) -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 7.0 @author @mildmojo @@ -235,6 +235,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/exit-from-dialog.js b/dist/exit-from-dialog.js index 9a9ded20..118c801e 100644 --- a/dist/exit-from-dialog.js +++ b/dist/exit-from-dialog.js @@ -3,7 +3,7 @@ @file exit-from-dialog @summary exit to another room from dialog, including conditionals @license WTFPL (do WTF you want) -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 7.0 @author @mildmojo @@ -270,6 +270,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/external-game-data.js b/dist/external-game-data.js index bc4e9695..b3ffa014 100644 --- a/dist/external-game-data.js +++ b/dist/external-game-data.js @@ -3,7 +3,7 @@ @file external-game-data @summary separate Bitsy game data from your (modded) HTML for easier development @license WTFPL (do WTF you want) -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 4.5, 4.6 @author @mildmojo @@ -223,6 +223,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/favicon-from-sprite.js b/dist/favicon-from-sprite.js index e4582668..fc7588f6 100644 --- a/dist/favicon-from-sprite.js +++ b/dist/favicon-from-sprite.js @@ -3,7 +3,7 @@ @file favicon-from-sprite @summary generate a browser favicon (tab icon) from a Bitsy sprite, including animation! @license WTFPL (do WTF you want) -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.5 @author @mildmojo @@ -211,6 +211,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/follower.js b/dist/follower.js index 58f828d3..9f7e5ea2 100644 --- a/dist/follower.js +++ b/dist/follower.js @@ -3,7 +3,7 @@ @file follower @summary make sprites follow the player @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -256,6 +256,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -574,11 +579,6 @@ addDualDialogTag('followerSync', function () { }); }); -before('moveSprites', function () { - bitsy.moveCounter -= bitsy.deltaTime; // cancel out default movement delay - bitsy.moveCounter += bitsy.deltaTime * (200 / hackOptions.delay); // apply movement delay from options -}); - exports.followers = followers; exports.hackOptions = hackOptions; diff --git a/dist/gamepad-input.js b/dist/gamepad-input.js index 66a04f74..bb1dfb6f 100644 --- a/dist/gamepad-input.js +++ b/dist/gamepad-input.js @@ -3,7 +3,7 @@ @file gamepad input @summary HTML5 gamepad support @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.1 @author Sean S. LeBlanc @@ -530,6 +530,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/gravity.js b/dist/gravity.js index d81f5736..f45188a9 100644 --- a/dist/gravity.js +++ b/dist/gravity.js @@ -3,7 +3,7 @@ @file gravity @summary Pseudo-platforming/gravity/physics @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.3 @author Cole Sea @@ -294,6 +294,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/itsy-bitsy.js b/dist/itsy-bitsy.js index 91f89fa3..40384236 100644 --- a/dist/itsy-bitsy.js +++ b/dist/itsy-bitsy.js @@ -3,7 +3,7 @@ @file itsy-bitsy @summary for when bitsy's not small enough @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.1 @author Sean S. LeBlanc @@ -212,6 +212,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/javascript-dialog.js b/dist/javascript-dialog.js index 0d929d74..e05b7692 100644 --- a/dist/javascript-dialog.js +++ b/dist/javascript-dialog.js @@ -3,7 +3,7 @@ @file javascript dialog @summary execute arbitrary javascript from dialog @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 4.5, 4.6 @author Sean S. LeBlanc @@ -20,7 +20,7 @@ Examples: move a sprite: (js "sprite['a'].x = 10;") edit palette colour: - (js "getPal(curPal())[0] = [255,0,0];renderImages();") + (js "getPal(curPal())[0] = [255,0,0];renderer.ClearCache();") place an item next to player: (js "room[curRoom].items.push({id:'0',x:player().x+1,y:player().y});") verbose facsimile of exit-from-dialog: @@ -222,6 +222,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/logic-operators-extended.js b/dist/logic-operators-extended.js index dd8b90db..cb010cce 100644 --- a/dist/logic-operators-extended.js +++ b/dist/logic-operators-extended.js @@ -2,7 +2,7 @@ 🔀 @file logic-operators-extended @summary adds conditional logic operators -@version 16.0.2 +@version 17.0.0 @requires 7.2 @author @mildmojo @@ -209,6 +209,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/long-dialog.js b/dist/long-dialog.js index fb7168c8..cdb3cc4d 100644 --- a/dist/long-dialog.js +++ b/dist/long-dialog.js @@ -3,7 +3,7 @@ @file long dialog @summary put more words onscreen @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -215,6 +215,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/multi-sprite-avatar.js b/dist/multi-sprite-avatar.js index 8aeb9c53..bb518c8b 100644 --- a/dist/multi-sprite-avatar.js +++ b/dist/multi-sprite-avatar.js @@ -3,7 +3,7 @@ @file multi-sprite avatar @summary make the player big @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -228,6 +228,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/noclip.js b/dist/noclip.js index a1434d96..8ac982a9 100644 --- a/dist/noclip.js +++ b/dist/noclip.js @@ -3,7 +3,7 @@ @file noclip @summary walk through wall tiles, sprites, items, exits, and endings @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -223,6 +223,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/online.js b/dist/online.js index e761e875..773cdd67 100644 --- a/dist/online.js +++ b/dist/online.js @@ -3,7 +3,7 @@ @file online @summary multiplayer bitsy @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @description @@ -223,6 +223,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; @@ -359,7 +364,7 @@ Examples: move a sprite: (js "sprite['a'].x = 10;") edit palette colour: - (js "getPal(curPal())[0] = [255,0,0];renderImages();") + (js "getPal(curPal())[0] = [255,0,0];renderer.ClearCache();") place an item next to player: (js "room[curRoom].items.push({id:'0',x:player().x+1,y:player().y});") verbose facsimile of exit-from-dialog: diff --git a/dist/opaque-tiles.js b/dist/opaque-tiles.js index 55e15ac9..2bc31702 100644 --- a/dist/opaque-tiles.js +++ b/dist/opaque-tiles.js @@ -3,7 +3,7 @@ @file opaque tiles @summary tiles which hide the player @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -209,6 +209,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/palette-maps.js b/dist/palette-maps.js index 9299f0b6..128e1251 100644 --- a/dist/palette-maps.js +++ b/dist/palette-maps.js @@ -3,7 +3,7 @@ @file palette maps @summary allows color pallettes to be defined on a tile-by-tile basis @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 6.1 @author Dana Holdampf @@ -374,6 +374,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/paragraph-break.js b/dist/paragraph-break.js index dcd6d244..20fd7d01 100644 --- a/dist/paragraph-break.js +++ b/dist/paragraph-break.js @@ -3,7 +3,7 @@ @file paragraph-break @summary Adds paragraph breaks to the dialogue parser @license WTFPL (do WTF you want) -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 5.0, 5.1 @author Sean S. LeBlanc, David Mowatt @@ -217,6 +217,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/permanent-items.js b/dist/permanent-items.js index f2175930..8f5db3b7 100644 --- a/dist/permanent-items.js +++ b/dist/permanent-items.js @@ -3,7 +3,7 @@ @file permanent items @summary prevent some items from being picked up @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -207,6 +207,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/push-sprites.js b/dist/push-sprites.js index eef2b3e9..35673a0a 100644 --- a/dist/push-sprites.js +++ b/dist/push-sprites.js @@ -3,7 +3,7 @@ @file push sprites @summary sokoban-style sprite pushing @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.4 @author jan0sc @@ -351,6 +351,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/replace-drawing.js b/dist/replace-drawing.js index 825b3b42..0d75ff4e 100644 --- a/dist/replace-drawing.js +++ b/dist/replace-drawing.js @@ -3,7 +3,7 @@ @file replace drawing @summary add name-tags to replace drawings when the game is loading @license MIT -@version 16.0.2 +@version 17.0.0 @requires 6.3 @author Elkie Nova @@ -218,6 +218,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/save.js b/dist/save.js index 1c7e98a6..fb0da801 100644 --- a/dist/save.js +++ b/dist/save.js @@ -3,7 +3,7 @@ @file save @summary save/load your game @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.4 @author Sean S. LeBlanc @@ -236,6 +236,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/smooth-moves.js b/dist/smooth-moves.js index 08e51fcb..25c44371 100644 --- a/dist/smooth-moves.js +++ b/dist/smooth-moves.js @@ -3,7 +3,7 @@ @file smooth moves @summary ease the player's movement @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 6.3 @author Sean S. LeBlanc @@ -211,6 +211,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/solid-items.js b/dist/solid-items.js index e072e53a..558f605c 100644 --- a/dist/solid-items.js +++ b/dist/solid-items.js @@ -3,7 +3,7 @@ @file solid items @summary treat some items like sprites that can be placed multiple times @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -208,6 +208,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/sprite-effects.js b/dist/sprite-effects.js index 6d15c260..74292978 100644 --- a/dist/sprite-effects.js +++ b/dist/sprite-effects.js @@ -3,7 +3,7 @@ @file sprite effects @summary like text effects, but for sprites @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.1 @author Sean S. LeBlanc @@ -256,6 +256,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/stopwatch.js b/dist/stopwatch.js index 9467b0ca..f61f59f1 100644 --- a/dist/stopwatch.js +++ b/dist/stopwatch.js @@ -3,7 +3,7 @@ @file stopwatch @summary time player actions @license MIT -@version 16.0.2 +@version 17.0.0 @author Lenny Magner @description @@ -242,6 +242,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/text-to-speech.js b/dist/text-to-speech.js index d811a8be..b4f3646a 100644 --- a/dist/text-to-speech.js +++ b/dist/text-to-speech.js @@ -3,7 +3,7 @@ @file text-to-speech @summary text-to-speech for bitsy dialog @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.5 @author Sean S. LeBlanc @@ -233,6 +233,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/textbox-styler.js b/dist/textbox-styler.js index e55d176e..fa06d7ad 100644 --- a/dist/textbox-styler.js +++ b/dist/textbox-styler.js @@ -3,7 +3,7 @@ @file textbox styler @summary customize the style and properties of the textbox @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 6.1 @author Dana Holdampf & Sean S. LeBlanc @@ -580,6 +580,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/tracery-processing.js b/dist/tracery-processing.js index 63b390b6..ff7e3cb8 100644 --- a/dist/tracery-processing.js +++ b/dist/tracery-processing.js @@ -3,7 +3,7 @@ @file tracery processing @summary process all dialog text with a tracery grammar @license MIT -@version 16.0.2 +@version 17.0.0 @requires 7.0 @author Sean S. LeBlanc @@ -1077,6 +1077,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/transitions.js b/dist/transitions.js index 44487032..36bf69de 100644 --- a/dist/transitions.js +++ b/dist/transitions.js @@ -3,7 +3,7 @@ @file transitions @summary customizable WebGL transitions @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -263,6 +263,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/transparent-background.js b/dist/transparent-background.js index b6eb4756..97f6a7cc 100644 --- a/dist/transparent-background.js +++ b/dist/transparent-background.js @@ -3,7 +3,7 @@ @file transparent background @summary makes the game have a transparent background @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 7.2 @author Cephalopodunk & Sean S. LeBlanc @@ -210,6 +210,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/transparent-dialog.js b/dist/transparent-dialog.js index 155c2981..2be1d04e 100644 --- a/dist/transparent-dialog.js +++ b/dist/transparent-dialog.js @@ -3,7 +3,7 @@ @file transparent dialog @summary makes the dialog box have a transparent background @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -198,6 +198,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/transparent-sprites.js b/dist/transparent-sprites.js index be58da42..4f2c42f5 100644 --- a/dist/transparent-sprites.js +++ b/dist/transparent-sprites.js @@ -3,7 +3,7 @@ @file transparent sprites @summary makes all sprites have transparent backgrounds @license MIT -@version 16.0.2 +@version 17.0.0 @requires Bitsy Version: 6.1 @author Sean S. LeBlanc @@ -208,6 +208,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/twine-bitsy-comms.js b/dist/twine-bitsy-comms.js index 958428fa..e9f4ebc6 100644 --- a/dist/twine-bitsy-comms.js +++ b/dist/twine-bitsy-comms.js @@ -3,7 +3,7 @@ @file twine bitsy comms @summary interprocess communication for twine and bitsy @license MIT -@version 16.0.2 +@version 17.0.0 @requires 5.4 @author Sean S. LeBlanc @@ -272,6 +272,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/dist/unique-items.js b/dist/unique-items.js index cd7f772d..80892662 100644 --- a/dist/unique-items.js +++ b/dist/unique-items.js @@ -3,7 +3,7 @@ @file unique items @summary items which, when picked up, remove all other instances of that item from the game @license MIT -@version 16.0.2 +@version 17.0.0 @author Sean S. LeBlanc @description @@ -207,6 +207,11 @@ if (!hooked) { // Hook everything kitsy.applyHooks(); + // reset callbacks using hacked functions + bitsy.bitsyOnUpdate(bitsy.update); + bitsy.bitsyOnQuit(bitsy.stopGame); + bitsy.bitsyOnLoad(bitsy.load_game); + // Start the game bitsy.startExportedGame.apply(this, arguments); }; diff --git a/package-lock.json b/package-lock.json index eddea047..f3c0dc45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bitsy/hecks", - "version": "16.0.2", + "version": "17.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 148327cb..80099b85 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "hacks" ], "main": "index.mjs", - "version": "16.0.2", + "version": "17.0.0", "scripts": { "build": "rollup -c", "test": "jest --runInBand",