mirror of
https://github.com/osmarks/website
synced 2025-09-01 10:17:56 +00:00
achievements in heavpoot's game
This commit is contained in:
@@ -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=""
|
||||
}
|
||||
|
@@ -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 }),
|
||||
])
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user