Skip to content

Commit

Permalink
Emscripten: Rename player instance to easyrpgPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Nov 21, 2022
1 parent 7f4a92a commit bdfdb50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/emscripten/emscripten-shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
const keys = new Map();
const keysDown = new Map();
const canvas = document.getElementById('canvas');
let player;
let easyrpgPlayer;
let lastTouchedId;

// Launch the Player and configure it
Expand All @@ -166,8 +166,8 @@
saveFs: undefined
}).then(function(Module) {
// Module is ready
player = Module;
player.initApi();
easyrpgPlayer = Module;
easyrpgPlayer.initApi();

// Custom code here
});
Expand Down

0 comments on commit bdfdb50

Please sign in to comment.