- Blind mode tutorial
lichess.org
Donate

html code private for school to run games + lichess

Might Crash Chromebook but may or may not work

Resident Evil 2:

<html>

<!-- Ultimate Game Stash file-->
<!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->

<head>
<script>
window.gameconfig = {
name: "Resident Evil 2 (USA)",
url: "https://cdn.jsdelivr.net/gh/bubbls/ugss@4a4f4037080a9c4e932e5e0687a234225ac360ca/Resident%20Evil%202%20(USA)/Resident%20Evil%202%20(USA).z64",
core: "n64",
min: 1,
max: 4,
};
</script>
<script>
function mergeFiles(fileParts, cb) {
return new Promise((resolve, reject) => {
let buffers = [];
function fetchPart(index) {
if (index >= fileParts.length) {
let mergedBlob = new Blob(buffers);
let mergedFileUrl = URL.createObjectURL(mergedBlob);
resolve(mergedFileUrl);
return;
}
fetch(fileParts[index])
.then((response) => response.arrayBuffer())
.then((data) => {
buffers.push(data);
fetchPart(index + 1);
})
.catch(reject);
cb(index);
}
fetchPart(0);
});
}
function getParts(file, start, end) {
let parts = [];
for (let i = start; i <= end; i++) {
parts.push(file + ".part" + i);
}
return parts;
}
</script>
<style>
body,
html {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background-color: #121212;
color: white;
font-family: Arial, sans-serif;
}
#game-container {
text-align: center;
width: 100%;
height: 100%;
}
#loading-progress {
font-size: 18px;
margin-top: 20px;
padding: 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
display: inline-block;
}
</style>
</head>
<body>
<div id="game-container">
<div id="game"></div>
<div id="loading-progress">Loading: 0/0</div>
<div id="first-time">First-time loading may take longer...</div>
</div>
<script>
var parts = getParts(
window.gameconfig.url,
window.gameconfig.min,
window.gameconfig.max
);
var totalParts = parts.length;

function updateLoadingProgress(loaded) {
const progressElement = document.getElementById("loading-progress");
if (loaded === 0) {
progressElement.textContent = "Loading: 0/0";
} else {
progressElement.textContent = Loading: ${loaded}/${totalParts};
}
}

Promise.all([mergeFiles(parts, updateLoadingProgress)])
.then(([gameUrl]) => {
document.getElementById("loading-progress").remove();
document.getElementById("first-time").remove();
EJS_player = "#game";
EJS_core = window.gameconfig.core;
EJS_gameName = window.gameconfig.name;
EJS_color = "#0064ff";
EJS_startOnLoaded = true;
EJS_pathtodata = "https://cdn.jsdelivr.net/gh/genizy/emu@master/";
EJS_gameUrl = gameUrl;
const script = document.createElement("script");
script.src =
"https://cdn.jsdelivr.net/gh/genizy/emu@master/loader.js";
document.body.appendChild(script);
})
.catch((error) => {
console.error(error);
document.getElementById("loading-progress").textContent =
"Error loading game.";
});
</script>
</body>
</html>

