Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBeauchet authored Sep 13, 2022
1 parent 687ad25 commit efb7e76
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ iframe.src = "https://editor.isf.video/shaders/5e7a7f837c113618206ddf11/embed?em
iframe.setAttribute("frameborder", "0");
document.body.appendChild(iframe);

const refreshScores = () => {
window.scores = JSON.parse(localStorage.getItem('scores') || "{}")
};

window.onload = async () => {
window.canvas = document.querySelector("#myCanvas");
window.engine = new BABYLON.Engine(window.canvas, true);

var menu = new MainMenu();
var currentScene = menu;

const refreshScores = () => {
window.scores = JSON.parse(localStorage.getItem('scores') || "{}")
};

refreshScores();

window.changeScene = async (index) => {
Expand Down

0 comments on commit efb7e76

Please sign in to comment.