-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (81 loc) · 2.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Street Fighter II</title>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
display: flex;
flex-direction: column;
--form-height: 6rem;
--form-content-size: 2rem;
}
body,
canvas {
background-color: black;
}
canvas {
width: 100%;
object-fit: contain;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
form {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
width: 100%;
gap: var(--form-content-size);
height: var(--form-height-size);
}
form * {
font-size: var(--form-content-size);
}
input[type='checkbox'] {
width: var(--form-content-size);
height: var(--form-content-size);
}
main {
display: flex;
height: calc(100% - var(--form-height));
}
label {
color: white;
}
</style>
<script type="module" src="./src/index.js"></script>
</head>
<body>
<!-- form to choose states for ken and ryu -->
<form>
<div>
<input id="ken" type="checkbox" name="fighter" value="Ken" />
<label for="ken">Ken</label>
</div>
<div>
<input id="ryu" type="checkbox" name="fighter" value="Ryu" />
<label for="ryu">Ryu</label>
</div>
<select id="stage-dropdown" name="state"></select>
<button type="submit">Transition</button>
</form>
<main>
<canvas width="384" height="224"></canvas>
</main>
<img src="./images/ken.png" alt="ken" style="display: none" />
<img
src="./images/Ryu-SF2-Stage.png"
alt="background"
style="display: none"
/>
<img src="./images/ryu.png" alt="ryu" style="display: none" />
</body>
</html>