mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
117 lines
4.1 KiB
HTML
117 lines
4.1 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>LOS Visualization Test</title>
|
||
|
|
<link rel="stylesheet" href="css/main.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/minigames-framework.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/lockpicking.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/password-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/pin.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/biometrics-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/bluetooth-scanner.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/phone-chat-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/person-chat-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/inventory.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/notifications.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/modals.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/panels.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/npc-interactions.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/npc-barks.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/text-file-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/container-minigame.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/dusting.css?v=1">
|
||
|
|
<link rel="stylesheet" href="css/notes.css?v=1">
|
||
|
|
<style>
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
background: #1a1a1a;
|
||
|
|
font-family: Arial, sans-serif;
|
||
|
|
}
|
||
|
|
#debug-panel {
|
||
|
|
position: fixed;
|
||
|
|
top: 10px;
|
||
|
|
right: 10px;
|
||
|
|
background: rgba(0, 0, 0, 0.9);
|
||
|
|
color: #00ff00;
|
||
|
|
padding: 10px;
|
||
|
|
border: 2px solid #00ff00;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-family: monospace;
|
||
|
|
font-size: 12px;
|
||
|
|
z-index: 9999;
|
||
|
|
max-width: 300px;
|
||
|
|
max-height: 200px;
|
||
|
|
overflow: auto;
|
||
|
|
}
|
||
|
|
.debug-line {
|
||
|
|
margin: 5px 0;
|
||
|
|
padding: 2px;
|
||
|
|
}
|
||
|
|
button {
|
||
|
|
background: #00ff00;
|
||
|
|
color: #000;
|
||
|
|
border: 2px solid #00ff00;
|
||
|
|
padding: 8px 12px;
|
||
|
|
margin: 5px;
|
||
|
|
cursor: pointer;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
button:hover {
|
||
|
|
background: #00cc00;
|
||
|
|
border-color: #00cc00;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="game-container"></div>
|
||
|
|
|
||
|
|
<div id="debug-panel">
|
||
|
|
<div class="debug-line">📡 LOS Debug Panel</div>
|
||
|
|
<div class="debug-line">
|
||
|
|
<button onclick="window.enableLOS()">Enable LOS</button>
|
||
|
|
<button onclick="window.disableLOS()">Disable LOS</button>
|
||
|
|
</div>
|
||
|
|
<div id="debug-status" class="debug-line">Loading...</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Phaser library -->
|
||
|
|
<script src="assets/vendor/phaser.js?v=1"></script>
|
||
|
|
|
||
|
|
<!-- EasyStar pathfinding -->
|
||
|
|
<script src="assets/vendor/easystar.js?v=1"></script>
|
||
|
|
|
||
|
|
<!-- CyberChef -->
|
||
|
|
<script src="assets/cyberchef/CyberChef.js?v=1"></script>
|
||
|
|
|
||
|
|
<!-- Ink -->
|
||
|
|
<script src="assets/vendor/ink.js"></script>
|
||
|
|
|
||
|
|
<!-- Main game script (with los flag in URL) -->
|
||
|
|
<script type="module">
|
||
|
|
// Force LOS visualization on load
|
||
|
|
window.location.search = '?los=1';
|
||
|
|
import('./js/main.js?v=1').then(() => {
|
||
|
|
console.log('✅ Game loaded');
|
||
|
|
|
||
|
|
// Update debug panel
|
||
|
|
setInterval(() => {
|
||
|
|
const status = document.getElementById('debug-status');
|
||
|
|
if (window.npcManager) {
|
||
|
|
const enabled = window.npcManager.losVisualizationEnabled;
|
||
|
|
const vizCount = window.npcManager.losVisualizations?.size || 0;
|
||
|
|
const npcCount = window.npcManager.npcs?.size || 0;
|
||
|
|
status.innerHTML = `
|
||
|
|
<div>Status: ${enabled ? '✅ ENABLED' : '❌ DISABLED'}</div>
|
||
|
|
<div>NPCs: ${npcCount}</div>
|
||
|
|
<div>Visualized: ${vizCount}</div>
|
||
|
|
`;
|
||
|
|
}
|
||
|
|
}, 500);
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|