-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (47 loc) · 1.27 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://www.gstatic.com/firebasejs/3.6.5/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBuyYBVU2njsCHe4PkLD1RVtRChgnO1kLc",
authDomain: "slimeqq-database.firebaseapp.com",
databaseURL: "https://slimeqq-database.firebaseio.com",
storageBucket: "slimeqq-database.appspot.com",
messagingSenderId: "514777325203"
};
firebase.initializeApp(config);
</script>
<script src="phaser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.js"></script>
<style type="text/css">
#game {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: auto;
text-align: middle;
}
#game canvas{
margin: auto auto;
}
#debug {
white-space:pre;
position: absolute;
top: 600px;
left: 0px;
width: 100%;
height: auto;
text-align: center;
}
</style>
</head>
<body onunload="quitgame()" onreset="quitgame()">
<div id="game"></div>
<div id="debug"></div>
<script charset="UTF-8" language="javascript" type="text/javascript" src="SlimeQQ_game.js"></script>
</body>
</html>