Skip to content

Commit

Permalink
Scroll camera by cursor-at-bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 12, 2023
1 parent bf5772b commit 4d55154
Show file tree
Hide file tree
Showing 24 changed files with 1,541 additions and 1,063 deletions.
2 changes: 2 additions & 0 deletions dist/rexcursoratboundsplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
key: "boot",
value: function boot() {
this.scene.input.on('pointermove', this.onPointerMove, this);
this.scene.input.on('gameout', this.clearAllKeysState, this);
this.scene.sys.events.once('shutdown', this.destroy, this);
}
}, {
Expand All @@ -292,6 +293,7 @@
return;
}
this.scene.input.off('pointermove', this.onPointerMove, this);
this.scene.input.off('gameout', this.clearAllKeysState, this);
this.scene.sys.events.off('shutdown', this.destroy, this);
this.scene = undefined;
_get(_getPrototypeOf(CursorAtBounds.prototype), "shutdown", this).call(this);
Expand Down
2 changes: 1 addition & 1 deletion dist/rexcursoratboundsplugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4d55154

Please sign in to comment.