2024-05-19 04:37:53 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2024-05-20 19:40:17 +00:00
|
|
|
<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>
|
2024-05-20 19:40:17 +00:00
|
|
|
<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"
|
2024-05-20 19:40:17 +00:00
|
|
|
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">
|
2024-05-20 19:40:17 +00:00
|
|
|
<!-- testing collision -->
|
2024-05-19 22:07:43 +00:00
|
|
|
<div class="environment"
|
|
|
|
data-collision="environment"
|
2024-05-20 19:40:17 +00:00
|
|
|
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>
|
2024-05-20 19:40:17 +00:00
|
|
|
|
|
|
|
<!-- 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>
|