html-tower/static/index.html

57 lines
2.1 KiB
HTML
Raw Normal View History

2024-05-19 04:37:53 +00:00
<!DOCTYPE html>
<html>
<head>
<script src="transform.js" defer></script>
2024-05-19 04:37:53 +00:00
<script src="input.js" defer></script>
<script src="player.js" defer></script>
<script src="engine.js" defer></script>
</head>
<body
style="margin:0;"
>
2024-05-19 04:37:53 +00:00
<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:rgba(50,0,127,0.7);"
></div>
2024-05-19 04:37:53 +00:00
<article class="level" id="test">
<!-- testing collision -->
2024-05-19 22:07:43 +00:00
<div class="environment"
data-collision="environment"
style="width:500px;height:25px;transform:matrix(1,0,0,1,0,300);background-color:rgba(127,100,0,0.7);"
2024-05-19 22:07:43 +00:00
>
</div>
<!-- testing radio button -->
<form
style="transform:matrix(1,0,0,1,10,600);max-width:80vw;"
>
<fieldset>
<legend>try selecting a radio button to teleport</legend>
<div
style="display:flex;flex-direction:column;"
>
<input
type="radio" id="tut-rad-1" name="tut-rad"
value="tut-rad-1"
style="transform:matrix(1,0,0,1,100,200);"
></input>
<input
type="radio" id="tut-rad-2" name="tut-rad"
value="tut-rad-2" ></input>
<input
type="radio" id="tut-rad-3" name="tut-rad"
value="tut-rad-3" ></input>
<input
type="radio" id="tut-rad-4" name="tut-rad"
value="tut-rad-4" ></input>
</div>
</fieldset>
</form>
2024-05-19 04:37:53 +00:00
</article>
</body>
</html>