-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
156 lines (147 loc) · 4.84 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<title>sensor-based-highspeed-race</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/three.min.js"></script>
<script src="js/ColladaLoader.js"></script>
<script src="js/BinaryLoader.js"></script>
<script src="js/Cars.js"></script>
<script src="js/Detector.js"></script>
<script src="js/stats.min.js"></script>
<script type="text/javascript" src="js/physi.js"></script>
<script type="text/javascript" src="js/speedometer/speedometer.js"></script>
<script type="text/javascript" src="js/speedometer/themes/default.js"></script>
<script type="text/javascript" src="js/speedometer/digitaldisplay.js"></script>
<script type="text/javascript" src="js/speedometer/example.js"></script>
<script type="text/javascript" src="js/speedometer/tbe.js"></script>
<script type="text/javascript" src="js/speedometer/xcanvas.js"></script>
<script type="text/javascript" src="js/TargetCamera.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/sounds.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/timer.js"></script>
<script type="text/javascript" src="js/track.js"></script>
<script type="text/javascript" src="js/radar.js"></script>
<script type="text/javascript" src="js/deviceController.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script type="text/javascript">
var sound1 = new Sound( [ 'sounds/376737_Skullbeatz___Bad_Cat_Maste.mp3'], 275, .1 );
sound1.play();
$( document ).ready(function() {
$("#game").children().hide();
$( ".start" ).click(function() {
initScene($('input[name=gender]:checked', '#selectCar').val(), $('input[name=gender]:checked', '#selectTrack').val());
$("#startpage").hide();
$("#game").children().show();
$("#result").hide();
$("#hurt").hide();
});
});
</script>
</head>
<body>
<div id="startpage">
<div class="container">
<div class="content">
<img id ="logo" src="images/racing-logo.png">
</div>
<div class="menu">
<ul>
<li class="start"><a>Start Game</a></li>
</ul>
</div>
</div>
<div class="cars">
<p class="general-heading">Choose your car:</p>
<div class="center-content">
<form id="selectCar">
<ul>
<li>
<a>Bugatti Veyron</a>
<div class="round-button">
<div class="round-button-circle">
<img class="size" src="images/veyron.gif">
</div>
</div>
<div class="radio">
<input id="veyron" type="radio" id="veyron" name="gender" value="veyron">
<label for="veyron"></label>
</div>
</li>
<li>
<a>Lamborghini Gallardo</a>
<div class="round-button">
<div class="round-button-circle">
<img class="size" src="images/gallardo.gif">
</div>
</div>
<div class="radio">
<input id="gallardo" type="radio" id="gallardo" name="gender" value="gallardo">
<label for="gallardo"></label>
</div>
</li>
<li>
<a>Ford Mustang</a>
<div class="round-button">
<div class="round-button-circle">
<img class="size" src="images/mustang.gif">
</div>
</div>
<div class="radio">
<input id="mustang" type="radio" id="mustang" name="gender" value="mustang" checked>
<label for="mustang"></label>
</div>
</li>
</ul>
</form>
</div>
</div>
<div class="speedways">
<p class="general-heading">Choose your speedway:</p>
<div class="center-content">
<form id="selectTrack">
<ul>
<li>
<a>Mountain Valley Raceway</a>
<div class="round-button">
<div class="round-button-circle">
<img src="images/MountainTrack-top.jpg">
</div>
</div>
<div class="radio">
<input id="mountain-track" type="radio" name="gender" value="Mountain" checked>
<label for="mountain-track"></label>
</div>
</li>
</ul>
</form>
</div>
</div>
</div>
<div id="game">
<div id="hurt"></div>
<div id="result">
<div class="win">!!YOU WIN!! Your time:
<div class="time"></div>
</div>
<div class="crash">You destroyed your car. Try again!</div>
<a class="restart button gray" href="#">Restart</a>
</div>
<div id="timer">00:00:000</div>
<div id="tacho">
<div id="speedometer"></div>
<div id="tachometer"></div>
</div>
<div id="viewport">
<div id="tracking-overlay">
<img src="images/MountainTrack.png">
<div class="tracking-ball"></div>
</div>
</div>
<div id="damage"></div>
</div>
</body>
</html>