From 0fc6bfb215800f9560c11b7da1b7600bcecd85ca Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 May 2024 19:27:51 +0000 Subject: [PATCH] chore(release): 22.1.0 [skip ci] # [22.1.0](https://github.com/seleb/bitsy-hacks/compare/v22.0.0...v22.1.0) (2024-05-30) ### Bug Fixes * **save:** shuffle dialog not working as expected ([90ecd4d](https://github.com/seleb/bitsy-hacks/commit/90ecd4d4e88e6dbd6097b967254cc90967342b9a)) ### Features * update to bitsy v8.12 ([a84c283](https://github.com/seleb/bitsy-hacks/commit/a84c283ca7952628db3455194bcfe08d0c13928d)) --- CHANGELOG.md | 12 ++++++++++ README.md | 2 +- dist/avatar-by-room.js | 14 +++++------ dist/backdrops.js | 16 ++++++------- dist/basic-sfx.js | 12 +++++----- dist/bitsymuse.js | 12 +++++----- dist/canvas-replacement.js | 10 ++++---- dist/character-portraits-animated.js | 12 +++++----- dist/character-portraits.js | 8 +++---- dist/close-on-ending.js | 8 +++---- dist/corrupt.js | 18 +++++++------- dist/custom-exit-effects.js | 8 +++---- dist/custom-text-effect.js | 8 +++---- dist/dialog-audio-vocal-synth.js | 16 ++++++------- dist/dialog-audio.js | 8 +++---- dist/dialog-box-transition.js | 8 +++---- dist/dialog-choices.js | 20 +++++++--------- dist/dialog-jump.js | 8 +++---- dist/dialog-pause.js | 8 +++---- dist/dialog-prompt.js | 12 +++++----- dist/direction-in-dialog.js | 8 +++---- dist/directional-avatar.js | 36 +++++++--------------------- dist/dynamic-background.js | 12 +++++----- dist/edit-dialog-from-dialog.js | 14 +++++------ dist/edit-image-from-dialog.js | 18 +++++++------- dist/edit-player-from-dialog.js | 14 +++++------ dist/edit-room-from-dialog.js | 12 +++++----- dist/end-from-dialog.js | 8 +++---- dist/exit-from-dialog.js | 12 +++++----- dist/external-game-data.js | 8 +++---- dist/favicon-from-sprite.js | 14 +++++------ dist/follower.js | 14 +++++------ dist/gamepad-input.js | 8 +++---- dist/gravity.js | 32 +++++++------------------ dist/itsy-bitsy.js | 8 +++---- dist/javascript-dialog.js | 8 +++---- dist/logic-operators-extended.js | 8 +++---- dist/long-dialog.js | 12 +++++----- dist/multi-sprite-avatar.js | 16 ++++++------- dist/online.js | 30 +++++++++++------------ dist/opaque-tiles.js | 8 +++---- dist/paragraph-break.js | 8 +++---- dist/permanent-items.js | 8 +++---- dist/push-sprites.js | 36 +++++++--------------------- dist/replace-drawing.js | 8 +++---- dist/save.js | 18 +++++++------- dist/solid-items.js | 8 +++---- dist/stopwatch.js | 12 +++++----- dist/text-to-speech.js | 8 +++---- dist/tracery-processing.js | 8 +++---- dist/transitions.js | 14 +++++------ dist/transparent-background.js | 12 +++++----- dist/transparent-dialog.js | 8 +++---- dist/transparent-sprites.js | 8 +++---- dist/twine-bitsy-comms.js | 8 +++---- dist/unique-items.js | 8 +++---- package-lock.json | 4 ++-- package.json | 2 +- 58 files changed, 330 insertions(+), 368 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49bfa495..fdfe9280 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# [22.1.0](https://github.com/seleb/bitsy-hacks/compare/v22.0.0...v22.1.0) (2024-05-30) + + +### Bug Fixes + +* **save:** shuffle dialog not working as expected ([90ecd4d](https://github.com/seleb/bitsy-hacks/commit/90ecd4d4e88e6dbd6097b967254cc90967342b9a)) + + +### Features + +* update to bitsy v8.12 ([a84c283](https://github.com/seleb/bitsy-hacks/commit/a84c283ca7952628db3455194bcfe08d0c13928d)) + # [22.0.0](https://github.com/seleb/bitsy-hacks/compare/v21.5.0...v22.0.0) (2023-12-19) diff --git a/README.md b/README.md index 7158b2cb..73110975 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ npm i @bitsy/hecks A collection of re-usable scripts for [Adam Le Doux](https://twitter.com/adamledoux)'s [Bitsy Game Maker](https://ledoux.itch.io/bitsy). See [Ayolland's Borksy](https://ayolland.itch.io/borksy) for a GUI that allows you to use these hacks with less copy-pasting. -Last tested against Bitsy 8.8 +Last tested against Bitsy 8.12 - [Contents](#contents) - [How to use](#how-to-use) diff --git a/dist/avatar-by-room.js b/dist/avatar-by-room.js index 24935c55..f6df3b0c 100644 --- a/dist/avatar-by-room.js +++ b/dist/avatar-by-room.js @@ -4,8 +4,8 @@ @summary change the avatar in certain rooms @license MIT @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -173,8 +173,8 @@ 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 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ var kitsy = (window.kitsy = window.kitsy || { @@ -236,8 +236,8 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ @@ -256,7 +256,7 @@ function getImage(name, map) { ? name : Object.keys(map).find(function (e) { return map[e].name === name; - }); + }); return map[id]; } diff --git a/dist/backdrops.js b/dist/backdrops.js index 7fdcb0db..6c37c853 100644 --- a/dist/backdrops.js +++ b/dist/backdrops.js @@ -4,8 +4,8 @@ @summary makes the game have a backdrop @license MIT @author Cephalopodunk & Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -177,8 +177,8 @@ 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 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ var kitsy = (window.kitsy = window.kitsy || { @@ -242,8 +242,8 @@ var after = kitsy.after; @summary makes all sprites have transparent backgrounds (deprecated) @license MIT @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -288,8 +288,8 @@ before('renderer.SetDrawings', function () { @summary makes the game have a transparent background @license MIT @author Cephalopodunk & Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description diff --git a/dist/basic-sfx.js b/dist/basic-sfx.js index f0cea849..087d4cdb 100644 --- a/dist/basic-sfx.js +++ b/dist/basic-sfx.js @@ -4,8 +4,8 @@ @summary "walk" and "talk" sound effect support @license MIT @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -168,8 +168,8 @@ 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 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ var kitsy = (window.kitsy = window.kitsy || { @@ -231,8 +231,8 @@ var after = kitsy.after; @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ diff --git a/dist/bitsymuse.js b/dist/bitsymuse.js index 15389695..0cd11ed8 100644 --- a/dist/bitsymuse.js +++ b/dist/bitsymuse.js @@ -4,8 +4,8 @@ @summary A variety of Bitsy sound and music handlers @license MIT @author David Mowatt -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -202,8 +202,8 @@ 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 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ var kitsy = (window.kitsy = window.kitsy || { @@ -363,8 +363,8 @@ function addDualDialogTag(tag, fn) { @file utils @summary miscellaneous bitsy utilities @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 */ diff --git a/dist/canvas-replacement.js b/dist/canvas-replacement.js index c25a3747..281a470f 100644 --- a/dist/canvas-replacement.js +++ b/dist/canvas-replacement.js @@ -4,8 +4,8 @@ @summary WebGLazy bitsy integration (this one's mostly just for me) @license MIT @author Sean S. LeBlanc -@version 22.0.0 -@requires Bitsy 8.8 +@version 22.1.0 +@requires Bitsy 8.12 @description @@ -62,7 +62,7 @@ var hackOptions = { }, }; -function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;is.timestep&&(s.render(),s.accumulator-=s.timestep),s.requestAnimationFrame(s.main);},this.sources=h,this.source=n||this.getSource(),this.hideSource=l,this.background=d,this.scaleMultiplier=m,this._scale=m,this.scaleMode=f,this.allowDownscaling=E,this.timestep=b,this.disableFeedbackTexture=!!y,this.disableMouseEvents=!!S,this.pixelate=L,this.vertex=M,this.fragment=k,R&&this.init();}return i(e,[{key:"getSource",value:function(){var t,e=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;this.program&&this.gl.deleteProgram(this.program),this.shader=new n(t,e),this.shader.useProgram(),this.glLocations={position:this.gl.getAttribLocation(this.shader.program,"position"),tex0:this.gl.getUniformLocation(this.shader.program,"tex0"),tex1:this.gl.getUniformLocation(this.shader.program,"tex1"),time:this.gl.getUniformLocation(this.shader.program,"time"),resolution:this.gl.getUniformLocation(this.shader.program,"resolution")},this.gl.uniform1i(this.glLocations.tex0,0),this.gl.uniform1i(this.glLocations.tex1,1),this.gl.uniform2f(this.glLocations.resolution,this.size.x,this.size.y),this.gl.enableVertexAttribArray(this.glLocations.position),this.gl.vertexAttribPointer(this.glLocations.position,2,this.gl.FLOAT,!1,0,0);}},{key:"renderCanvas",value:function(){this.canvas2d.clearRect(0,0,this.size.x,this.size.y),this.canvas2d.drawImage(this.source,0,0);}},{key:"renderGL",value:function(){this.textureSource.update(),this.gl.uniform1f(this.glLocations.time,this.curTime),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT),this.shader.useProgram(),this.textureSource.bind(),this.disableFeedbackTexture||this.textureFeedback.bind(),this.gl.drawArrays(this.gl.TRIANGLES,0,this.vertices.length/2),this.disableFeedbackTexture||this.textureFeedback.update();}},{key:"onResize",value:function(){var t,e,i=this.canvasContainer.offsetWidth,s=this.canvasContainer.offsetHeight,n=i/s,o=this.constructor.SCALE_MODES,r=1;switch(ns.timestep&&(s.render(),s.accumulator-=s.timestep),s.requestAnimationFrame(s.main);},this.sources=h,this.source=n||this.getSource(),this.hideSource=l,this.background=d,this.scaleMultiplier=m,this._scale=m,this.scaleMode=f,this.allowDownscaling=E,this.timestep=b,this.disableFeedbackTexture=!!y,this.disableMouseEvents=!!S,this.pixelate=L,this.vertex=M,this.fragment=k,R&&this.init();}return i(e,[{key:"getSource",value:function(){var t,e=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;this.program&&this.gl.deleteProgram(this.program),this.shader=new n(t,e),this.shader.useProgram(),this.glLocations={position:this.gl.getAttribLocation(this.shader.program,"position"),tex0:this.gl.getUniformLocation(this.shader.program,"tex0"),tex1:this.gl.getUniformLocation(this.shader.program,"tex1"),time:this.gl.getUniformLocation(this.shader.program,"time"),resolution:this.gl.getUniformLocation(this.shader.program,"resolution")},this.gl.uniform1i(this.glLocations.tex0,0),this.gl.uniform1i(this.glLocations.tex1,1),this.gl.uniform2f(this.glLocations.resolution,this.size.x,this.size.y),this.gl.enableVertexAttribArray(this.glLocations.position),this.gl.vertexAttribPointer(this.glLocations.position,2,this.gl.FLOAT,!1,0,0);}},{key:"renderCanvas",value:function(){this.canvas2d.clearRect(0,0,this.size.x,this.size.y),this.canvas2d.drawImage(this.source,0,0);}},{key:"renderGL",value:function(){this.textureSource.update(),this.gl.uniform1f(this.glLocations.time,this.curTime),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT),this.shader.useProgram(),this.textureSource.bind(),this.disableFeedbackTexture||this.textureFeedback.bind(),this.gl.drawArrays(this.gl.TRIANGLES,0,this.vertices.length/2),this.disableFeedbackTexture||this.textureFeedback.update();}},{key:"onResize",value:function(){var t,e,i=this.canvasContainer.offsetWidth,s=this.canvasContainer.offsetHeight,n=i/s,o=this.constructor.SCALE_MODES,r=1;switch(ns.timestep&&(s.render(),s.accumulator-=s.timestep),s.requestAnimationFrame(s.main);},this.sources=h,this.source=n||this.getSource(),this.hideSource=l,this.background=d,this.scaleMultiplier=m,this._scale=m,this.scaleMode=f,this.allowDownscaling=E,this.timestep=b,this.disableFeedbackTexture=!!y,this.disableMouseEvents=!!S,this.pixelate=L,this.vertex=M,this.fragment=k,R&&this.init();}return i(e,[{key:"getSource",value:function(){var t,e=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;this.program&&this.gl.deleteProgram(this.program),this.shader=new n(t,e),this.shader.useProgram(),this.glLocations={position:this.gl.getAttribLocation(this.shader.program,"position"),tex0:this.gl.getUniformLocation(this.shader.program,"tex0"),tex1:this.gl.getUniformLocation(this.shader.program,"tex1"),time:this.gl.getUniformLocation(this.shader.program,"time"),resolution:this.gl.getUniformLocation(this.shader.program,"resolution")},this.gl.uniform1i(this.glLocations.tex0,0),this.gl.uniform1i(this.glLocations.tex1,1),this.gl.uniform2f(this.glLocations.resolution,this.size.x,this.size.y),this.gl.enableVertexAttribArray(this.glLocations.position),this.gl.vertexAttribPointer(this.glLocations.position,2,this.gl.FLOAT,!1,0,0);}},{key:"renderCanvas",value:function(){this.canvas2d.clearRect(0,0,this.size.x,this.size.y),this.canvas2d.drawImage(this.source,0,0);}},{key:"renderGL",value:function(){this.textureSource.update(),this.gl.uniform1f(this.glLocations.time,this.curTime),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT),this.shader.useProgram(),this.textureSource.bind(),this.disableFeedbackTexture||this.textureFeedback.bind(),this.gl.drawArrays(this.gl.TRIANGLES,0,this.vertices.length/2),this.disableFeedbackTexture||this.textureFeedback.update();}},{key:"onResize",value:function(){var t,e,i=this.canvasContainer.offsetWidth,s=this.canvasContainer.offsetHeight,n=i/s,o=this.constructor.SCALE_MODES,r=1;switch(ns.timestep&&(s.render(),s.accumulator-=s.timestep),s.requestAnimationFrame(s.main);},this.sources=h,this.source=n||this.getSource(),this.hideSource=l,this.background=d,this.scaleMultiplier=m,this._scale=m,this.scaleMode=f,this.allowDownscaling=E,this.timestep=b,this.disableFeedbackTexture=!!y,this.disableMouseEvents=!!S,this.pixelate=L,this.vertex=M,this.fragment=k,R&&this.init();}return i(e,[{key:"getSource",value:function(){var t,e=[];for(t=0;t0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;this.program&&this.gl.deleteProgram(this.program),this.shader=new n(t,e),this.shader.useProgram(),this.glLocations={position:this.gl.getAttribLocation(this.shader.program,"position"),tex0:this.gl.getUniformLocation(this.shader.program,"tex0"),tex1:this.gl.getUniformLocation(this.shader.program,"tex1"),time:this.gl.getUniformLocation(this.shader.program,"time"),resolution:this.gl.getUniformLocation(this.shader.program,"resolution")},this.gl.uniform1i(this.glLocations.tex0,0),this.gl.uniform1i(this.glLocations.tex1,1),this.gl.uniform2f(this.glLocations.resolution,this.size.x,this.size.y),this.gl.enableVertexAttribArray(this.glLocations.position),this.gl.vertexAttribPointer(this.glLocations.position,2,this.gl.FLOAT,!1,0,0);}},{key:"renderCanvas",value:function(){this.canvas2d.clearRect(0,0,this.size.x,this.size.y),this.canvas2d.drawImage(this.source,0,0);}},{key:"renderGL",value:function(){this.textureSource.update(),this.gl.uniform1f(this.glLocations.time,this.curTime),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT),this.shader.useProgram(),this.textureSource.bind(),this.disableFeedbackTexture||this.textureFeedback.bind(),this.gl.drawArrays(this.gl.TRIANGLES,0,this.vertices.length/2),this.disableFeedbackTexture||this.textureFeedback.update();}},{key:"onResize",value:function(){var t,e,i=this.canvasContainer.offsetWidth,s=this.canvasContainer.offsetHeight,n=i/s,o=this.constructor.SCALE_MODES,r=1;switch(n