-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (25 loc) · 1.31 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
<html>
<head>
</head>
<body onkeydown="keyDown(event)" onkeyup="keyUp(event)">
<div>Punkte: <span id="pointsArea">000</span> </div>
<canvas id="tableCan" height="640" width="320" style="border: solid 3px;"></canvas>
<canvas id="holdCan" height="128" width="128" style="border: solid 3px; margin-bottom: 512;"></canvas>
<canvas id="nextCan" height="384" width="128" style="border: solid 3px; margin-left: -138;"></canvas>
<br>
<button style="height: 32px; width:96px; margin-top: 20px;" onclick="switchFalling()">Start</button>
<button style="height: 32px; width:96px; margin-top: 20px;" onclick="aiSwitchIntervall ()">StartAi</button>
<br>
<input type="range" min="2" max="20" value="3" onchange="fallingSpeedChange()" oninput="fallingSpeedChangeDisplay()" id="fallingSpeed">
<p id="fallingSpeedDisplay"></p>
<br>
<input type="range" min="1" max="1000" value="60" onchange="aiSpeedChange()" oninput="aiSpeedChangeDisplay()" id="aiSpeed">
<p id="aiSpeedDisplay"></p>
</body>
<script src="flatVector.js"></script>
<script src="globalVariables.js"></script>
<script src="graphic.js"></script>
<script src="gameMechanics.js"></script>
<script src="tetrAI.js"></script>
<script src="inputs.js"></script>
</html>