-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (42 loc) · 1.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
<!DOCTYPE html>
<html>
<head>
<title>Experiments</title>
<meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0"/>
<meta name="mobile-web-app-capable" content="yes">
<style type="text/css">
canvas {
width: 100%;
height: 100%;
margin: auto;
user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-webkit-touch-callout: none;
-webkit-user-drag: none;
}
</style>
<script type="text/javascript" src="sib.js"></script>
</head>
<body style="width:100%;height:100%;background-color:black;">
<div id="screen"></div>
<script type="text/javascript">
function reverseString(aString){
var count = aString.length;
var newString = "";
for(i=count-1;i>(-1);i--){
newString += aString[i];
}
return newString;
}
console.log(reverseString("Hello World!"));
reverseString("Hello World");
SIB_Engine.useModules('scene1.js');
SIB_SceneManager.addScene('GameLevelOne','SCENE1');
SIB_SceneManager.loadScene('GameLevelOne');
SIB_Engine.start();
</script>
</body>
</html>