reality animation

This commit is contained in:
Omsi 2018-07-08 22:27:08 -07:00
parent 2e6c53bad7
commit 824f8205f2
11 changed files with 82 additions and 11 deletions

BIN
images/realityanimbg.webm Normal file

Binary file not shown.

View File

@ -31,9 +31,6 @@
</head>
<img id="loading" src="images/Loading.png">
<div id="snow" style="display: none; "></div>
<video autoplay muted loop id="stars" style="display: none;">
<source src="images/s6-bg.webm" type="video/webm">
</video>
<body id="body" style="height: 95vh;">
<div id="container" class="container" style="color:#4F5957; font-family: Typewriter; text-align:center; font-size: 11px; display:none">
<div id='game'>
@ -2788,6 +2785,7 @@
<button id="floatingTextAnimBtn" class="storebtn" onclick="animationOnOff('floatingText')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
<button id="bigCrunchAnimBtn" class="storebtn" onclick="animationOnOff('bigCrunch')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
<button id="tachyonParticleAnimBtn" class="storebtn" onclick="animationOnOff('tachyonParticles')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
<button id="realityAnimBtn" class="storebtn" onclick="animationOnOff('reality')" style="width: 200px; height: 55px; font-size: 15px" style="display: inline">ON</button>
</div>
<div id="TTbuttons" style="display:none;">
<button class="timetheorembtn" onclick="maxTheorems()" style="margin-left:-276px; width:130px; height: 30px; font-size: 0.75rem; bottom: 77px;">Buy max Theorems</button>
@ -2802,7 +2800,12 @@
<p id="studytreeloadsavetext" style="position: fixed;">load:</p>
</div>
</body>
<video autoplay muted loop id="stars" style="display: none;">
<source src="images/s6-bg.webm" type="video/webm">
</video>
<video preload muted id="realityanimbg" style="opacity: 0;">
<source src="images/realityanimbg.webm" type="video/webm">
</video>
<script type="text/javascript"src="PlayFab/PlayFabClientApi.js"></script>

View File

