achievements in heavpoot's game

This commit is contained in:
osmarks 2020-07-03 21:11:23 +01:00
parent dee9035ffe
commit 060ac1001a
3 changed files with 20 additions and 3 deletions

View File

@ -116,6 +116,18 @@ window.points = (() => {
conditions: "visiting on April Fools' Day",
description: "Enjoy being... April Fooled? Good luck getting this, speedrunners.",
points: 16.0303
},
heavgame1: {
title: "Pastaphysical Futility",
conditions: "Annoying the narrator of Heavpoot's Game",
description: "Irritating the narrator with control of your reality is rarely a good choice. In this case it definitely wasn't.",
points: 34.04
},
heavgame2: {
title: "(insert meaningful secret O5 councily thing here)",
conditions: "Solving the puzzle in Heavpoot's Game",
description: `You... did something or other and somehow found the "black moon" thing and guessed/found the answer to the puzzle there, so enjoy this achievement, O6-3234234!`,
points: 41.5824
}
}

View File

@ -27,6 +27,11 @@ description: It is pitch black (if you ignore all of the lighting). You are like
<noscript>enable js you utter bee</noscript>
<div id="o"></div>
<script>
function unlockAchievement(name) {
if ("points" in window) {
points.unlockAchievement(name)
}
}
var state="start"; // SPOILERS SPOILERS OH GOD SPOILERS OH GOD SPOILERS
var game={
"start":["hi you are level 3³³ ersearcher in the scp floundation. whatdo?",["173","go to SCP-173s chamber"],["antimemetics","go to the antimemetics division"],["start-2","keep going somewhere"],["blackmoonhowl","Does the black moon howl?","v"]],
@ -110,6 +115,8 @@ description: It is pitch black (if you ignore all of the lighting). You are like
return res
}
function c(st){
if (st == "dontquestionit") { unlockAchievement("heavgame1") }
if (st == "blackmoondecode") { unlockAchievement("heavgame2") }
if (st=="blackmoonno"){
redacted=""
}

View File

@ -30,8 +30,6 @@ const handleTab = ev => {
}
}
const inputOnCreate = vnode => { vnode.dom.value = currentStyle }
const App = {
view: () => m("", [
m("em", "Due to browser limitations, this currently cannot tell you about errors or warnings in your stylesheet. You can check your browser console for these, probably."),
@ -41,7 +39,7 @@ const App = {
m("button", { onclick: applyStyles }, "Apply"),
m("button", { onclick: removeStyles }, "Remove")
]),
m("textarea.style-input", { oncreate: inputOnCreate, oninput: ev => { currentStyle = ev.target.value }, onkeydown: handleTab }),
m("textarea.style-input", { oncreate: vnode => { vnode.dom.value = currentStyle }, oninput: ev => { currentStyle = ev.target.value }, onkeydown: handleTab }),
])
}