Skip to content

Commit

Permalink
fix: reinitialize TransitionManager as part of kitsy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Apr 9, 2022
1 parent 6dfac89 commit e241570
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/custom-exit-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,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]);
Expand Down
1 change: 1 addition & 0 deletions src/helpers/kitsy-script-toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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();
Expand Down

0 comments on commit e241570

Please sign in to comment.