-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplay.html
110 lines (103 loc) · 4.35 KB
/
play.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
<!DOCTYPE html>
<html>
<head>
<link rel = "canonical" href = "https://multisnake.xyz/play">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name = "description" content = "MultiSnake is an MMS-Massively Multiplayer snake! Chat with other players, don't run into walls, and play in many different game modes!">
<meta http-equiv='content-language' content='en-un'>
<title>MultiSnake - Play Now!</title>
<link href = "/home.css" rel = "stylesheet">
<meta name="keywords" content = "multiplayer, snake, multiplayer snake, multisnake, sojs">
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel = "icon" href= "multisnake-favicon.png">
<script src="/socket.io/socket.io.js"></script>
<script src="https://kit.fontawesome.com/ec5f6502ae.js" crossorigin="anonymous"></script>
<script src="script.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DBKFRBYTHY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DBKFRBYTHY');
</script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "8kaopfbqyx");
</script>
<script>
var socket = io();
</script>
</head>
<body id = "body">
<div id = "loading">
<img src = "loading.gif">
<div class = "tip" id = "tip">
</div>
<script>
getTip();
window.game.tipinterval = setInterval(getTip,3000);
function getTip(){
var tips = [
"Use the SPACE key to boost!",
"If you time your boosts at just the right moment, you can \"Phase\" through walls!",
"You can use both WASD or arrow keys!",
"To create your own bot, DM me (@sojs) on discord!",
"Walls spawn every 5 apples eaten in the public rooms, and never in the mods!",
"Get to 10 apples to win, or 5 in the small maps!","Bored? Invite your friends!",
"If you have a suggestion, go back to the home page click \"Info\" then \"Contact\"!"
]
document.getElementById('tip').innerHTML = tips[Math.floor(Math.random() * tips.length)];
}
</script>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-614bb1fe75e51347"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.8.2.js"></script>
<div class='popup' style = "display: none">
<div class='cnt223'>
<h1>How To Play</h1>
<p>
<div id = 'play_text'>hi there</div>
<br/>
<br/>
<a href='#' class='close'>Close</a>
</p>
</div>
</div>
<div id = "alert-box"></div>
<div class = "row">
<div class = "column leaders">
<div class = "apples"><span id = "score"></span> 🍎</div>
<h1>Leaderboard</h1>
<div id = "leaders"></div>
<h2>Chat:</h2>
<p>To have a bit of fun, chat when you're dead to distract the people still alive.</p>
<div id = "chatbox">
</div>
<form id = "form">
<input id = "input" class= "chat-input" placeholder="Enter to chat">
</form>
</div>
<table id = "table"></table>
</div>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
</body>
</html>
<!--
_,..,,,_
'``````^~"-,_`"-,_
.-~c~-. `~:. ^-.
`~~~-.c ; `:. `-, _.-~~^^~:.
`. ; _,--~~~~-._ `:. ~. .~ `.
.` ;' .:` `: `:. ` _.:-,. `.
.' .: :' _.-~^~-. `. `..' .: `. '
: .' _:' .-' `. :. .: .'`. : ;
jgs : `-' .:' `. `^~~^` .:. `. ; ;
`-.__,-~ ~-. ,' ': '.__.` :'
~--..--' ':. .:'
':..___.:'
-->