34160-vm/index.php
Flatlogic Bot d0003a5a53 final
2025-09-17 16:23:37 +00:00

88 lines
2.5 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Slicer</title>
<style>
body {
margin: 0;
background-color: #1a1a1a;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}
canvas {
background-color: #2c2c2c;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
#ui-container {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
display: flex;
justify-content: space-between;
color: #fff;
font-size: 2em;
font-weight: bold;
pointer-events: none;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
#gameOverScreen {
position: absolute;
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
color: white;
text-align: center;
}
#gameOverScreen h1 {
font-size: 4em;
margin-bottom: 0.2em;
}
#finalScore {
font-size: 2em;
margin-bottom: 1em;
}
#restartButton {
font-size: 1.5em;
padding: 10px 30px;
border: 2px solid white;
border-radius: 10px;
background-color: #4CAF50;
color: white;
cursor: pointer;
transition: background-color 0.3s, transform 0.1s;
}
#restartButton:hover {
background-color: #45a049;
}
#restartButton:active {
transform: scale(0.95);
}
</style>
</head>
<body>
<div id="ui-container">
<div id="score">Score: 0</div>
<div id="lives">Lives: 3</div>
</div>
<canvas id="gameCanvas"></canvas>
<div id="gameOverScreen">
<h1>Game Over</h1>
<p id="finalScore">Your Score: 0</p>
<button id="restartButton">Play Again</button>
</div>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>