@ -37,7 +37,8 @@ function animationOnOff(name) {
if (name == "floatingText") document.getElementById("floatingTextAnimBtn").textContent = "Floating text: " + ((player.options.animations.floatingText) ? "ON" : "OFF")
else if (name == "bigCrunch") document.getElementById("bigCrunchAnimBtn").textContent = "Big crunch: " + ((player.options.animations.bigCrunch) ? "ON" : "OFF")
else if (name == "tachyonParticles") document.getElementById("tachyonParticleAnimBtn").textContent = "Tachyon particles: " + ((player.options.animations.tachyonParticles) ? "ON" : "OFF")
if (player.options.animations[name]) requestAnimationFrame(drawAnimations);
else if (name == "reality") document.getElementById("realityAnimBtn").textContent = "Reality: " + ((player.options.animations.reality) ? "ON" : "OFF")
if (player.options.animations[name] && name == "tachyonParticles") requestAnimationFrame(drawAnimations);
}
function drawAnimations(ts){
@ -257,7 +258,6 @@ function drawStudyTree() {
if (document.getElementById(all[i]).className.split(" ")[1] !== undefined || all[i] > 220) {
var tempName = document.getElementById(all[i]).className.split(" ")[1];
var name;
console.log(all[i])
if (all[i] == 222 || all[i] == 223 || all[i] == 226 || all[i] == 227 || all[i] == 232 || all[i] == 233) name = "dark"
else if (all[i] == 221 || all[i] == 224 || all[i] == 225 || all[i] == 228 || all[i] == 231 || all[i] == 234) name = "light"
else if (tempName.includes("normaldimstudy")) name = "normal dims"

View File

@ -419,6 +419,7 @@ if (player.version < 5) {
document.getElementById("floatingTextAnimBtn").textContent = "Floating text: " + ((player.options.animations.floatingText) ? "ON" : "OFF")
document.getElementById("bigCrunchAnimBtn").textContent = "Big crunch: " + ((player.options.animations.bigCrunch) ? "ON" : "OFF")
document.getElementById("tachyonParticleAnimBtn").textContent = "Tachyon particles: " + ((player.options.animations.tachyonParticles) ? "ON" : "OFF")
document.getElementById("realityAnimBtn").textContent = "Reality: " + ((player.options.animations.reality) ? "ON" : "OFF")
if (player.infinitied == 0 && player.eternities == 0) document.getElementById("infinityPoints2").style.display = "none"

View File

@ -11,6 +11,7 @@ var saved = 0;
var keySequence = 0;
var failureCount = 0;
var implosionCheck = 0;
var realizationCheck = 0;
var statsTimer = 0;
var TIER_NAMES = [ null, "first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eight" ];
var DISPLAY_NAMES = [ null, "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth" ];
@ -3532,7 +3533,24 @@ function eternity(force, auto) {
}
function reality(force) {
if ((player.eternityPoints.gte("1e4000") && (!player.options.realityconfirm || confirm("Reality will reset everything except achievements and challenge records. You will also gain reality machines based on your EP, a glyph with a power level based on your EP, and unlock various upgrades."))) || force === true) {
if ((player.eternityPoints.gte("1e4000") && (realizationCheck === 1 || !player.options.realityconfirm || confirm("Reality will reset everything except achievements and challenge records. You will also gain reality machines based on your EP, a glyph with a power level based on your EP, and unlock various upgrades."))) || force === true) {
if (((player.bestReality > 6000) && player.options.animations.reality) && realizationCheck === 0) {
realizationCheck = 1;
document.getElementById("container").style.animation = "realize 10s 1";
document.getElementById("realityanimbg").style.animation = "realizebg 10s 1";
setTimeout(function(){
document.getElementById("realityanimbg").play();
document.getElementById("realityanimbg").currentTime = 0;
document.getElementById("realityanimbg").play();
}, 2000)
setTimeout(function(){
document.getElementById("container").style.animation = "";
document.getElementById("realityanimbg").style.animation = "";
}, 10000)
setTimeout(reality, 3000)
return
}
realizationCheck = 0;
if (player.thisReality<player.bestReality && !force) {
player.bestEternity = player.thisEternity
}
@ -4968,6 +4986,7 @@ setInterval(function() {
if (player.eternities !== 0) document.getElementById("eternitystorebtn").style.display = "inline-block"
else document.getElementById("eternitystorebtn").style.display = "none"
for (var i=1; i <=8; i++) {
document.getElementById("postc"+i+"goal").textContent = "Goal: "+shortenCosts(goals[i-1])
}
@ -5155,7 +5174,6 @@ setInterval(function() {
if (player.tickspeed.e < -8296262) giveAchievement("Faster than a potato^286078")
if (player.timestudy.studies.length == 0 && player.dilation.active && player.infinityPoints.e >= 20000) giveAchievement("This is what I have to do to get rid of you.")
if (player.secretUnlocks.why >= 1e5) giveAchievement("Should we tell them about buy max...")
if ( Math.max(document.documentElement.clientHeight, window.innerHeight || 0) <= 150 || parent.document.body.clientHeight <= 150) giveAchievement("Dip the antimatter")
if ( player.realities > 0 || player.dilation.studies.includes(6)) $("#realitybtn").show()
else $("#realitybtn").hide()

View File

@ -1811,6 +1811,15 @@ reality upgrade unavailable
background-color: #0b600e
}
#realityanimbg {
position: fixed;
left: 50%;
top: 50%;
z-index: -1000;
pointer-events: none;
transform: translate(-50%,-50%);
}
@media print,
@ -1984,3 +1993,19 @@ screen and (max-width: 480px) {
100% {transform:scale(1); filter:blur(0px)}
}
@keyframes realize {
0% {opacity: 1;}
20% {opacity: 0;}
80% {opacity: 0;}
100% {opacity: 1;}
}
@keyframes realizebg {
0% {opacity: 0;}
20% {opacity: 0;}
30% {opacity: 1;}
70% {opacity: 1;}
80% {opacity: 0;}
100% {opacity: 0;}
}

View File

@ -537,6 +537,10 @@ input {
color: #64DD17 !important;
}
#realityanimbg {
filter: invert(1);
}
@keyframes metroStudyGlowIn {
0% {box-shadow: inset 0px 0px 3px 0px #673AB7;}
50% {box-shadow: inset 0px 0px 20px 0px #673AB7;}

View File

@ -563,6 +563,10 @@ input {
text-shadow: 0px 0px 7px #64DD17;
}
#realityanimbg {
filter: invert(1);
}
@keyframes antimatterGlow {
0% {color: #2196F3;}
33% {color: #673AB7;}

View File

@ -10,6 +10,10 @@ body {
filter: invert(100%);
}
#realityanimbg {
filter: invert(1);
}
* {
border-radius: 0px !important;
}

View File

@ -10,6 +10,10 @@ body {
filter: invert(100%);
}
#realityanimbg {
filter: invert(1);
}
#theorembuybackground {
border-color: #fff !important;
background-color: #1f1f1f !important;

View File

@ -8,6 +8,10 @@
transform: translate(-50%,-50%);
}
body {
background: black !important;
}
button {
color: #E0E0E0;
background-color: black !important;
@ -91,7 +95,7 @@ input {
}
.container {
color: #888888 !important;
color: #999 !important;
}
.challengesbtn {
@ -159,7 +163,7 @@ input {
}
#infinityPoints1 {
color: #4F5957 !important;
color: #999 !important;
}
.IPAmount1 {
@ -187,7 +191,7 @@ input {
}
.postinfcrunch {
color: black;
color: white !important;
border: 2px solid #1565C0 !important;
}
@ -632,6 +636,10 @@ input {
background: #333333 !important;
}
#realityanimbg {
filter: invert(1);
}
@keyframes antimatterGlow {
0% {color: #2196F3;}
33% {color: #673AB7;}