Might Crash Chromebook but may or may not work Resident Evil 2: <html> <!-- Ultimate Game Stash file--> <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ --> <head> <script> window.gameconfig = { name: "Resident Evil 2 (USA)", url: "https://cdn.jsdelivr.net/gh/bubbls/ugss@4a4f4037080a9c4e932e5e0687a234225ac360ca/Resident%20Evil%202%20(USA)/Resident%20Evil%202%20(USA).z64", core: "n64", min: 1, max: 4, }; </script> <script> function mergeFiles(fileParts, cb) { return new Promise((resolve, reject) => { let buffers = []; function fetchPart(index) { if (index >= fileParts.length) { let mergedBlob = new Blob(buffers); let mergedFileUrl = URL.createObjectURL(mergedBlob); resolve(mergedFileUrl); return; } fetch(fileParts[index]) .then((response) => response.arrayBuffer()) .then((data) => { buffers.push(data); fetchPart(index + 1); }) .catch(reject); cb(index); } fetchPart(0); }); } function getParts(file, start, end) { let parts = []; for (let i = start; i <= end; i++) { parts.push(file + ".part" + i); } return parts; } </script> <style> body, html { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background-color: #121212; color: white; font-family: Arial, sans-serif; } #game-container { text-align: center; width: 100%; height: 100%; } #loading-progress { font-size: 18px; margin-top: 20px; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; display: inline-block; } </style> </head> <body> <div id="game-container"> <div id="game"></div> <div id="loading-progress">Loading: 0/0</div> <div id="first-time">First-time loading may take longer...</div> </div> <script> var parts = getParts( window.gameconfig.url, window.gameconfig.min, window.gameconfig.max ); var totalParts = parts.length; function updateLoadingProgress(loaded) { const progressElement = document.getElementById("loading-progress"); if (loaded === 0) { progressElement.textContent = "Loading: 0/0"; } else { progressElement.textContent = `Loading: ${loaded}/${totalParts}`; } } Promise.all([mergeFiles(parts, updateLoadingProgress)]) .then(([gameUrl]) => { document.getElementById("loading-progress").remove(); document.getElementById("first-time").remove(); EJS_player = "#game"; EJS_core = window.gameconfig.core; EJS_gameName = window.gameconfig.name; EJS_color = "#0064ff"; EJS_startOnLoaded = true; EJS_pathtodata = "https://cdn.jsdelivr.net/gh/genizy/emu@master/"; EJS_gameUrl = gameUrl; const script = document.createElement("script"); script.src = "https://cdn.jsdelivr.net/gh/genizy/emu@master/loader.js"; document.body.appendChild(script); }) .catch((error) => { console.error(error); document.getElementById("loading-progress").textContent = "Error loading game."; }); </script> </body> </html>

Sonic CD:

<html>

<!-- Ultimate Game Stash file-->
<!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->

<head>
<script src="//www.google.com/jsapi"></script>
<script>
window.parent.maeExportApis_();
</script>

<style>
body {
overflow: hidden;
background: #000000;
margin-top: 0;
margin-left: 0;
color: #000000;
}

#startButton {
display: block;
width: 160px;
height: 40px;
background-color: #4CAF50;
color: white;
text-align: center;
text-decoration: none;
font-size: 16px;
margin: 20px auto;
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-family: 'Press Start 2P', cursive;
box-shadow: 0px 0px 10px 2px #000000;
}
</style>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;display=swap" rel="stylesheet">
<style type="text/css">
#button {
display: none;
}

.imgb_vis {
animation: imgb-animation 7s linear;
}

@keyframes imgb-animation {
10% {
transform: translateX(0);
}

20% {
transform: translateX(100px);
}

90% {
transform: translateX(100px);
}

100% {
transform: translateX(0);
}
}
</style>
</head>

<body>
<div style="width: 100vw; height: 100vh;max-width:100%">
<div id="game" style="display: none;"></div>
<button id="startButton">PLAY</button>
</div>
<script>
document.getElementById("game").style.display = "none";
function startGame() {
document.getElementById("game").style.display = "block";
document.getElementById("startButton").style.display = "none";
EJS_player = "#game";
EJS_core = "segaCD";
EJS_color = "#000000";
EJS_startOnLoaded = true;
EJS_pathtodata = "https://cdn.jsdelivr.net/gh/a456pur/seraph@81f551ca0aa8e3d6018d32d8ac5904ac9bc78f76/storage/emulatorjs/data";
EJS_gameUrl = "https://bbcdn.githack.com/ihavebecomememe/i-have/raw/main/Sonic%20CD%20(USA).zip";
EJS_biosUrl = "https://cdn.jsdelivr.net/gh/Abdess/retroarch_system@5f96368f6dbad5851cdb16a5041fefec4bdcd305/Sega%20-%20Mega%20CD%20-%20Sega%20CD/bios_CD_U.bin";
loadGame();
}
document.getElementById("startButton").addEventListener("click", startGame);
function loadGame() {
var script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/gh/a456pur/seraph@81f551ca0aa8e3d6018d32d8ac5904ac9bc78f76/storage/emulatorjs/data/loader.js";
document.body.appendChild(script);
var script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/gh/a456pur/seraph@ae2fcc6d6a9cd051654fcc0519080db1f79cf2a7/storage/js/cloak.js";
document.body.appendChild(script);
}
</script>

