-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (111 loc) · 3.72 KB
/
index.html
File metadata and controls
114 lines (111 loc) · 3.72 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FightGame</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Press Start 2P', cursive;
}
</style>
</head>
<body>
<!-- container -->
<div style=" position: relative; display: inline-block;">
<!-- small container -->
<div style="
padding: 40px;
position: absolute;
display: flex;
width: 100%;
align-items: center;
">
<!-- PlayerA LiveBar -->
<section style="
position: relative;
width: 100%;
display: flex;
justify-content: flex-end;
border-top: 4px solid #E2E8F0;
border-left: 4px solid #E2E8F0;
border-bottom: 4px solid #E2E8F0;
">
<div style ="background-color: rgb(156, 12, 29);height: 30px; width: 100%;"></div>
<div id="HealthPlayerA"
style="
position: absolute;
background-color: #15803D;
top: 0;
bottom: 0;
right: 0;
width: 100%;
"></div>
</section>
<!-- Game Timer -->
<div id="timer"
style="
background-color: #334155;
color: white;
width: 100px;
height: 50px;
flex-shrink:0;
display: flex;
align-items: center;
justify-content: center;
border: 4px solid #E2E8F0;
">timer</div>
<!-- PlayerB LiveBar -->
<section style="
position: relative;
width: 100%;
border-top: 4px solid #E2E8F0;
border-right: 4px solid #E2E8F0;
border-bottom: 4px solid #E2E8F0;
">
<div style ="background-color: rgb(156, 12, 29); height: 30px;"></div>
<div id="HealthPlayerB"
style="
position: absolute;
background-color: #15803D;
top: 0;
left: 0;
bottom: 0;
right: 0;
"></div>
</section>
</div>
<section id="displayText" style="
position: absolute;
color: white;
display: flex;
align-items: center;
justify-content: center;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: none;
">Tie</section>
<canvas></canvas>
</div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.2/gsap.min.js"
integrity="sha512-gsEItzcNkWxfxHjr4BaEZAd9YuRWYjxnj7c/yukcZ0/nWehUb5TjJNyyv1ApCU2DFH/qgw+stFZHPOKnoQnIuQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
<script src="./js/eventListeners.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/Sprite.js"></script>
<script src="./js/Fighter.js"></script>
<script src="index.js"></script>
</body>
</html>