JavaScript must be enabled to play.
Browser lacks capabilities required to play.
Upgrade or switch to another browser.
Loading…
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/startsk%C3%A4rm%20r%C3%A4tt.jpg?raw=true" alt="Startbild"> <div class="link-row"> [[START GAME|FörstaScenen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/f%C3%B6rsta%20scenen.jpg?raw=true" alt="Korridor med textinbakad"> <div class="link-row"> [[Gå mot toaletterna|Toaletterna]] [[Kolla Elias skåp|Skåpsektionen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/toaletten.jpg?raw=true" alt="Toalettscen med kod på spegeln"> <div class="link-row"> [[Kolla Elias skåp|Skåpsektionen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/sk%C3%A5p%20ny.jpg?raw=true" alt="Skåp med kodlås"> <div class="text-content"> <input id="inputX" type="number" placeholder="Skriv värdet på x"> <button onclick="checkX()">Lås upp</button> <p id="feedback" style="margin-top: 1em;"></p> <div style="margin-top: 2em;"> <a href="javascript:void(0)" onclick="SugarCube.Engine.play('Toaletterna')">⬅️ Gå tillbaka till toaletterna</a> </div> </div> </div> <style> /* Flyttar hela rutan nedåt */ #game-wrapper .text-content { position: absolute; top: 65%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkX() { const input = document.getElementById("inputX").value.trim(); const feedback = document.getElementById("feedback"); if (input === "4") { feedback.innerHTML = '🔓 Låset klickar till.<br><a href="#" onclick="SugarCube.Engine.play(\'Skåpet öppnas\')">Öppna skåpet</a>'; } else { feedback.innerHTML = '❌ Fel. Försök igen.'; } } </script>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/Elias%20sk%C3%A5p.jpg?raw=true" alt="Inuti Elias skåp"> <div class="link-row"> [[Gå till expeditionen|Expeditionen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/expedition.jpg?raw=true" alt="Formulär med kod"> <div class="text-content"> <input id="inputRoom" type="number" placeholder="Vilken sal är det?"> <button onclick="checkRoom()">Gå dit</button> <p id="feedback" style="margin-top: 1em;"></p> </div> </div> <style> #game-wrapper .text-content { position: absolute; top: 65%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkRoom() { const input = document.getElementById("inputRoom").value.trim(); const feedback = document.getElementById("feedback"); if (input === "42") { feedback.innerHTML = '✅ Rätt. Sal 42 står det inristat i hörnet.<br><a href="#" onclick="SugarCube.Engine.play(\'NO-salen\')">Gå till NO-salen</a>'; } else { feedback.innerHTML = '❌ Fel. Försök igen.'; } } </script>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/nosal%202.jpg?raw=true" alt="NO-sal med doseringsschema"> <div class="text-content"> <input id="inputDose" type="number" placeholder="Hur många liter?"> <button onclick="checkDose()">Visa</button> <p id="feedback" style="margin-top: 1em;"></p> </div> </div> <style> #game-wrapper .text-content { position: absolute; top: 65%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkDose() { const input = document.getElementById("inputDose").value.trim(); const feedback = document.getElementById("feedback"); if (input === "14") { feedback.innerHTML = '✅ 14 liter...<br>Joel stirrar på flaskorna.<br><a href="#" onclick="SugarCube.Engine.play(\'NO-förrådet\')">Undersök förrådet</a>'; } else { feedback.innerHTML = '❌ Fel. Försök igen.'; } } </script>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/no%20f%C3%B6rr%C3%A5d.jpg?raw=true" alt="NO-förråd med dokument"> <div class="link-row"> [[Tolka funktionen|Funktionen och Elias]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/affischer%20no%20f%C3%B6rr%C3%A5d%203.jpg?raw=true" alt="NO-affischer med graf och kod"> <div class="text-content"> <input id="inputM" type="number" placeholder="m = ?"> <button onclick="checkM()">Visa</button> <p id="feedback" style="margin-top: 1em;"></p> </div> </div> <style> #game-wrapper .text-content { position: absolute; top: 75%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkM() { const input = document.getElementById("inputM").value.trim(); const feedback = document.getElementById("feedback"); if (input === "-11") { feedback.innerHTML = '✅ <em>Kolla efter - 11!</em><br><a href="#" onclick="SugarCube.Engine.play(\'Pärmen\')">Öppna pärmen</a>'; } else { feedback.innerHTML = '❌ Fel. Försök igen.'; } } </script>
<<cacheaudio "bg" "https://github.com/Snyggon/funktioner-ma1a/raw/main/Stranger%20maths%202.mp3">> <<audio "bg" play loop>>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/p%C3%A4rm.jpg?raw=true" alt="Pärm med salsnummer"> <div class="link-row"> [[Matsalen]] [[Källaren]] [[Vinden]] [[Sköterskan]] </div> </div> <style> #game-wrapper .link-row { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: row; justify-content: center; gap: 2em; z-index: 2; } .link-row a { background-color: rgba(0, 0, 0, 0.6); color: #FFD700; padding: 0.5em 1em; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 1.1em; } .link-row a:hover { background-color: rgba(255, 215, 0, 0.2); text-decoration: underline; } </style>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/matsal.jpg?raw=true" alt="Matsalen med anteckning"> <div class="link-row"> [[Tillbaka till pärmen|Pärmen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/k%C3%A4llaren.jpg?raw=true" alt="Källare med ledtråd"> <div class="link-row"> [[Tillbaka till pärmen|Pärmen]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/vinden.jpg?raw=true" alt="Vinden med ledtråd"> <div class="link-row"> [[Tillbaka till pärmen|Pärmen]] </div> </div>
:: Skolsköterskan <div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/elevkammare.jpg?raw=true" alt="Mörk skolsköterskerum med kodpanel"> <div class="text-content"> <input id="inputCode" type="number" placeholder="f(g(x)) = ?"> <button onclick="checkCode()">Lås upp</button> <p id="feedback" style="margin-top: 1em;"></p> <p style="margin-top: 2em;"> [[Tillbaka till pärmen|Pärmen]] </p> </div> </div> <style> #game-wrapper .text-content { position: absolute; top: 75%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkCode() { const input = document.getElementById("inputCode").value.trim(); const feedback = document.getElementById("feedback"); if (input === "-40") { feedback.innerHTML = '✅ Kod accepterad.<br><a href="#" onclick="SugarCube.Engine.play(\'FLY\')">FLY!</a>'; } else { feedback.innerHTML = '❌ Fel kod. Försök igen.'; } } </script>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/k%C3%A4llaren%20flykten.jpg?raw=true" alt="Källargång – flyktbild"> <div class="link-row"> [[Ut på skolgården|Skolgården]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/skolg%C3%A5rden.jpg?raw=true" alt="Skolgård med monster i dimman"> <div class="link-row"> [[Mopederna!|Mopeden]] </div> </div>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/moped.jpg?raw=true" alt="Moped redo för flykt"> <div class="text-content"> <input id="inputMil" type="number" step="0.01" placeholder="mil = ?"> <button onclick="checkFuel()">Starta</button> <p id="feedback" style="margin-top: 1em;"></p> </div> </div> <style> #game-wrapper .text-content { position: absolute; top: 75%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 2em; background-color: rgba(0, 0, 0, 0.4); border-radius: 12px; text-shadow: 0 0 8px rgba(0,0,0,0.7); } </style> <script> function checkFuel() { const input = document.getElementById("inputMil").value.trim(); const feedback = document.getElementById("feedback"); if (input === "6.25" || input === "6,25") { feedback.innerHTML = '✅ Mopeden startar!<br><a href="#" onclick="SugarCube.Engine.play(\'Slut\')">Kör!</a>'; } else { feedback.innerHTML = '❌ Den hackar till… men dör. Försök igen.'; } } </script>
<div id="game-wrapper"> <img class="passage-image" src="https://github.com/Snyggon/funktioner-ma1a/blob/main/hemma.jpg?raw=true" alt="Ungdomarna hemma i trygghet"> <div class="link-row"> [[Till startsidan|Untitled Passage]] </div> </div>