-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
72 lines (72 loc) · 3.2 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<title>Social Snakes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css"></style>
<link rel="stylesheet" type="text/css" href="css/jquery-ui-1.8.24.custom.css"></style>
<script src="js/jquery-1.8.0.min.js"></script>
<script src="js/jquery-ui-1.8.24.custom.min.js"></script>
<script src="js/food.js"></script>
<script src="js/snake.js"></script>
<script src="js/game.js"></script>
<!-- scoreboard api - ->
<script src="https://ssl731.websiteseguro.com/acasadossims1/zzz/acasadojava/gsb/GSB.js"></script>
<!- - /scoreboard api -->
<!-- custom scoreboard -->
<link rel="stylesheet" type="text/css" href="css/scoreboard.css"></style>
<!-- <script src="js/scoreboard.js"></script> -->
<script src="js/scoreboard-fb.js?v=2"></script>
<!-- /custom scoreboard -->
<!-- analytics -->
<script type="text/javascript">var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-35371168-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>
<!-- /analytics -->
</head>
<body>
<!-- facebook -->
<div id="fb-root"></div>
<script src="//connect.facebook.net/en_US/all.js"></script>
<!-- /facebook -->
<!-- twitter -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<!-- /twitter -->
<div class="main_screen_style game">
<div id="info_score">Score: <b id="score">0</b></div>
<div class="center">
<canvas id="canvas" width="400" height="400" class="canvas_style"></canvas>
</div>
<div id="info" class="center">Press SPACE BAR to pause or unpause the game.</div>
</div>
<audio id="sound_pause" preload="auto">
<source src="sound/pause.mp3" type="audio/mp3" />
<source src="sound/pause.ogg" type="audio/ogg" />
</audio>
<audio id="sound_unpause" preload="auto">
<source src="sound/unpause.mp3" type="audio/mp3" />
<source src="sound/unpause.ogg" type="audio/ogg" />
</audio>
<!-- scoreboard api -->
<div class="main_score_style">
<div class="block_header">Max Scores:</div>
<div id="players_and_scores">
<div id="loading_message">loading...</div>
</div>
</div>
<!-- /scoreboard api -->
<!-- pause screen -->
<div class="main_img_style">
<img src="img/pause.png" id="img_pause"></img>
</div>
<div class="gameover_img_style">
<img src="img/game-over.png" id="img_gameover"></img>
</div>
<!-- /pause screen -->
<div id="dialog" title="Dude..." style="display: none;">
<p>
<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
It seems you just die which is kinda sad. But wait, wanna start it over?
</p>
</div>
<iframe frameborder="no" align="right" width="560" height="300" src="social.html"></iframe>
</body>
</html>