feat(#3): simplify code

This commit is contained in:
Juan Sebastián Montoya 2024-07-14 02:24:26 -05:00
parent 6c1e0019f7
commit 80292d6cce
26 changed files with 1251 additions and 1672 deletions

View file

@ -1,48 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Evolver</title>
<style>
html,
body {
margin: 0;
height: 100%;
width: 100%;
}
<html lang="en">
#game {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Baena</title>
<link rel="stylesheet" href="index.css">
</head>
canvas {
background-color: #fbf7f3;
border: 1px solid black;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
<body>
<div id="resources">
<img id="overworld" src="resources/overworld.png">
</div>
<div id="container">
<button id="debug">Debug</button>
<button id="level1">Level 1</button>
<button id="level2">Level 2</button>
<canvas id="game"></canvas>
</div>
<script type="module" src="index.js"></script>
</body>
button {
margin: 5px;
}
</style>
</head>
<body>
<div id="game">
<div id="controls">
<button id="debug">Debug</button>
</div>
<canvas></canvas>
</div>
<script
type="module"
src="src/index.js"
></script>
</body>
</html>
</html>