57 lines
1.5 KiB
HTML
57 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pixel-Überlebender - 2D Survival Game</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #2c3e50;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
#gameContainer {
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
color: #ecf0f1;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#gameCanvas {
|
|
border: 3px solid #34495e;
|
|
background-color: #ecf0f1;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
#instructions {
|
|
color: #bdc3c7;
|
|
margin-top: 15px;
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="gameContainer">
|
|
<h1>Pixel-Überlebender</h1>
|
|
|
|
<!-- Das Canvas-Element: Hier wird unser Spiel gezeichnet -->
|
|
<canvas id="gameCanvas" width="800" height="600"></canvas>
|
|
|
|
<div id="instructions">
|
|
<p>Steuerung: Pfeiltasten oder WASD zum Bewegen</p>
|
|
<p>Sammle Ressourcen und überlebe!</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- JavaScript-Datei einbinden -->
|
|
<script src="game.js"></script>
|
|
</body>
|
|
</html> |