-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.html
63 lines (54 loc) · 1.59 KB
/
play.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Crossy Road Game </title>
<script src="./functions.js" type="module" lang="javascript"></script>
<script type="module" src="./script.js" lang="javascript"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="counter">0</div>
<button class="button-6" role="button" onclick="window.location.href = 'index.html';">Home</button>
</button>
<div id="controlls">
<div>
<button id="forward">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(0, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="left">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(-90, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="backward">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(180, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
<button id="right">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(90, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
</button>
</div>
</div>
<div id="end">
<form action="./play.html">
<p></p>
<button id="retry" type="submit" value="Retry" >Retry</button>
</form>
</div>
</body>
</html>