🌃🌴 Checkpoint
./game.css:1954897/648 ./helpers.js:1954897/4 ./index.html:1954897/7099 ./es.html:1954897/3371
This commit is contained in:
1 parent
c6895ff6e1
commit
51e9189cbc
5 files changed
+97
-23
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Made with :3c by MindfulMinun
|
||||
https://benjic.xyz
|
||||
-->
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>A text-based game</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="theme-color" content="#0F0">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,300i,400,400i&display=swap">
|
||||
<link rel="stylesheet" href="/game.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header"></div>
|
||||
<div id="terminal" class="terminal"><noscript class="terminal--line">Quit being paranoid and enable JavaScript.</noscript></div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="/helpers.js"></script>
|
||||
<script src="/en.js"></script>
|
||||
<script>
|
||||
H.choice({
|
||||
choices: [{
|
||||
content: "Start",
|
||||
callback: function () {
|
||||
en.$1()
|
||||
.then(function () {
|
||||
console.log("Dang, the game ended. That\u2019s weird.");
|
||||
})
|
||||
["catch"](function () {
|
||||
H.out("An error occurred, I hope Monika has nothing to do with this.");
|
||||
});
|
||||
},
|
||||
}]
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Mecho con :3c por MindfulMinun
|
||||
https://benjic.xyz
|
||||
-->
|
||||
<html lang="es-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Un videojuego de texto</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="theme-color" content="#0F0">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,300i,400,400i&display=swap">
|
||||
<link rel="stylesheet" href="/game.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header"></div>
|
||||
<div id="terminal" class="terminal"><noscript class="terminal--line">Quit being paranoid and enable JavaScript.</noscript></div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="/helpers.js"></script>
|
||||
<script src="/en.js"></script>
|
||||
<script>
|
||||
H.choice({
|
||||
choices: [{
|
||||
content: "Comenzar",
|
||||
callback: function () {
|
||||
es.$1().then(function () {
|
||||
console.log("Vaya, se terminó el juego. Qué raro.");
|
||||
}).['catch'](function () {
|
||||
H.out("Se produjo un error, espero que Monika to tiene nada que ver.")
|
||||
})
|
||||
}
|
||||
}]
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
@@ -1,8 +1,15 @@
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
html, body {
|
||||
font-family: "Roboto Mono", sans-serif;
|
||||
font-family: "Roboto Mono", Consolas, Monaco, monospace;
|
||||
background-color: #000;
|
||||
color: #0F0;
|
||||
font-size: 16px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
height: 100%; width: 100%;
|
||||
margin: 0; padding: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
@@ -11,7 +18,6 @@ html, body {
|
||||
position: fixed;
|
||||
bottom: 0; left: 0; right: 0;
|
||||
margin: 0 auto;
|
||||
padding: 1em;
|
||||
}
|
||||
.header {
|
||||
z-index: 4;
|
||||
@@ -46,6 +52,8 @@ html, body {
|
||||
line-height: 1;
|
||||
padding: .5rem .75rem;
|
||||
margin-right: .5rem;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
.terminal .terminal--btn:hover:not([disabled]),
|
||||
.terminal .terminal--btn:focus:not([disabled]),
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ ${options.content != null ? options.content : ''} \
|
||||
return Terminal.appendChild(choiceWrapper);
|
||||
});
|
||||
H.wait = timeout => new Promise((resolve, reject) => setTimeout(() => resolve()
|
||||
, Number(timeout != null ? timeout : 0) * /*100*/0));
|
||||
, Number(timeout != null ? timeout : 0) * 1000));
|
||||
H.random = function(min, max) {
|
||||
if ((max == null)) {
|
||||
[min, max] = [0, min];
|
||||
|
||||
+7
-19
@@ -16,25 +16,13 @@
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header"></div>
|
||||
<div id="terminal" class="terminal"><noscript class="terminal--line">Quit being paranoid and enable JavaScript.</noscript></div>
|
||||
<!-- <div id="terminal" class="terminal"><noscript class="terminal--line">Quit being paranoid and enable JavaScript.</noscript></div> -->
|
||||
<div id="terminal" class="terminal">
|
||||
<div class="terminal--line">
|
||||
<a href="/en.html" class="terminal--btn">English</a>
|
||||
<a href="/es.html" class="terminal--btn">Español</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="/helpers.js"></script>
|
||||
<script src="/en.js"></script>
|
||||
<script>
|
||||
H.choice({
|
||||
choices: [{
|
||||
content: "Start",
|
||||
callback: function () {
|
||||
en.$1()
|
||||
.then(function () {
|
||||
console.log("Dang, the game ended. That\u2019s weird.");
|
||||
})
|
||||
["catch"](function () {
|
||||
H.out("An error occurred, I hope Monika has nothing to do with this.");
|
||||
});
|
||||
},
|
||||
}]
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in new issue
Block a user