2024-05-19 04:37:53 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script src="input.js" defer></script>
|
|
|
|
<script src="player.js" defer></script>
|
|
|
|
<script src="engine.js" defer></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="player"
|
|
|
|
data-sprite="player.png"
|
2024-05-19 22:07:43 +00:00
|
|
|
data-transform="[1,0,0,1,0,0]"
|
|
|
|
data-collision="player"
|
2024-05-19 04:37:53 +00:00
|
|
|
id="player"
|
|
|
|
style="position:absolute;width:50px;height:50px;background-color:black;"></div>
|
|
|
|
<article class="level" id="test">
|
2024-05-19 22:07:43 +00:00
|
|
|
<div class="environment"
|
|
|
|
data-collision="environment"
|
|
|
|
data-pos-x="0"
|
|
|
|
data-pos-y="0"
|
|
|
|
data-height="100"
|
|
|
|
data-width="100"
|
|
|
|
>
|
|
|
|
</div>
|
2024-05-19 04:37:53 +00:00
|
|
|
<table class="enemy" id="table-enemy" >
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
o o o
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</article>
|
|
|
|
</body>
|
|
|
|
</html>
|