-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,487 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<link rel="icon" type="image/x-icon" href="/img/favicon.ico" /> | ||
<script src="/assets/js/font.js"></script> | ||
<meta name="google" content="notranslate" /> | ||
<link rel="stylesheet" type="text/css" href="/assets/css/style.css" /> | ||
<link rel="stylesheet" href="/assets/css/nav.css?v=3" /> | ||
<title>Google</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="author" content="Rednotsus" /> | ||
<meta http-equiv="Cache-control" content="public"> | ||
<meta charset="utf-8"> | ||
<meta name="description" | ||
content="Canvas LMS is an open and reliable web-based software that allows institutions to manage digital learning, educators to create and present online learning materials and assess student learning, and students to engage in courses and receive feedback about skill development and learning achievement." /> | ||
<meta name="keywords" | ||
content="unblocked games, 55gms tk, 55gms, reds exploit corner, games, unblocked, site, lanier, lanier middle school, gg, Minecraft, discord, chromebook, chromeos, rednotsus, vanillacraft, eaglercraft unblocked, resent client unblocked, fun, cool, proxy, slope unblocked, free, unblocked monkey mart, 555gms, 5gms, school" /> | ||
<link rel="stylesheet" href="/assets/css/gameframe.css" /> | ||
<script src="/assets/js/script.js?v=11"></script> | ||
</head> | ||
|
||
<body> | ||
<nav> | ||
<div class="navbar"> | ||
<a id="nav-title" href="/">Reds Exploit Corner</a> | ||
<a href="/g"><i class="fa-solid fa-gamepad"> </i>Games</a> | ||
<a href="/a"><i class="fa-solid fa-box-archive"> </i>Apps</a> | ||
<a href="/-"><i class="fa-solid fa-tv"> </i>Media</a> | ||
<a href="/e"><i class="fa-solid fa-robot"></i> </i>AI</a> | ||
<a href="/s"><i class="fa-solid fa-gears"> </i>Settings</a> | ||
<a href="/profile"><i class="fa-solid fa-user"></i></a> | ||
</div> | ||
</nav> | ||
|
||
<div id="gameframe"> | ||
<div class="gameDisplay"> | ||
<div class="game"> | ||
<iframe id="iframe" src="/misc/spacebarclicker/"></iframe> | ||
</div> | ||
<div class="options"> | ||
<div class="left"> | ||
<div class="gametext"> | ||
<img src="/misc/spacebarclicker/img.webp" class="gameicon" /> | ||
<div class="margin"> | ||
<div class="flex"> | ||
<h1 class="titletext">Spacebar Clicker</h1> | ||
</div> | ||
<span class="bytext">By Bruno Croci</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="right"> | ||
<i class="fa-solid fa-rotate-right reloadbtn" id="reloadbtn"></i> | ||
<i class="fa-solid fa-expand fullscreenbtn" onclick="fullscreen();"></i> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="addisplay" id="addisplay"> | ||
<ins id="adElement"></ins> | ||
<div class="script-container"></div> | ||
<div class="adtext">Advertisement</div> | ||
|
||
</div> | ||
<script> | ||
var elem = document.getElementById("iframe"); | ||
|
||
function fullscreen() { | ||
if (elem.requestFullscreen) { | ||
elem.requestFullscreen(); | ||
} else if (elem.webkitRequestFullscreen) { | ||
elem.webkitRequestFullscreen(); | ||
} else if (elem.msRequestFullscreen) { | ||
elem.msRequestFullscreen(); | ||
} | ||
} | ||
function reload() { | ||
document.getElementById("iframe").src += ""; | ||
} | ||
reloadbtn.onclick = reload; | ||
</script> | ||
<script src="/assets/js/ad.js?v=1"></script> | ||
</body> | ||
|
||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<meta name="monetization" content="$ilp.uphold.com/zDFj9FWE4m6e"> | ||
<link rel="stylesheet" href="styles/style.css" media="screen"> | ||
|
||
<title>SPACEBAR CLICKER</title> | ||
</head> | ||
|
||
<body> | ||
<div id="game"> | ||
<div id="header"> | ||
<div id="counter"><span>0</span></div> | ||
<div id="per_second">0</div> | ||
<div class="sbc"> | ||
<div id="sb" class="sbs sb1">SPACEBAR</div> | ||
</div> | ||
</div> | ||
<ul id="items"> | ||
<li id="it" class="item"> | ||
<span class="ilvl">%4</span> | ||
<h1 class="ititle">%1</h1> | ||
<span class="idesc">%2</span> | ||
<div class="cost"><span class="spacebar"></span><span class="icost">%3</span></div> | ||
</li> | ||
</ul> | ||
</div> | ||
<div id="footer">a game by <a href="https://bruno.croci.me/">CrociDB</a> | <a | ||
href="javascript:game.resetGameSure();">reset game</a></div> | ||
|
||
|
||
<!-- Scripts --> | ||
<script src="src/jsfxr.js"></script> | ||
<script src="src/utils.js"></script> | ||
<script src="src/data.js"></script> | ||
<script src="src/particle.js"></script> | ||
<script src="src/counter.js"></script> | ||
<script src="src/game.js"></script> | ||
<script src="src/main.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
class Counter { | ||
constructor() { | ||
this.v = 0; | ||
this.va = 0; | ||
this.multiplier = 1; | ||
|
||
setInterval(this.update.bind(this), 10); | ||
} | ||
|
||
evaluateItems() { | ||
this.va = 0; | ||
this.multiplier = 1; | ||
for (let i in ITEMS) { | ||
let it = ITEMS[i]; | ||
if (it.multiplier != undefined) | ||
this.multiplier *= it.lvl > 0 ? Math.pow(it.multiplier, it.lvl) : 1; | ||
else | ||
this.va += total_item_value(it); | ||
} | ||
} | ||
|
||
update() { | ||
this.v += this.va / 100; // divides by 100 because values are per seconds it runs every 0.01 seconds. | ||
} | ||
|
||
setValue(v) { | ||
this.v = v; | ||
} | ||
|
||
spend(v) { | ||
this.v -= v; | ||
} | ||
|
||
add(v) { | ||
let val = v * this.multiplier; | ||
this.v += val; | ||
return val; | ||
} | ||
|
||
addOne() { | ||
this.v += this.multiplier; | ||
return this.multiplier; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
let ITEMS = [ | ||
{ | ||
name: "Monkey", | ||
description: "A monkey to help you press space. It doesn't really know what a <i>spacebar</i> is, so it will just bash the whole keyboard and eventually hit it. It succeeds every <b>%v seconds</b>.", | ||
cost: 30, | ||
initial_value: .2, | ||
lvl: 0, | ||
cost_func: (x) => 1.1 * x, | ||
value_func: (x) => x, | ||
getDescription: (it) => it.description.replace("%v", 1.0 / it.initial_value), | ||
}, | ||
{ | ||
name: "Boomer Mom", | ||
description: "A boomer mom who can't barely open a Word document to help you press it. Every mom can press it <b>%vx a second</b>!", | ||
cost: 120, | ||
initial_value: 3, | ||
lvl: 0, | ||
cost_func: (x) => 1.3 * x, | ||
value_func: (x) => 1.0 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Gen Z Kid", | ||
description: "A Generation Z kid will help you press it. They haven't ever seen a keyboard before, but they're good at scrolling short vertical videos online, so they do it <b>%vx a second</b>!", | ||
cost: 500, | ||
initial_value: 20, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.0 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Keyboard Upgrade", | ||
description: "Every upgrade will <b>DOUBLE</b> your own hits.", | ||
cost: 6000, | ||
multiplier: 2, | ||
lvl: 0, | ||
cost_func: (x) => 3.5 * x, | ||
getDescription: (it) => it.description, | ||
}, | ||
{ | ||
name: "Angry Influencer", | ||
description: "Angry influencer whose computer crashed and they're now bashing their heads against the keyboard. The more influencer you get, the faster they can hit it, because they can't stand competition. The next one will give <b>%vx per second</b>.", | ||
cost: 10000, | ||
initial_value: 150, | ||
lvl: 0, | ||
cost_func: (x) => 1.5 * x, | ||
value_func: (x) => 1.2 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "MOBA Gamer", | ||
description: "MOBA gamers are fast at pressing keys and they play well in teams. New gamer will hit it <b>%vx per second</b>.", | ||
cost: 200000, | ||
initial_value: 600, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.25 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Homemade Pressing Robot", | ||
description: "Just a simple robot made out of a broken robot vacuum cleaner that can press the key at the impressive rate of <b>%vx per second</b>!", | ||
cost: 800000, | ||
initial_value: 3500, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.25 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Laser Machine Gun", | ||
description: "A machine gun that shoots a lot of laser blasts at the spacebar, at a rate of <b>%vx per second</b>!", | ||
cost: 2000000, | ||
initial_value: 25000, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.3 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Nuclear Blast Gun", | ||
description: "No one knows how it works except for the girl that created it. But the rate is pretty high at <b>%vx per second</b>!", | ||
cost: 10000000, | ||
initial_value: 100000, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.3 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
{ | ||
name: "Alien Tech Key Pressing Machine", | ||
description: "No one knows how it works except for the girl that created it. But the rate is pretty high at <b>%vx per second</b>!", | ||
cost: 80000000, | ||
initial_value: 1000000, | ||
lvl: 0, | ||
cost_func: (x) => 1.4 * x, | ||
value_func: (x) => 1.3 * x, | ||
getDescription: (it) => it.description.replace("%v", nfmt(it.value)), | ||
}, | ||
]; | ||
|
||
(function() { | ||
for (let i in ITEMS) { | ||
ITEMS[i].value = ITEMS[i].initial_value; | ||
} | ||
})(); | ||
|
||
let total_item_value = (item) => { | ||
let c = 0; | ||
let v = item.initial_value; | ||
|
||
for (let i = 0; i < item.lvl; i++) { | ||
c += v; | ||
v = item.value_func(v); | ||
} | ||
|
||
return c; | ||
} | ||
|
||
let LEVELS = [ | ||
{ | ||
psvalue: 0, | ||
rain: 0, | ||
}, | ||
{ | ||
psvalue: 10, | ||
rain: 5, | ||
}, | ||
{ | ||
psvalue: 100, | ||
rain: 10, | ||
}, | ||
{ | ||
psvalue: 500, | ||
rain: 12, | ||
}, | ||
{ | ||
psvalue: 1000, | ||
rain: 15, | ||
}, | ||
{ | ||
psvalue: 5000, | ||
rain: 17, | ||
}, | ||
{ | ||
psvalue: 10000, | ||
rain: 18, | ||
}, | ||
{ | ||
psvalue: 50000, | ||
rain: 19, | ||
}, | ||
{ | ||
psvalue: 100000, | ||
rain: 20, | ||
}, | ||
{ | ||
psvalue: 300000, | ||
rain: 21, | ||
}, | ||
{ | ||
psvalue: 800000, | ||
rain: 22, | ||
}, | ||
{ | ||
psvalue: 1000000, | ||
rain: 23, | ||
}, | ||
]; | ||
|
||
const SOUNDS = { | ||
click: [ | ||
jsfxr([0,0,0.07086974935991196,0.45065582613048494,0.12451125371771453,0.6610070860477287,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
jsfxr([0,0,0.07086974935991196,0.35,0.12451125371771453,0.7,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
jsfxr([0,0,0.1,0.35,0.12451125371771453,0.65,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
], | ||
buy: [ | ||
jsfxr([3,0,0.2914228463087029,0.39443991332966943,0.47848602130372286,0.08144714074126518,0,0.24222569085835757,0,0,0,-0.6369038513918057,0.7915717139323191,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
jsfxr([3,0,0.2914228463087029,0.39443991332966943,0.55,0.15,0,0.24222569085835757,0,0,0,-0.6369038513918057,0.7915717139323191,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
jsfxr([3,0,0.25,0.39443991332966943,0.45,0.25,0,0.24222569085835757,0,0,0,-0.6369038513918057,0.7915717139323191,0,0,0,0,0,1,0,0,0,0,0.5]), | ||
], | ||
}; |
Oops, something went wrong.