-
Notifications
You must be signed in to change notification settings - Fork 0
/
attack.html
57 lines (57 loc) · 4.24 KB
/
attack.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=0.75">
<meta charset="utf-8"/>
<title>Attack of the Cubes</title>
<script src="p5.js"></script>
<script src="p5.sound.min.js"></script>
<script src="attack.cookie.js"></script>
<script src="firebase.js"></script>
<script src="firestore.js"></script>
<script src="attack.fire.js"></script>
<link rel="stylesheet" type="text/css" href="attack.style.css">
<link rel="icon" type="image/x-icon" href="favicon.png">
</head>
<body>
<main>
</main>
<script src="attack.script.js"></script>
<div id="beta">Attack of the Cubes v1.9e<br>[A Returning Difficulty]<br><a href="https://codepen.io/bit-turtle/pen/wvENXve">Check out the beta version!</a></div>
<div id="notification"><b>Note:</b> If you see "Highscore: undefined" this means that you had a highscore from pre v1.9, this is fixed by deleting the cookie "attackhighscore"</div>
<div id="extention"><a id="toggle2">Show Extension Version Instructions</a></div>
<div id="changelog"><a id="toggle" href="#">Show Changelog</a></div>
<script>
var extentiontoggle = false;
var extentiondiv = document.getElementById("extention")
var extention = function() {
if (!extentiontoggle) {
extentiondiv.innerHTML = "<a id=\"toggle2\">Hide Extension Version Instructions</a><br><a href=\"attackEXT.zip\">Download extension version</a><br>To install, open the zip and copy all the files inside into a folder. <br> Then go to chrome://extensions and turn on developer mode. <br> Finally click \"Load Unpacked\" and select the folder you made earlier that has the files from the zip<br>Now the extention is installed <br> If it didn't work, make sure you selected the right folder";
document.getElementById("toggle2").addEventListener("click",extention);
extentiontoggle = true;
}
else {
extentiondiv.innerHTML = "<a id=\"toggle2\">Show Extension Version Instructions</a>"
document.getElementById("toggle2").addEventListener("click",extention);
extentiontoggle = false;
}
}
var changelogtoggle = false;
var changelogdiv = document.getElementById("changelog");
var changelog = function() {
if (changelogtoggle === false) {
changelogdiv.innerHTML = "<a id=\"toggle\">Hide Changelog</a><ul> <li>v1.9:</li><ul> <li>Added click sounds to the scoreboard and difficulty buttons</li><li>Fixes a difficulty scaling bug that would cause only basic cubes to appear after a certain point</li><li>Added text to the Start button that says \"Attack\" and shows the current difficulty selected</li><li>Updated Lazers</li><ul><li>Lazers will now no longer dissapear after hitting an enemy cube and will keep moving but a bit slower</li> <li>Lazers will bounce off boss cubes and will return to the bottom of the screen</li><li>Lazers have a 0% chance in easy, a 25% chance in medium, and a 50% chance in hard to bounce off non-boss cubes</li><li>If a lazer that is bounced back hits the player, the player takes 0.5 damage from the lazer</li></ul></ul><li>v1.9b</li><ul> <li>Fixed a crash when trying to access the scoreboard when offline</li><li>Made text on this page unselectable</li></ul><li>v1.9c</li><ul> <li>Updated Lazer Amimations</li></ul><li>v1.9d</li> <ul> <li>Fixed flickering in lazer animation</li> <li>Made the game run at a constant speed regardless of framerate</li><li>Fixed Game Over Requierments</li></ul><li>1.9e</li><ul><li>Fixed the Jiggler, Spawner, and Splitter Cubes as they broke in 1.9d</li></ul><li>1.9f</li><ul><li>Fixes the jigglers again, now they dont perfer a side</li></ul></ul>";
document.getElementById("toggle").addEventListener("click",changelog);
changelogtoggle = true;
}
else if (changelogtoggle === true) {
changelogdiv.innerHTML = "<a id=\"toggle\">Show Changelog</a>";
document.getElementById("toggle").addEventListener("click",changelog);
changelogtoggle = false;
}
}
document.getElementById("toggle").addEventListener("click",changelog);
document.getElementById("toggle2").addEventListener("click",extention);
</script>
</body>
</html>