diff --git a/_layouts/level.html b/_layouts/level.html
index 537c881..9eb7bf9 100644
--- a/_layouts/level.html
+++ b/_layouts/level.html
@@ -43,7 +43,7 @@
top: 10px;
right: 10px;
padding: 10px 20px;
- font-size: 16px;
+ font-size: 32px;
z-index: 1001;
background-color: #007bff;
color: white;
@@ -59,7 +59,7 @@
top: 70px;
right: 10px;
padding: 10px 20px;
- font-size: 16px;
+ font-size: 32px;
z-index: 1001;
background-color: #007bff;
color: white;
diff --git a/game/acceptUserInput.js b/game/acceptUserInput.js
index 2624576..a1ac69a 100644
--- a/game/acceptUserInput.js
+++ b/game/acceptUserInput.js
@@ -52,8 +52,8 @@ export function acceptUserInput(engine, render, gameState) {
}
}
- let undoButton = document.getElementById('undo-button');
- function holdit() {
+ function setupUndoButton() {
+ let undoButton = document.getElementById('undo-button');
let t;
let start = 100;
let speedup = 1.05;
@@ -69,11 +69,13 @@ export function acceptUserInput(engine, render, gameState) {
}
undoButton.onmouseup = function () {
+ start = 100;
+ speedup = 1.05;
clearTimeout(t);
}
- };
- undoButton.onclick = holdit;// undo button
-
+ }
+
+ setupUndoButton();
function onActiveSlingshot(mousePosition) {
// Define a small region around the mouse