feat: Add flashlight battery and manual controls, enable post-processing, dim ambient light, and remove debug code.
This commit is contained in:
21
index.html
21
index.html
@@ -6,24 +6,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Horror Game</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script>
|
||||
window.onerror = function (msg, url, lineNo, columnNo, error) {
|
||||
const logDiv = document.getElementById('debug-log');
|
||||
if (logDiv) {
|
||||
logDiv.style.display = 'block';
|
||||
logDiv.innerHTML += `<div style="color:red; background:white">CRITICAL: ${msg} [Line: ${lineNo}]</div>`;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
window.test2D = function () {
|
||||
const c = document.createElement('canvas');
|
||||
c.width = 50; c.height = 50;
|
||||
c.style.position = 'fixed'; c.bottom = '0'; c.right = '0'; c.zIndex = '10001';
|
||||
document.body.appendChild(c);
|
||||
const ctx = c.getContext('2d');
|
||||
ctx.fillStyle = 'red'; ctx.fillRect(0, 0, 50, 50);
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -39,8 +21,7 @@
|
||||
<div id="battery">Battery: <span id="battery-level">100%</span></div>
|
||||
</div>
|
||||
<div id="debug-log"
|
||||
style="position: absolute; top: 10px; left: 10px; z-index: 10000; color: lime; font-family: monospace; pointer-events: none; background: rgba(0,0,0,0.8); max-height: 80%; overflow-y: auto; font-size: 14px; padding: 10px; width: 300px; display: block;">
|
||||
<div>> Logger Initialized</div>
|
||||
style="position: absolute; top: 10px; left: 10px; z-index: 10000; color: lime; font-family: monospace; pointer-events: none; background: rgba(0,0,0,0.8); max-height: 50%; overflow-y: auto; font-size: 12px; padding: 10px; width: 300px; display: none;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user