-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
186 lines (157 loc) · 10.8 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html>
<head>
<title>FORMULA RUSH</title>
<link rel="stylesheet" href="css/reset.css" type="text/css">
<link rel="stylesheet" href="css/main.css" type="text/css">
<link rel="stylesheet" href="css/orientation_utils.css" type="text/css">
<link rel="stylesheet" href="css/ios_fullscreen.css" type="text/css">
<link rel='shortcut icon' type='image/x-icon' href='./favicon.ico' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
<meta name="msapplication-tap-highlight" content="no"/>
<script type="text/javascript" src="js/lib/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="js/lib/createjs.min.js"></script>
<script type="text/javascript" src="js/lib/screenfull.js"></script>
<script type="text/javascript" src="js/lib/platform.js"></script>
<script type="text/javascript" src="js/lib/ios_fullscreen.js"></script>
<script type="text/javascript" src="js/lib/howler.min.js"></script>
<script type="text/javascript" src="js/lib/CTimeFormatter.js"></script>
<script type="text/javascript" src="js/lib/ctl_utils.js"></script>
<script type="text/javascript" src="js/lib/sprite_lib.js"></script>
<script type="text/javascript" src="js/lib/CTextButton.js"></script>
<script type="text/javascript" src="js/lib/CToggle.js"></script>
<script type="text/javascript" src="js/lib/CGfxButton.js"></script>
<script type="text/javascript" src="js/lib/CRenderer.js"></script>
<script type="text/javascript" src="js/lib/CLocalStorage.js"></script>
<script type="text/javascript" src="js/lib/CCTLText.js"></script>
<script type="text/javascript" src="js/lib/CTremble.js"></script>
<script type="text/javascript" src="js/lib/CGUIExpandible.js"></script>
<script type="text/javascript" src="js/lib/CVector2.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/CLang.js"></script>
<script type="text/javascript" src="js/CPreloader.js"></script>
<script type="text/javascript" src="js/CMain.js"></script>
<script type="text/javascript" src="js/CCreditsPanel.js"></script>
<script type="text/javascript" src="js/CMenu.js"></script>
<script type="text/javascript" src="js/CGameBase.js"></script>
<script type="text/javascript" src="js/CInterface.js"></script>
<script type="text/javascript" src="js/CHelpPanel.js"></script>
<script type="text/javascript" src="js/CEndPanel.js"></script>
<script type="text/javascript" src="js/CPlayer.js"></script>
<script type="text/javascript" src="js/CRoad.js"></script>
<script type="text/javascript" src="js/CLevelBuilder.js"></script>
<script type="text/javascript" src="js/levelsettings.js"></script>
<script type="text/javascript" src="js/CHorizon.js"></script>
<script type="text/javascript" src="js/CBackground.js"></script>
<script type="text/javascript" src="js/CNextLevelPanel.js"></script>
<script type="text/javascript" src="js/CLosePanel.js"></script>
<script type="text/javascript" src="js/CTimer.js"></script>
<script type="text/javascript" src="js/CTachometer.js"></script>
<script type="text/javascript" src="js/CMsgBox.js"></script>
<script type="text/javascript" src="js/CAreYouSurePanel.js"></script>
<script type="text/javascript" src="js/CAnimSettings.js"></script>
<script type="text/javascript" src="js/COpponent.js"></script>
<script type="text/javascript" src="js/CElement.js"></script>
<script type="text/javascript" src="js/CElementStatic.js"></script>
<script type="text/javascript" src="js/CHitParticle.js"></script>
<script type="text/javascript" src="js/CMiniMap.js"></script>
<script type="text/javascript" src="js/CGameRace.js"></script>
<script type="text/javascript" src="js/CLapIndicator.js"></script>
<script type="text/javascript" src="js/lib/sprintf.js"></script>
<script type="text/javascript" src="js/CCarShadow.js"></script>
<script type="text/javascript" src="js/CRankIndicator.js"></script>
</head>
<body ondragstart="return false;" ondrop="return false;" >
<div style="position: fixed; background-color: transparent; top: 0px; left: 0px; width: 100%; height: 100%"></div>
<script>
$(document).ready(function(){
var oMain = new CMain({
/////////////PLAYER SETTINGS
player_max_speed: 30000, //SET MAX SPEED OF THE PLAYER
player_maxspeed_indicator: 350, //VALUE ON THE TACHOMETER, WHEN PLAYER REACH THE MAX SPEED. YOU CAN CHANGE THE UNITS IN CLANG.
player_centrifugal_force: 1, //CENTRIFUGAL FORCE VALUE WHEN IN CURVE.
/////////////SCORE SETTINGS
points_per_rank: [500,300,100], //Number of points gained per rank
/////////////DIFFICULTY SETTINGS
overall_difficulty: 10, //The lower, the easier. Default:10
/////////////GENERAL SETTINGS
audio_enable_on_startup:false, //ENABLE/DISABLE AUDIO WHEN GAME STARTS
fullscreen:true, //SET THIS TO FALSE IF YOU DON'T WANT TO SHOW FULLSCREEN BUTTON
check_orientation:true //SET TO FALSE IF YOU DON'T WANT TO SHOW ORIENTATION ALERT ON MOBILE DEVICES
});
$(oMain).on("start_session", function(evt) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeStartSession();
}
window.parent.postMessage({ type: "START_F1_SESSION" }, "*");
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("end_session", function(evt) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeEndSession();
}
window.parent.postMessage({ type: "END_F1_SESSION" }, "*");
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("restart_level", function(evt, iLevel) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeRestartLevel({level:iLevel});
}
window.parent.postMessage({ type: "RESTART_F1_SESSION" }, "*");
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("save_score", function(evt,iScore,szMode) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeSaveScore({score:iScore.score, mode: szMode});
}
window.parent.postMessage({
type: "SAVE_F1_SCORE",
score: iScore.score,
raceTime: iScore.raceTime
},
"*",
);
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("start_level", function(evt, iLevel) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeStartLevel({level:iLevel});
}
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("end_level", function(evt,iLevel) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeEndLevel({level:iLevel});
}
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("show_interlevel_ad", function(evt) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeShowInterlevelAD();
}
//...ADD YOUR CODE HERE EVENTUALLY
});
$(oMain).on("share_event", function(evt, iScore) {
if(getParamValue('ctl-arcade') === "true"){
parent.__ctlArcadeShareEvent({ img: TEXT_SHARE_IMAGE,
title: TEXT_SHARE_TITLE,
msg: TEXT_SHARE_MSG1 + iScore + TEXT_SHARE_MSG2,
msg_share: TEXT_SHARE_SHARE1 + iScore + TEXT_SHARE_SHARE1});
}
//...ADD YOUR CODE HERE EVENTUALLY
});
if(isIOS()){
setTimeout(function(){sizeHandler();},200);
}else{ sizeHandler(); }
});
</script>
<div class="check-fonts">
<p class="check-font-1">Poppins</p>
<p class="check-font-2">Digital</p>
</div>
<canvas id="canvas" class='ani_hack' width="1920" height="1920"> </canvas>
<div data-orientation="portrait" class="orientation-msg-container"><p class="orientation-msg-text">Please rotate your device</p></div>
<div id="block_game" style="position: fixed; background-color: transparent; top: 0px; left: 0px; width: 100%; height: 100%; display:none"></div>
</body>
</html>