diff --git a/index.html b/index.html index c509cbe..a285ca5 100644 --- a/index.html +++ b/index.html @@ -15,9 +15,6 @@ font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } - #gameCanvas { - display: block; - } #ui { position: absolute; top: 20px; @@ -82,6 +79,26 @@ z-index: 100; font-family: 'Courier New', monospace; } + #perfMonitor { + position: absolute; + top: 60px; + right: 20px; + background: rgba(0, 0, 0, 0.7); + padding: 10px; + border-radius: 5px; + color: #00ff00; + font-size: 12px; + font-family: 'Courier New', monospace; + z-index: 100; + display: none; + min-width: 120px; + } + #perfMonitor.visible { + display: block; + } + #perfMonitor .label { + color: #888; + } @media (max-width: 768px) { #instructions { font-size: 14px; @@ -91,6 +108,11 @@ top: 10px; right: 10px; } + #perfMonitor { + top: 40px; + right: 10px; + font-size: 11px; + } } @@ -102,6 +124,12 @@
Final Score: 0
@@ -110,623 +138,22 @@Controls: WASD or Arrow Keys to move | Touch and drag to move (mobile) | Collect yellow coins | Avoid red obstacles!
+Press "T" or shake device to toggle performance monitor