Maze Runner: SHEEP Quest
Nov 18, 2023
v.0
Navigate the letters S, H, and E through a maze to spell SHEEP at the exit EP. Collect points and find bonus items. How fast can you complete it? Interactive game Puzzle game Web game Maze game Sheep quest

Versions  

Bugs  
None!

Get This App On Your Website

1. Copy the code above with the iframe and link.
2. Paste the code into your website.
3. Resize the iframe to fit your website.

Javascript, HTML, CSS Code

                
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>

<meta charset="UTF-8">
<title>Maze Runner: SHEEP Quest</title>
<meta name="description" content="Navigate the letters S, H, and E through a maze to spell SHEEP at the exit EP. Collect points and find bonus items. How fast can you complete it?">
<meta name="keywords" content="maze game, sheep quest, puzzle game, web game, interactive game">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
body, html {
height: 100%;
margin: 0;
font-family: 'Press Start 2P', cursive;
}
#game-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
background: linear-gradient(to right, #6dd5ed, #ff758c);
color: #333;
}
#maze {
position: relative;
border: 5px solid #333;
}
.cell {
width: 20px;
height: 20px;
float: left;
border: 1px solid #eee;
box-sizing: border-box;
}
.wall {
background-color: #333;
}
.path {
background-color: #fff;
}
.letter {
position: absolute;
transition: top 0.2s, left 0.2s;
}
.exit {
background-color: #0f9d58;
}
#hud {
text-align: center;
padding: 10px;
}
.hud-item {
margin: 5px;
display: inline-block;
}
.hud-item span {
display: block;
font-size: 16px;
}
button {
padding: 5px 15px;
margin-top: 10px;
cursor: pointer;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(function() {
const mazeContainer = $('#maze');
const hudTime = $('#hud-time');
const hudScore = $('#hud-score');
let level = 1;
let score = 0;
let startTime;
let timerInterval;

function initGame(level) {
const size = Math.floor(10 + level * 0.1);
mazeContainer.empty().css({width: size * 22, height: size * 22});
generateMaze(size);
placeLetters();
startTime = new Date();
timerInterval = setInterval(updateTime, 100);
}

function generateMaze(size) {
// Maze generation logic
// Placeholder for the actual maze generation
for (let i = 0; i < size * size; i++) {
$('<div/>').addClass('cell path').appendTo(mazeContainer);
}
}

function placeLetters() {
// Place letters S, H, E and exit EP
$('<div/>').addClass('letter').text('S').css({top: 0, left: 0}).appendTo(mazeContainer);
$('<div/>').addClass('letter').text('H').css({top: 0, left: '22px'}).appendTo(mazeContainer);
$('<div/>').addClass('letter').text('E').css({top: '22px', left: 0}).appendTo(mazeContainer);
$('<div/>').addClass('cell exit').text('EP').css({bottom: 0, right: 0}).appendTo(mazeContainer);
}

function updateTime() {
const now = new Date();
const elapsedTime = now - startTime;
const seconds = Math.floor(elapsedTime / 1000);
hudTime.text(`Time: ${seconds}s`);
}

function updateScore(points) {
score += points;
hudScore.text(`Score: ${score}`);
}

// Event listeners for keyboard controls
$(document).on('keydown', function(e) {
// Placeholder for movement logic
});

// Initialize the first level
initGame(level);

// Function to update the game to the next level
function nextLevel() {
clearInterval(timerInterval);
level++;
initGame(level);
}

$('#next-level-btn').on('click', nextLevel);
});
</script>

<link rel="canonical" href="https://calculator.tools/app/maze-runner-sheep-quest-746/">
<meta charset="utf-8">

</head>
<body>
<div id="game-container">
<div id="hud">
<div class="hud-item">
<span id="hud-score">Score: 0</span>
</div>
<div class="hud-item">
<span id="hud-time">Time: 0s</span>
</div>
<button id="next-level-btn">Next Level</button>
</div>
<div id="maze"></div>
</div>
<script type="text/javascript"> var localStoragePrefix = "ct-746"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>

NEW APPS

These are apps made by the community!

FAQ

What is Calculator Tools?

Calculator Tools allows you to instantly create and generate any simple one page web app for free and immediately have it online to use and share. This means anything! Mini apps, calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the AI can handle.

The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.

What Do You Mean Make An App?

Have you ever just wanted a simple app but didn't want to learn programming or pay someone to make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will generate a simple app for you in seconds. You can then customize it to your liking and share it with your friends.

AI has become so powerful it is that simple these days.

Does This Use ChatGPT?

It uses GPT-4 which is the most powerful model for ChatGPT.

Calculator Tools does not remember things from prompt to prompt, each image is a unique image that does not reference any of the images or prompts previously supplied.