Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
gometrysten committed Apr 14, 2024
1 parent 91ba481 commit efbc680
Show file tree
Hide file tree
Showing 16 changed files with 50,508 additions and 9 deletions.
Binary file added bitlife/BitLife.data.unityweb
Binary file not shown.
Binary file added bitlife/BitLife.wasm.code.unityweb
Binary file not shown.
22,502 changes: 22,502 additions & 0 deletions bitlife/BitLife.wasm.framework.unityweb

Large diffs are not rendered by default.

5,160 changes: 5,160 additions & 0 deletions bitlife/UnityLoader.js

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions bitlife/frame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<style>
html, body, div {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
line-height: 0;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>BitLife Life Simulator Unblocked - Sten Unblocked</title>
<meta name="description" content="BitLife Life Simulator Unblocked is a fun unblocked game that you can play at school from chromebook. In our catalog you can find many cool online games that you may enjoy.">
<link rel="stylesheet" href="/slope/style/style.css" />
<script>
function UnityProgress(gameInstance, progress) {
if (!gameInstance.Module)
return;
if (!gameInstance.logo) {
gameInstance.logo = document.createElement("div");
gameInstance.logo.className = "logo " + gameInstance.Module.splashScreenStyle;
gameInstance.container.appendChild(gameInstance.logo);
}
if (!gameInstance.progress) {
gameInstance.progress = document.createElement("div");
gameInstance.progress.className = "progress " + gameInstance.Module.splashScreenStyle;
gameInstance.progress.empty = document.createElement("div");
gameInstance.progress.empty.className = "empty";
gameInstance.progress.appendChild(gameInstance.progress.empty);
gameInstance.progress.full = document.createElement("div");
gameInstance.progress.full.className = "full";
gameInstance.progress.appendChild(gameInstance.progress.full);
gameInstance.container.appendChild(gameInstance.progress);
}
gameInstance.progress.full.style.width = (100 * progress) + "%";
gameInstance.progress.empty.style.width = (100 * (1 - progress)) + "%";
if (progress == 1)
gameInstance.logo.style.display = gameInstance.progress.style.display = "none";
}
</script>
<script src="UnityLoader.js"></script>
<script>
var gameInstance = UnityLoader.instantiate("gameContainer", "game.json", {onProgress: UnityProgress,Module:{onRuntimeInitialized: function() {UnityProgress(gameInstance, "complete")}}});
</script>
</head>
<body>
<div class="webgl-content">
<div id="gameContainer"></div>
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions bitlife/game.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"companyName": "ngames365.github.io",
"productName": "BitLife",
"productVersion": "1.0",
"dataUrl": "BitLife.data.unityweb",
"wasmCodeUrl": "BitLife.wasm.code.unityweb",
"wasmFrameworkUrl": "BitLife.wasm.framework.unityweb",
"graphicsAPI": ["WebGL 2.0","WebGL 1.0"],
"webglContextAttributes": {"preserveDrawingBuffer": false},
"splashScreenStyle": "Dark",
"backgroundColor": "#231F20",
"cacheControl": {"default": "must-revalidate"},
"developmentBuild": false,
"multithreading": false,
"unityVersion": "2019.4.21f1"
}
90 changes: 90 additions & 0 deletions bitlife/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MY0THGFRYS"></script>
<title>BitLife Life Simulator - Sten Unblocked</title>
<link rel="icon" href="../stennerela.jpg">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3798877607103818" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="description" content="BitLife is a life simulation game in which users take control of a stranger's life from beginning to end. It was released by Candy writer, a free app that, although not very famous on Google Play, has made a big impact on the gaming community.">
<meta name="keywords" content="sten unblocked, bit life unblocked, bitlife life simulator unblocked, sten unblocked bitlife, bit life simulator, unblocked games, unblocked games 66, unblocked games school, unblocked games wtf, unblocked games premium, unblocked games sten">
<meta name="author" content="Sten">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<style>
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
center {
position: absolute;
top: 0;
width:100%;
height:100%;
}
iframe {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
padding: 0;
margin: 0;
border: none;
width: 30%;
height: 84%;
z-index: 1;
user-select: none;
}
.fullScreen {
padding: 0;
margin: 0;
width: 30%;
height: 100%;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
z-index:9999;
}
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}

html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0; /* Remove scrollbar space */
background: transparent; /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
div {
margin: 8px 8px 8px 8px;
}
h3{
z-index:52;
}
</style>
</head>
<iframe src="./frame.html" id="frame"></iframe>
<div>
<h3 style="font-size:20px;font-family:Arial;"><a href="../index.html">Sten Unblocked</a></h3>
<h3 style="font-size:20px;font-family:Arial;"><a id="likes" href="#" onclick="like()">Loading likes...</a></h3></div>
<div style="display:none;width: 0; height: 100%;z-index:9998;padding:0;margin:0;position:absolute;top:0;left:0; background-color: black;" id="fullscrenBackground">
<div style="margin: 2%; background-image: url('../stennerela.jpg'); background-repeat: repeat-y; width: 100%; height: 100%; opacity: 0.3; background-size: 30% 25%; transform: translateY(-5%);">
<div style="margin: 2%; background-image: url('../stennerela.jpg'); background-repeat: repeat-y; width: 100%; height: 100%; opacity: 0.3; background-size: 30% 25%; transform: translate(63%, -5%);">
</div>
<script>
var game = "/bitlife/";
</script>
<script src="../stenunblockedmain.js"></script>
<script src="../fullscreen.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,23 @@ function enableFullscreen() {
_fullscreen = true;
_frame.setAttribute("class", "fullScreen");
disableScroll();

if (document.getElementById("fullscrenBackground")) {
document.getElementById("fullscrenBackground").style.width = '100%';
document.getElementById("fullscrenBackground").style.display = '';
}
}

function disableFullscreen() {
document.body.style.overflow = "";
_fullscreen = false;
_frame.setAttribute("class", "");
enableScroll();

if (document.getElementById("fullscrenBackground")) {
document.getElementById("fullscrenBackground").style.width = '0';
document.getElementById("fullscrenBackground").style.display = 'none';
}
}

function openFullscreen() {
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ <h3 style="font-family:Arial;"><a href="/privacy-policy/">Privacy Policy</a></h3
["/stunt-master/", "City Car Driving Simulator: Stunt Master"],
["/drift-hunters/third_miror.html", "Drift Hunters (3rd Link)"],
["/fruit-merge/", "Fruit Merge"],
["/gold-digger/", "Gold Digger FRVR"]
["/gold-digger/", "Gold Digger FRVR"],
["/bitlife/", "BitLife Life Simulator"],
["/moto-run/frame.html", "Moto Traffic Run 3D [BETA]"]
];
var games_original = games.slice();
games_original.reverse();
Expand Down
Binary file added moto-run/MotoRoadRash3D-2.data.unityweb
Binary file not shown.
Binary file added moto-run/MotoRoadRash3D-2.wasm.code.unityweb
Binary file not shown.
Loading

0 comments on commit efbc680

Please sign in to comment.