Sonic CD: <html> <!-- Ultimate Game Stash file--> <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ --> <head> <script src="//www.google.com/jsapi"></script> <script> window.parent.maeExportApis_(); </script> <style> body { overflow: hidden; background: #000000; margin-top: 0; margin-left: 0; color: #000000; } #startButton { display: block; width: 160px; height: 40px; background-color: #4CAF50; color: white; text-align: center; text-decoration: none; font-size: 16px; margin: 20px auto; padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-family: 'Press Start 2P', cursive; box-shadow: 0px 0px 10px 2px #000000; } </style> <link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;display=swap" rel="stylesheet"> <style type="text/css"> #button { display: none; } .imgb_vis { animation: imgb-animation 7s linear; } @keyframes imgb-animation { 10% { transform: translateX(0); } 20% { transform: translateX(100px); } 90% { transform: translateX(100px); } 100% { transform: translateX(0); } } </style> </head> <body> <div style="width: 100vw; height: 100vh;max-width:100%"> <div id="game" style="display: none;"></div> <button id="startButton">PLAY</button> </div> <script> document.getElementById("game").style.display = "none"; function startGame() { document.getElementById("game").style.display = "block"; document.getElementById("startButton").style.display = "none"; EJS_player = "#game"; EJS_core = "segaCD"; EJS_color = "#000000"; EJS_startOnLoaded = true; EJS_pathtodata = "https://cdn.jsdelivr.net/gh/a456pur/seraph@81f551ca0aa8e3d6018d32d8ac5904ac9bc78f76/storage/emulatorjs/data"; EJS_gameUrl = "https://bbcdn.githack.com/ihavebecomememe/i-have/raw/main/Sonic%20CD%20(USA).zip"; EJS_biosUrl = "https://cdn.jsdelivr.net/gh/Abdess/retroarch_system@5f96368f6dbad5851cdb16a5041fefec4bdcd305/Sega%20-%20Mega%20CD%20-%20Sega%20CD/bios_CD_U.bin"; loadGame(); } document.getElementById("startButton").addEventListener("click", startGame); function loadGame() { var script = document.createElement("script"); script.src = "https://cdn.jsdelivr.net/gh/a456pur/seraph@81f551ca0aa8e3d6018d32d8ac5904ac9bc78f76/storage/emulatorjs/data/loader.js"; document.body.appendChild(script); var script = document.createElement("script"); script.src = "https://cdn.jsdelivr.net/gh/a456pur/seraph@ae2fcc6d6a9cd051654fcc0519080db1f79cf2a7/storage/js/cloak.js"; document.body.appendChild(script); } </script>

Animal Crossing:

<html>

<!-- Ultimate Game Stash file-->
<!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ -->

<head>
<script>
window.gameconfig = {
name: "Animal Crossing - Wild World (USA)",
url: "https://cdn.jsdelivr.net/gh/bubbls/ugss@4cee1f0ea2fbd85800ca8d90804abe42ce8dfb33/Animal%20Crossing%20-%20Wild%20World%20(USA)%20(Rev%201)/Animal%20Crossing%20-%20Wild%20World%20(USA)%20(Rev%201).nds",
core: "nds",
min: 1,
max: 2,
};
</script>
<script>
function mergeFiles(fileParts, cb) {
return new Promise((resolve, reject) => {
let buffers = [];
function fetchPart(index) {
if (index >= fileParts.length) {
let mergedBlob = new Blob(buffers);
let mergedFileUrl = URL.createObjectURL(mergedBlob);
resolve(mergedFileUrl);
return;
}
fetch(fileParts[index])
.then((response) => response.arrayBuffer())
.then((data) => {
buffers.push(data);
fetchPart(index + 1);
})
.catch(reject);
cb(index);
}
fetchPart(0);
});
}
function getParts(file, start, end) {
let parts = [];
for (let i = start; i <= end; i++) {
parts.push(file + ".part" + i);
}
return parts;
}
</script>
<style>
body,
html {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background-color: #121212;
color: white;
font-family: Arial, sans-serif;
}
#game-container {
text-align: center;
width: 100%;
height: 100%;
}
#loading-progress {
font-size: 18px;
margin-top: 20px;
padding: 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
display: inline-block;
}
</style>
</head>
<body>
<div id="game-container">
<div id="game"></div>
<div id="loading-progress">Loading: 0/0</div>
<div id="first-time">First-time loading may take longer...</div>
</div>
<script>
var parts = getParts(
window.gameconfig.url,
window.gameconfig.min,
window.gameconfig.max
);
var totalParts = parts.length;

