-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (64 loc) · 3.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokemon-2d(JS)</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">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<section>
<div id="animate"></div>
<canvas>
</canvas>
<div id="ui" style="display: none;">
<div
style="background-color: whitesmoke; width: 250px; position: absolute; top: 50px; left: 50px; border: 5px solid black ; padding: 12px;">
<h1 style="font-size: 16px;">Chikorita</h1>
<div id="enemy" style="position: relative;">
<div style="height: 5px; background-color: #bbb;margin-top: 10px;"></div>
<div id="enemyHealth"
style="height: 5px; position: absolute; background-color: green; top: 0;right: 0;left: 0;">
</div>
</div>
</div>
<div
style="background-color: whitesmoke; width: 250px; position: absolute; bottom: 190px; right: 50px; border: 5px solid black ; padding: 12px;">
<h1 style="font-size: 16px;">Moltres</h1>
<div id="player" style="position: relative;">
<div style="height: 5px; background-color: #bbb;margin-top: 10px;"></div>
<div id="playerHealth"
style="height: 5px; position: absolute; background-color: green; top: 0;right: 0;left: 0;">
</div>
</div>
</div>
<div id="attack">
<div id="dialougeBox">Test</div>
<div id="attackBox"></div>
<div>
<h1>attack</h1>
</div>
</div>
</div>
</section>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js"
integrity="sha512-6+YN/9o9BWrk6wSfGxQGpt3EUK6XeHi6yeHV+TYD2GR0Sj/cggRpXr1BrAQf0as6XslxomMUxXp2vIl+fv0QRA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"
integrity="sha512-H6cPm97FAsgIKmlBA4s774vqoN24V5gSQL4yBTDOY2su2DeXZVhQPxFK4P6GPdnZqM9fg1G3cMv5wD7e6cFLZQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/res/audio.js"></script>
<script src="/res/collisions.js"></script>
<script src="/res/battlezone.js"></script>
<script src="/res/attacks.js"></script>
<script src="/res/monsters.js"></script>
<script src="class.js"></script>
<script src="app.js"></script>
<script src="battleScenes.js"></script>
</body>
</html>