function updateLoadingProgress(loaded) {
const progressElement = document.getElementById("loading-progress");
if (loaded === 0) {
progressElement.textContent = "Loading: 0/0";
} else {
progressElement.textContent = Loading: ${loaded}/${totalParts};
}
}

Promise.all([mergeFiles(parts, updateLoadingProgress)])
.then(([gameUrl]) => {
document.getElementById("loading-progress").remove();
document.getElementById("first-time").remove();
EJS_player = "#game";
EJS_core = window.gameconfig.core;
EJS_gameName = window.gameconfig.name;
EJS_color = "#0064ff";
EJS_startOnLoaded = true;
EJS_pathtodata = "https://cdn.jsdelivr.net/gh/genizy/emu@master/";
EJS_gameUrl = gameUrl;
const script = document.createElement("script");
script.src =
"https://cdn.jsdelivr.net/gh/genizy/emu@master/loader.js";
document.body.appendChild(script);
})
.catch((error) => {
console.error(error);
document.getElementById("loading-progress").textContent =
"Error loading game.";
});
</script>
</body>
</html>

Animal Crossing: <html> <!-- Ultimate Game Stash file--> <!-- For the regularly updating doc go to https://docs.google.com/document/d/1_FmH3BlSBQI7FGgAQL59-ZPe8eCxs35wel6JUyVaG8Q/ --> <head> <script> window.gameconfig = { name: "Animal Crossing - Wild World (USA)", url: "https://cdn.jsdelivr.net/gh/bubbls/ugss@4cee1f0ea2fbd85800ca8d90804abe42ce8dfb33/Animal%20Crossing%20-%20Wild%20World%20(USA)%20(Rev%201)/Animal%20Crossing%20-%20Wild%20World%20(USA)%20(Rev%201).nds", core: "nds", min: 1, max: 2, }; </script> <script> function mergeFiles(fileParts, cb) { return new Promise((resolve, reject) => { let buffers = []; function fetchPart(index) { if (index >= fileParts.length) { let mergedBlob = new Blob(buffers); let mergedFileUrl = URL.createObjectURL(mergedBlob); resolve(mergedFileUrl); return; } fetch(fileParts[index]) .then((response) => response.arrayBuffer()) .then((data) => { buffers.push(data); fetchPart(index + 1); }) .catch(reject); cb(index); } fetchPart(0); }); } function getParts(file, start, end) { let parts = []; for (let i = start; i <= end; i++) { parts.push(file + ".part" + i); } return parts; } </script> <style> body, html { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background-color: #121212; color: white; font-family: Arial, sans-serif; } #game-container { text-align: center; width: 100%; height: 100%; } #loading-progress { font-size: 18px; margin-top: 20px; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; display: inline-block; } </style> </head> <body> <div id="game-container"> <div id="game"></div> <div id="loading-progress">Loading: 0/0</div> <div id="first-time">First-time loading may take longer...</div> </div> <script> var parts = getParts( window.gameconfig.url, window.gameconfig.min, window.gameconfig.max ); var totalParts = parts.length; function updateLoadingProgress(loaded) { const progressElement = document.getElementById("loading-progress"); if (loaded === 0) { progressElement.textContent = "Loading: 0/0"; } else { progressElement.textContent = `Loading: ${loaded}/${totalParts}`; } } Promise.all([mergeFiles(parts, updateLoadingProgress)]) .then(([gameUrl]) => { document.getElementById("loading-progress").remove(); document.getElementById("first-time").remove(); EJS_player = "#game"; EJS_core = window.gameconfig.core; EJS_gameName = window.gameconfig.name; EJS_color = "#0064ff"; EJS_startOnLoaded = true; EJS_pathtodata = "https://cdn.jsdelivr.net/gh/genizy/emu@master/"; EJS_gameUrl = gameUrl; const script = document.createElement("script"); script.src = "https://cdn.jsdelivr.net/gh/genizy/emu@master/loader.js"; document.body.appendChild(script); }) .catch((error) => { console.error(error); document.getElementById("loading-progress").textContent = "Error loading game."; }); </script> </body> </html>
<Comment deleted by user>

This topic has been archived and can no longer be replied to.