Add files using upload-large-folder tool
Browse filesFiles changed (20)
- filestorage/gd/freds72-poom/index.htmlAdded+1964
- filestorage/gd/funnyshooter/favicon.icoAdded
- filestorage/gd/funnyshooter/index.htmlAdded+99
- filestorage/gd/funnyshooter/style.cssAdded+105
- filestorage/gd/myosotis-web/index.htmlAdded+239
- filestorage/gd/myosotis-web/index.html.symbolsAdded
- filestorage/gd/myosotis-web/manifest.jsonAdded+1
- filestorage/gd/myosotis-web/pwa_catalog.jsonAdded+1
- filestorage/gd/myosotis-web/renpy-pre.jsAdded+976
- filestorage/gd/myosotis-web/renpy.jsAdded
- filestorage/gd/myosotis-web/service-worker.jsAdded+92
- filestorage/gd/overboy-mobs-inc/box2d.wasm.jsAdded
- filestorage/gd/overboy-mobs-inc/data.jsonAdded
- filestorage/gd/overboy-mobs-inc/index.htmlAdded+35
- filestorage/gd/overboy-mobs-inc/style.cssAdded+111
- filestorage/gd/overboy-mobs-inc/workermain.jsAdded+1
- filestorage/gd/shinpansen-coffee-maker/index.htmlAdded+747
- filestorage/gd/try-froggery-myosotis/index.htmlAdded+222
- filestorage/gd/try-froggery-myosotis/renpy-pre.jsAdded+976
- filestorage/gd/try-froggery-myosotis/renpy.jsAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964<html><head><title>POOM by @gamecactus+@fsouchu</title><meta content="width=device-width, user-scalable=no" name="viewport"/><link href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAA18ElEQVR4Ae29UWwbZ5oteKpKJF0RQ3pLlNQrdkdlwaKlSdgNXg9oz02PzSTTQLCZCUAEsDH7YjjdO1isb2OghVfOG+G3VmB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izes="16x16" type="image/png"/><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script><script src="bin/newgroundsio.js" type="text/javascript"></script><script type="text/javascript">
// Shell for POOM (or any fps game)
// options
// fullscreen, sound, close button at top when playing on touchscreen
// defaults to false because takes up precious screen space on smaller mobile devices
var p8_allow_mobile_menu = false;
// p8_autoplay true to boot the cartridge automatically after page load when possible
// if the browser can not create an audio context outside of a user gesture (e.g. on iOS), p8_autoplay has no effect
var p8_autoplay = false;
// When pico8_state is defined, PICO-8 will set .is_paused, .sound_volume and .frame_number each frame
// (used for determining button icons)
var pico8_state = [];
// When pico8_buttons is defined, PICO-8 reads each int as a bitfield holding that player's button states
// 0x1 left, 0x2 right, 0x4 up, 0x8 right, 0x10 O, 0x20 X, 0x40 menu
// (used by p8_update_gamepads)
var pico8_buttons = [0, 0, 0, 0, 0, 0, 0, 0]; // max 8 players
// used to display number of detected joysticks
var pico8_gamepads = {};
pico8_gamepads.count = 0;
// When pico8_gpio is defined, reading and writing to gpio pins will read and write to these values
var gpio_data = new Array(128);
var nb_bytes = 0;
var ignore = false;
var bank_data = null;
var bank_request = null;
var bank_filename = "poom_1.9.js".replace(".js","") + "_"
var use_key = 0x10;
function checkStatus(response) {
if (!response.ok) {
throw new Error(`HTTP ${response.status} - ${response.statusText}`);
}
return response;
}
var pico8_gpio = new P-r0xy(gpio_data, {
set: function(target, property, value, receiver) {
target[property] = value;
if(ignore) return true;
// requesting bank load
if(property==0 && value == 1) {
ignore = true;
var bank_name = bank_filename + target[1] + ".bin";
bank_data = null;
console.log("Processing bank: " + bank_name + " request");
fetch(bank_name)
.then(response => checkStatus(response) && response.arrayBuffer())
.then(buffer => {
bank_data = new Uint8Array(buffer);
console.log("Got blob for: " + bank_name + " bytes: " + bank_data.length);
nb_bytes = 0;
// notify pico
target[0] = 0;
target[1] = 0;
ignore = false;
})
.catch(error => {
console.error('There has been a problem with your fetch operation:', error);
});
}
// reading data
if(property==0 && value == 2) {
ignore = true;
if(!bank_data) {
console.error("No data to read");
return true;
}
var len = bank_data.length;
if(nb_bytes<len) {
var n = Math.min(len-nb_bytes,126);
// console.log("Transmitting: " + n + " bytes - " + nb_bytes + "/" + len);
for(var i=0;i<n;i++) {
target[2 + i] = bank_data[nb_bytes++];
}
// notify pico
target[1] = n;
target[0] = 0;
} else {
target[1] = 0;
target[0] = 0;
console.log("Transmitting: DONE");
}
ignore = false;
}
// space key
if(property==0 && value == 3) {
ignore = true;
use_key = target[1];
console.log("Use key: " + use_key);
target[0] = 0;
ignore = false;
}
return true;
}
});
// When pico8_audio_context context is defined, the html shell (this file) is responsible for creating and managing it.
// This makes satisfying browser requirements easier -- e.g. initialising audio from a short script in response to a user action.
// Otherwise PICO-8 will try to create and use its own context.
var pico8_audio_context;
// added 0.2.1: work-around for iOS/Safari running from an iFrame (e.g. from itch.io page):
// touch events only register after adding dummy listeners on document.
document.addEventListener('touchstart', {});
document.addEventListener('touchmove', {});
document.addEventListener('touchend', {});
// newgrounds API integration
// see: https://bitbucket.org/newgrounds/newgrounds.io-for-javascript-html5/src/master/
var ngio = new Newgrounds.io.core("51226:quLdcYsS", "8CWTNALuMzjEnW6ckrEOsA==");
// TODO: remove for release
// ngio.debug = true;
function onLoggedIn() {
console.log("Welcome " + ngio.user.name + "!");
/* load our medals and scoreboards from the server */
ngio.queueComponent("Medal.getList", {}, onMedalsLoaded);
ngio.queueComponent("ScoreBoard.getBoards", {}, onScoreboardsLoaded);
ngio.executeQueue();
}
function onLoginFailed() {
console.log("There was a problem logging in: " . ngio.login_error.message );
}
function onLoginCancelled() {
console.log("The user cancelled the login.");
}
/* vars to record any medals and scoreboards that get loaded */
var medals, scoreboards;
// ensure consistent mapping between medals id and gpio pins
var leaderboard_pins = {
// medals count
medals: 2,
map: 7,
kills: 8,
// time (must reserve 4 pins)
time: 9,
// total game time
total_time: 19
};
// victory medals (per skill)
leaderboard_pins[61470] = 3;
leaderboard_pins[61471] = 4;
leaderboard_pins[61472] = 5;
leaderboard_pins[61473] = 6;
// secret medals (per level)
leaderboard_pins[61524] = 13;
leaderboard_pins[61525] = 14;
leaderboard_pins[61526] = 15;
leaderboard_pins[61528] = 16;
leaderboard_pins[61527] = 17;
// punch perfect (per level)
leaderboard_pins[61517] = 23;
leaderboard_pins[61520] = 24;
leaderboard_pins[61515] = 25;
leaderboard_pins[61519] = 26;
leaderboard_pins[61516] = 27;
leaderboard_pins[61518] = 28;
var leaderboard_level_id = [9773, 9775, 9776, 9779, 9777, 9778];
/* You could use this function to draw the medal notification on-screen */
function onMedalUnlocked(medal) {
console.log('MEDAL GET:', medal.name);
}
function postTimeScore(id, pin) {
var time = pico8_gpio[pin] | pico8_gpio[pin+1]<<8 | pico8_gpio[pin+2]<<16 | pico8_gpio[pin+3]<<24;
if (time>0) {
time = Math.round(1000 * time/(1<<16));
ngio.callComponent('ScoreBoard.postScore', {id: id, value: time});
}
}
function achievementListener() {
var medal;
var pin;
for (var i = 0; i < medals.length; i++) {
medal = medals[i];
pin = leaderboard_pins[medal.id];
if(!medal.unlocked && pico8_gpio[pin]>0) {
/* unlock the medal from the server */
ngio.callComponent('Medal.unlock', {id:medal.id}, function(result) {
if (result.success) onMedalUnlocked(result.medal);
});
// reset status
pico8_gpio[pin] = 0;
}
}
// new score?
var map_id = pico8_gpio[leaderboard_pins.map];
if(map_id>0) {
console.log("Completed map: " + map_id);
// kills
ngio.callComponent('ScoreBoard.postScore', {id: 9774, value: pico8_gpio[leaderboard_pins.kills]});
// level time
postTimeScore(leaderboard_level_id[map_id-1], leaderboard_pins.time);
// total time (if any)
postTimeScore(9784, leaderboard_pins.total_time);
// reset pin
pico8_gpio[leaderboard_pins.map] = 0;
}
requestAnimationFrame(achievementListener);
}
/* handle loaded medals */
function onMedalsLoaded(result) {
if (result.success) {
medals = result.medals;
// copy medals to gpio
var medal;
for (var i = 0; i < medals.length; i++) {
medal = medals[i];
console.log("MEDAL STATUS:" + medal.id + " " + medal.name + " => " + medal.unlocked);
// medal status
pico8_gpio[leaderboard_pins[medal.id]] = medal.unlocked?1:0;
}
// medals loaded
pico8_gpio[2] = medals.length;
// register listener
requestAnimationFrame(achievementListener);
}
}
/* handle loaded scores */
function onScoreboardsLoaded(result) {
if (result.success) scoreboards = result.scoreboards;
}
/*
* Before we do anything, we need to get a valid Passport session. If the player
* has previously logged in and selected 'remember me', we may have a valid session
* already saved locally.
*/
function initNGSession() {
ngio.getValidSession(function() {
if (ngio.user) {
/*
* If we have a saved session, and it has not expired,
* we will also have a user object we can access.
* We can go ahead and run our onLoggedIn handler here.
*/
onLoggedIn();
} else {
/*
* If we didn't have a saved session, or it has expired
* we should have been given a new one at this point.
* This is where you would draw a 'sign in' button and
* have it execute the following requestLogin function.
*/
}
});
}
var p8_buttons_hash = -1;
function p8_update_button_icons()
{
// buttons only appear when running
if (!p8_is_running)
{
requestAnimationFrame(p8_update_button_icons);
return;
}
var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement);
// hash based on: pico8_state.sound_volume pico8_state.is_paused bottom_margin left is_fullscreen p8_touch_detected
var hash = 0;
hash = pico8_state.sound_volume;
if (pico8_state.is_paused) hash += 0x100;
if (p8_touch_detected) hash += 0x200;
if (is_fullscreen) hash += 0x400;
if (p8_buttons_hash == hash)
{
requestAnimationFrame(p8_update_button_icons);
return;
}
p8_buttons_hash = hash;
// console.log("@@ updating button icons");
els = document.getElementsByClassName('p8_menu_button');
for (i = 0; i < els.length; i++)
{
el = els[i];
index = el.id;
if (index == 'p8b_sound') {
index = "sound" + (pico8_state.sound_volume == 0 ? "0" : "1"); // 1 if undefined
}
else if (index == 'p8b_pause') {
index = "pause" + (pico8_state.is_paused > 0 ? "1" : "0"); // 0 if undefined
}
else {
index = index.replace("p8b_","");
}
new_str = '<img width=24 height=24 style="pointer-events:none" src="img/'+index+'.png">';
if (el.innerHTML != new_str)
el.innerHTML = new_str;
// hide all buttons for touch mode (can pause with menu buttons)
var is_visible = p8_is_running;
if ((!p8_touch_detected || !p8_allow_mobile_menu) && el.parentElement.id == "p8_menu_buttons_touch")
is_visible = false;
if (p8_touch_detected && el.parentElement.id == "p8_menu_buttons")
is_visible = false;
if (is_fullscreen)
is_visible = false;
if (is_visible)
el.style.display="";
else
el.style.display="none";
}
requestAnimationFrame(p8_update_button_icons);
}
function abs(x)
{
return x < 0 ? -x : x;
}
// step 0 down 1 drag 2 up (not used)
function pico8_buttons_event(e, step)
{
if (!p8_is_running) return;
pico8_buttons[0] = 0;
pico8_buttons[1] = 0;
var num = 0;
if (e.touches) num = e.touches.length;
for (var i = 0; i < num; i++)
{
var touch = e.touches[i];
var x = touch.clientX;
var y = touch.clientY;
var w = window.innerWidth;
var h = window.innerHeight;
var r = Math.min(w,h) / 12;
if (r > 40) r = 40;
// buttons
var deadzone = r/3;
if (y < h - r*12)
{
// no controller buttons up here; includes canvas and menu buttons at top in touch mode
}
else
{
e.preventDefault();
if (y < h - r*6 ) {
var b = 0;
var cx = w - r*3;
var cy = h - r*7;
var dx = x - cx;
var dy = y - cy;
deadzone = r/3;
if(abs(dx)<deadzone && abs(dy)<deadzone) {
b |= 0x40;
}
pico8_buttons[0] |= b;
}
else if (x < w/2 && x < r*6)
{
var b = 0;
// stick (left)
var cx = 0 + r*3;
var cy = h - r*3;
var dx = x - cx;
var dy = y - cy;
if (abs(dx) > abs(dy) * 0.6) // horizontal
{
if (dx < -deadzone) b |= 0x1;
if (dx > deadzone) b |= 0x2;
}
if (abs(dy) > abs(dx) * 0.6) // vertical
{
if (dy < -deadzone) b |= 0x4;
if (dy > deadzone) b |= 0x8;
}
pico8_buttons[1] |= b;
}
else if (x > w/2 && x > r*6)
{
// stick (right)
var b = 0;
var cx = w - r*3;
var cy = h - r*3;
deadzone = r/3;
var dx = x - cx;
var dy = y - cy;
if (abs(dx) > abs(dy) * 0.6) // horizontal
{
if (dx < -deadzone) b |= 0x1;
if (dx > deadzone) b |= 0x2;
}
if (abs(dy) > abs(dx) * 0.6) // vertical
{
// x button
if (dy < -deadzone) b |= 0x20;
// o button
if (dy > deadzone) b |= 0x10;
}
pico8_buttons[0] |= b;
}
}
}
}
// p8_update_layout_hash is used to decide when to update layout (expensive especially when part of a heavy page)
var p8_update_layout_hash = -1;
var last_windowed_container_height = 512;
var p8_layout_frames = 0;
function p8_update_layout()
{
var canvas = document.getElementById("canvas");
var p8_playarea = document.getElementById("p8_playarea");
var p8_container = document.getElementById("p8_container");
var p8_frame = document.getElementById("p8_frame");
var csize = 512;
var margin_top = 0;
var margin_left = 0;
// page didn't load yet? first call should be after p8_frame is created so that layout doesn't jump around.
if (!canvas || !p8_playarea || !p8_container || !p8_frame)
{
p8_update_layout_hash = -1;
requestAnimationFrame(p8_update_layout);
return;
}
p8_layout_frames ++;
// assumes frame doesn't have padding
var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement);
var frame_width = p8_frame.offsetWidth;
var frame_height = p8_frame.offsetHeight;
if (is_fullscreen)
{
// same as window
frame_width = window.innerWidth;
frame_height = window.innerHeight;
}
else{
// never larger than window // (happens when address bar is down in portraight mode on phone)
frame_width = Math.min(frame_width, window.innerWidth);
frame_height = Math.min(frame_height, window.innerHeight);
}
// as big as will fit in a frame..
csize = Math.min(frame_width,frame_height);
// .. but never more than 2/3 of longest side for touch (e.g. leave space for controls on iPad)
if (p8_touch_detected && p8_is_running)
{
var longest_side = Math.max(window.innerWidth,window.innerHeight);
csize = Math.min(csize, longest_side * 2/3);
}
// pixel perfect: quantize to closest multiple of 128
// only when large display (desktop)
if (frame_width >= 512 && frame_height >= 512)
{
csize = (csize+1) & ~0x7f;
}
// csize should never be higher than parent frame
// (otherwise stretched large when fullscreen and then return)
if (!is_fullscreen && p8_frame)
csize = Math.min(csize, last_windowed_container_height); // p8_frame_0 parent
if (is_fullscreen)
{
// always center horizontally
margin_left = (frame_width - csize)/2;
if (p8_touch_detected)
{
if (window.innerWidth < window.innerHeight)
{
// portrait: keep at y=40 (avoid rounded top corners / camera nub thing etc.)
margin_top = Math.min(40, frame_height - csize);
}
else
{
// landscape: put a little above vertical center
margin_top = (frame_height - csize)/4;
}
}
else{
// non-touch: center vertically
margin_top = (frame_height - csize)/2;
}
}
// skip if relevant state has not changed
var update_hash = csize + margin_top * 1000.3 + margin_left * 0.001 + frame_width * 333.33 + frame_height * 772.15134;
if (is_fullscreen) update_hash += 0.1237;
// unexpected things can happen in the first few seconds, so just keep re-calculating layout. wasm version breaks layout otherwise.
// also: bonus refresh at 5, 8 seconds just in case ._.
if (p8_layout_frames < 180 || p8_layout_frames == 60*5 || p8_layout_frames == 60*8 )
update_hash = p8_layout_frames;
if (!is_fullscreen) // fullscreen: update every frame for safety. should be cheap!
if (!p8_touch_detected) // mobile: update every frame because nothing can be trusted
if (p8_update_layout_hash == update_hash)
{
//console.log("p8_update_layout(): skipping");
requestAnimationFrame(p8_update_layout);
return;
}
p8_update_layout_hash = update_hash;
// record this for returning to original size after fullscreen pushes out container height (argh)
if (!is_fullscreen && p8_frame)
last_windowed_container_height = p8_frame.parentNode.parentNode.offsetHeight;
// mobile in portrait mode: put screen at top (w / a little extra space for fullscreen button if needed)
// (don't cart too about buttons overlapping screen)
if (p8_touch_detected && p8_is_running && document.body.clientWidth < document.body.clientHeight)
p8_playarea.style.marginTop = p8_allow_mobile_menu ? 32 : 8;
else if (p8_touch_detected && p8_is_running) // landscape: slightly above vertical center (only relevant for iPad / highres devices)
p8_playarea.style.marginTop = (document.body.clientHeight - csize) / 4;
else
p8_playarea.style.marginTop = "";
canvas.style.width = csize;
canvas.style.height = csize;
// to do: this should just happen from css layout
canvas.style.marginLeft = margin_left;
canvas.style.marginTop = margin_top;
p8_container.style.width = csize;
p8_container.style.height = csize;
// set menu buttons position to bottom right
el = document.getElementById("p8_menu_buttons");
el.style.marginTop = csize - el.offsetHeight;
if (p8_touch_detected && p8_is_running)
{
// turn off pointer events to prevent double-tap zoom etc (works on Android)
// don't want this for desktop because breaks mouse input & click-to-focus when using codo_textarea
canvas.style.pointerEvents = "none";
p8_container.style.marginTop = "0px";
// buttons
// same as touch event handling
var w = window.innerWidth;
var h = window.innerHeight;
var r = Math.min(w,h) / 12;
if (r > 40) r = 40;
el = document.getElementById("controls_right_panel");
el.style.left = w-r*6;
el.style.top = h-r*12;
el.style.width = r*6;
el.style.height = r*7;
if(el.getAttribute("src") != "img/buttons.png")
el.setAttribute("src","img/buttons.png");
el = document.getElementById("controls_left_paddle");
el.style.left = 0;
el.style.top = h-r*6;
el.style.width = r*6;
el.style.height = r*6;
if(el.getAttribute("src") != "img/left_paddle.png")
el.setAttribute("src", "img/left_paddle.png");
el = document.getElementById("controls_right_paddle");
el.style.left = w-r*6;
el.style.top = h-r*6;
el.style.width = r*6;
el.style.height = r*6;
if(el.getAttribute("src") != "img/right_paddle.png")
el.setAttribute("src", "img/right_paddle.png");
// scroll to cart (need to stop running with X)
p8_frame.scrollIntoView(true);
document.getElementById("touch_controls_gfx").style.display="table";
document.getElementById("touch_controls_background").style.display="table";
}
else{
document.getElementById("touch_controls_gfx").style.display="none";
document.getElementById("touch_controls_background").style.display="none";
}
if (!p8_is_running)
{
p8_playarea.style.display="none";
p8_container.style.display="flex";
p8_container.style.marginTop="auto";
el = document.getElementById("p8_start_button");
if (el) el.style.display="flex";
}
requestAnimationFrame(p8_update_layout);
}
var p8_touch_detected = false;
addEventListener("touchstart", function(event)
{
p8_touch_detected = true;
// hide codo_textarea -- clipboard support on mobile is not feasible
el = document.getElementById("codo_textarea");
if (el && el.style.display != "none"){
el.style.display="none";
}
}, {passive: true});
function p8_create_audio_context()
{
if (pico8_audio_context)
{
try {
pico8_audio_context.resume();
}
catch(err) {
console.log("** pico8_audio_context.resume() failed");
}
return;
}
var webAudioAPI = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext;
if (webAudioAPI)
{
pico8_audio_context = new webAudioAPI;
// wake up iOS
if (pico8_audio_context)
{
try {
var dummy_source_sfx = pico8_audio_context.createBufferSource();
dummy_source_sfx.buffer = pico8_audio_context.createBuffer(1, 1, 22050); // dummy
dummy_source_sfx.connect(pico8_audio_context.destination);
dummy_source_sfx.start(1, 0.25); // gives InvalidStateError -- why? hasn't been played before
//dummy_source_sfx.noteOn(0); // deleteme
}
catch(err) {
console.log("** dummy_source_sfx.start(1, 0.25) failed");
}
}
}
}
function p8_close_cart()
{
// just reload page! used for touch buttons -- hard to roll back state
window.location.hash = ""; // triggers reload
}
var p8_is_running = false;
var p8_script = null;
var Module = null;
function p8_run_cart()
{
if (p8_is_running) return;
p8_is_running = true;
// touch: hide everything except p8_frame_0
if (p8_touch_detected)
{
el = document.getElementById("body_0");
el2 = document.getElementById("p8_frame_0");
if (el && el2)
{
el.style.display="none";
el.parentNode.appendChild(el2);
}
}
// create audio context and wake it up (for iOS -- needs happen inside touch event)
p8_create_audio_context();
// show touch elements
els = document.getElementsByClassName('p8_controller_area');
for (i = 0; i < els.length; i++)
els[i].style.display="";
// install touch events. These also serve to block scrolling / pinching / zooming on phones when p8_is_running
// moved event.preventDefault(); calls into pico8_buttons_event() (want to let top buttons pass through)
addEventListener("touchstart", function(event){ pico8_buttons_event(event, 0); }, {passive: false});
addEventListener("touchmove", function(event){ pico8_buttons_event(event, 1); }, {passive: false});
addEventListener("touchend", function(event){ pico8_buttons_event(event, 2); }, {passive: false});
// https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
if(!p8_touch_detected) {
// pointer lock object forking for cross browser
var canvas = document.getElementById("canvas");
canvas.requestPointerLock = canvas.requestPointerLock ||
canvas.mozRequestPointerLock;
document.exitPointerLock = document.exitPointerLock ||
document.mozExitPointerLock;
canvas.addEventListener("click", function() {
// need to watch: https://www.chromestatus.com/feature/5723553087356928
canvas.requestPointerLock();
});
}
// init Newgrounds API
initNGSession();
// load and run script
e = document.createElement("script");
p8_script = e;
e.onload = function(){
// show canvas / menu buttons only after loading
el = document.getElementById("p8_playarea");
if (el) el.style.display="table";
if (typeof(p8_update_layout_hash) !== 'undefined')
p8_update_layout_hash = -77;
if (typeof(p8_buttons_hash) !== 'undefined')
p8_buttons_hash = -33;
}
e.type = "application/javascript";
e.src = "poom_1.9.js";
e.id = "e_script";
document.body.appendChild(e); // load and run
// hide start button and show canvas / menu buttons. hide start button
el = document.getElementById("p8_start_button");
if (el) el.style.display="none";
// add #playing for touchscreen devices (allows back button to close)
// X button can also be used to trigger this
if (p8_touch_detected)
{
window.location.hash = "#playing";
window.onhashchange = function()
{
if (window.location.hash.search("playing") < 0)
window.location.reload();
}
}
}
// gamepad https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
// (sets bits in pico8_buttons[])
function p8_update_gamepads() {
var threshold = 0.3;
var max_players = 8;
var gps = navigator.getGamepads() || navigator.webkitGetGamepads();
if (!gps) return;
pico8_gamepads.count = gps.length;
for (var i = 0; i < gps.length && i < max_players; i++) {
var gp = gps[i];
if (gp && gp.axes && gp.buttons)
{
pico8_buttons[i] = 0;
if (gp.axes[0] && gp.axes[0] < -threshold) pico8_buttons[i] |= 0x1;
if (gp.axes[0] && gp.axes[0] > threshold) pico8_buttons[i] |= 0x2;
if (gp.axes[1] && gp.axes[1] < -threshold) pico8_buttons[i] |= 0x4;
if (gp.axes[1] && gp.axes[1] > threshold) pico8_buttons[i] |= 0x8;
// buttons: first 4 are O/X; (almost) everything else taken to be menu button
// ref: https://w3c.github.io/gamepad/#remapping (er.. that mapping doesn't agree with xbox, buffalo snes)
for (j = 0; j < gp.buttons.length; j++)
if (gp.buttons[j].value > 0 || gp.buttons[j].pressed)
{
if (j < 4)
pico8_buttons[i] |= (0x10 << (((j+1)/2)&1)); // 0 1 1 0 0 1 -- A,X are O,X on xbox controller
else
{
if (j >= 6 && j <= 8) // PICO-8 0.2.0g: seems usually 6,7,8 are menu buttons (?) // others might be easy to accidentally bump
pico8_buttons[0] |= 0x40; // menu button
}
}
}
}
requestAnimationFrame(p8_update_gamepads);
}
requestAnimationFrame(p8_update_gamepads);
// key blocker. prevent cursor keys from scrolling page while playing cart.
// also don't act on M, R so that can mute / reset cart
document.addEventListener('keydown',
function (event) {
event = event || window.event;
if (!p8_is_running) return;
if (pico8_state.has_focus == 1) {
if(event.keyCode==32) {
// gpio pin 0 contains "use" button code
pico8_buttons[0] |= use_key;
}
if ([37, 38, 39, 40, 77, 82, 80, 9].indexOf(event.keyCode) > -1) // block cursors, M R P, tab
if (event.preventDefault) event.preventDefault();
}
},{passive: false});
document.addEventListener('keyup',
function (event) {
event = event || window.event;
if (!p8_is_running) return;
if (pico8_state.has_focus == 1)
if(event.keyCode==32) {
pico8_buttons[0] &= ~use_key;
if (event.preventDefault) event.preventDefault();
}
},{passive: false});
// when using codo_textarea to determine focus, need to explicitly hand focus back when clicking a p8_menu_button
function p8_give_focus()
{
el = (typeof codo_textarea === 'undefined') ? document.getElementById("codo_textarea") : codo_textarea;
if (el)
{
el.focus();
el.select();
}
}
function p8_request_fullscreen() {
var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement);
if (is_fullscreen)
{
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
return;
}
var el = document.getElementById("p8_playarea");
if ( el.requestFullscreen ) {
el.requestFullscreen();
} else if ( el.mozRequestFullScreen ) {
el.mozRequestFullScreen();
} else if ( el.webkitRequestFullScreen ) {
el.webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT );
}
}
</script><style type="text/css">
</style></head><body style="padding:0px; margin:0px; background-color:#222; color:#ccc"><div id="body_0">
<div id="p8_frame_0" style="max-width:800px; max-height:800px; margin:auto;"> <div id="p8_frame" style="display:flex; width:100%; max-width:95vw; height:100vw; max-height:95vh; margin:auto;"><div id="p8_menu_buttons_touch" style="position:absolute; width:100%; z-index:10; left:0px;"><div class="p8_menu_button" id="p8b_full" onclick="p8_give_focus(); p8_request_fullscreen();" style="float:left;margin-left:10px"></div><div class="p8_menu_button" id="p8b_sound" onclick="p8_give_focus(); p8_create_audio_context(); Module.pico8ToggleSound();" style="float:left;margin-left:10px"></div><div class="p8_menu_button" id="p8b_close" onclick="p8_close_cart();" style="float:right; margin-right:10px"></div></div><div id="p8_container" onclick="p8_create_audio_context(); p8_run_cart();" style="margin:auto; display:table;"><div class="p8_start_button" id="p8_start_button" style="width:100%; height:100%; display:flex;"><img height="80" src="img/start.png" style="margin:auto;" width="80"/></div><div id="p8_playarea" style="display:none; margin:auto;
-webkit-user-select:none; -moz-user-select: none; user-select: none; -webkit-touch-callout:none;
"><div id="touch_controls_background" style=" pointer-events:none; display:none; background-color:#000;
position:fixed; top:0px; left:0px; border:0; width:100vw; height:100vh">
</div><div style="display:flex; position:relative">
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault();"></canvas><div class="p8_menu_buttons" id="p8_menu_buttons" style="margin-left:10px;"><div class="p8_menu_button" id="p8b_controls" onclick="p8_give_focus(); Module.pico8ToggleControlMenu();" style="position:absolute; bottom:125px"></div><div class="p8_menu_button" id="p8b_pause" onclick="p8_give_focus(); Module.pico8TogglePaused(); p8_update_layout_hash = -22;" style="position:absolute; bottom:90px"></div><div class="p8_menu_button" id="p8b_sound" onclick="p8_give_focus(); p8_create_audio_context(); Module.pico8ToggleSound();" style="position:absolute; bottom:55px"></div><div class="p8_menu_button" id="p8b_full" onclick="p8_give_focus(); p8_request_fullscreen();" style="position:absolute; bottom:20px"></div></div></div>
<div id="touch_controls_gfx" style=" pointer-events:none; display:table;
position:fixed; top:0px; left:0px; border:0; width:100vw; height:100vh"><img id="controls_right_panel" src="" style="position:absolute; opacity:0.5;"/><img id="controls_left_paddle" src="" style="position:absolute; opacity:0.5;"/><img id="controls_right_paddle" src="" style="position:absolute; opacity:0.5;"/></div>
<textarea class="emscripten" id="codo_textarea" style="display:none; position:absolute; left:-9999px; height:0px; overflow:hidden"></textarea></div> </div> </div> </div> <script type="text/javascript">
p8_update_layout();
p8_update_button_icons();
var canvas = document.getElementById("canvas");
Module = {};
Module.canvas = canvas;
// from @ultrabrite's shell: test if an AudioContext can be created outside of an event callback.
// If it can't be created, then require pressing the start button to run the cartridge
if (p8_autoplay)
{
var temp_context = new AudioContext();
temp_context.onstatechange = function ()
{
if (temp_context.state=='running')
{
p8_run_cart();
temp_context.close();
}
};
}
</script>
</div> </body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899<!DOCTYPE html><html lang="en-us"> <head> <meta charset="utf-8"> <script src="/js/all.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <title>IXL - Dashboard</title> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="style.css"> </head> <body class="dark">
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<div id="unity-container" class="unity-desktop"> <canvas id="unity-canvas"></canvas> </div> <div id="loading-cover" style="display:none;"> <div id="unity-loading-bar"> <div id="unity-logo"><img src="logo.png"></div> <div id="unity-progress-bar-empty" style="display: none;"> <div id="unity-progress-bar-full"></div> </div> <div class="spinner"></div> </div> </div> <div id="unity-fullscreen-button" style="display: none;"></div> <script> const hideFullScreenButton = "1"; const buildUrl = "Build"; const loaderUrl = buildUrl + "/FunnyShooter_GD.loader.js"; const config = { dataUrl: buildUrl + "/FunnyShooter_GD.data.unityweb", frameworkUrl: buildUrl + "/FunnyShooter_GD.framework.js.unityweb", codeUrl: buildUrl + "/FunnyShooter_GD.wasm.unityweb", streamingAssetsUrl: "StreamingAssets", companyName: "GoGoMan", productName: "Funny Shooter", productVersion: "0.1", };
const container = document.querySelector("#unity-container"); const canvas = document.querySelector("#unity-canvas"); const loadingCover = document.querySelector("#loading-cover"); const progressBarEmpty = document.querySelector("#unity-progress-bar-empty"); const progressBarFull = document.querySelector("#unity-progress-bar-full"); const fullscreenButton = document.querySelector("#unity-fullscreen-button"); const spinner = document.querySelector('.spinner');
const canFullscreen = (function() { for (const key of [ 'exitFullscreen', 'webkitExitFullscreen', 'webkitCancelFullScreen', 'mozCancelFullScreen', 'msExitFullscreen', ]) { if (key in document) { return true; } } return false; }());
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { container.className = "unity-mobile"; config.devicePixelRatio = 1; } canvas.style.background = "url('" + buildUrl + "/FunnyShooter_GD.jpg.unityweb') center / cover"; loadingCover.style.display = "";
const script = document.createElement("script"); script.src = loaderUrl; script.onload = () => { createUnityInstance(canvas, config, (progress) => { spinner.style.display = "none"; progressBarEmpty.style.display = ""; progressBarFull.style.width = `${100 * progress}%`; }).then((unityInstance) => { loadingCover.style.display = "none"; if (canFullscreen) { if (!hideFullScreenButton) { fullscreenButton.style.display = ""; } fullscreenButton.onclick = () => { unityInstance.SetFullscreen(1); }; } }).catch((message) => { alert(message); }); }; document.body.appendChild(script); </script> </body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105html { box-sizing: border-box;}*, *:before, *:after { box-sizing: inherit;}html, body { height: 100%;}canvas { display: block;}body { margin: 0;}#unity-container { width: 100%; height: 100%;}#unity-canvas { width: 100%; height: 100%; background: #FFFFFF;}#loading-cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;}#unity-loading-bar { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;}#unity-logo { text-align: center;}#unity-logo img { max-width: 80%;}#unity-progress-bar-empty { width: 80%; height: 24px; margin: 10px 20px 20px 10px; text-align: left; border: 1px solid white; padding: 2px;}#unity-progress-bar-full { width: 0%; height: 100%; background: white;}.light #unity-progress-bar-empty { border-color: black;}.light #unity-progress-bar-full { background: black;}
#unity-fullscreen-button { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center; background-size: contain;}
.spinner,.spinner:after { border-radius: 50%; width: 5em; height: 5em;}.spinner { margin: 10px; font-size: 10px; position: relative; text-indent: -9999em; border-top: 1.1em solid rgba(255, 255, 255, 0.2); border-right: 1.1em solid rgba(255, 255, 255, 0.2); border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); border-left: 1.1em solid #ffffff; transform: translateZ(0); animation: spinner-spin 1.1s infinite linear;}@keyframes spinner-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239<!doctype html><html lang="en-us">
<head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>IXL - Dashboard</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="manifest" href="manifest.json" crossorigin="use-credentials" /> <link rel="icon" href="icons/icon-72x72.png" sizes="72x72" type="image/png" /> <link rel="icon" href="icons/icon-96x96.png" sizes="96x96" type="image/png" /> <link rel="icon" href="icons/icon-128x128.png" sizes="128x128" type="image/png" /> <link rel="icon" href="icons/icon-144x144.png" sizes="144x144" type="image/png" /> <link rel="icon" href="icons/icon-152x152.png" sizes="152x152" type="image/png" /> <link rel="icon" href="icons/icon-192x192.png" sizes="192x192" type="image/png" /> <link rel="icon" href="icons/icon-384x384.png" sizes="384x384" type="image/png" /> <link rel="icon" href="icons/icon-512x512.png" sizes="512x512" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-72x72.png" sizes="72x72" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-96x96.png" sizes="96x96" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-128x128.png" sizes="128x128" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-144x144.png" sizes="144x144" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-152x152.png" sizes="152x152" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-192x192.png" sizes="192x192" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-384x384.png" sizes="384x384" type="image/png" /> <link rel="apple-touch-icon" href="icons/icon-512x512.png" sizes="512x512" type="image/png" />
<meta name="theme-color" content="#000" />
<style> html { background: #444; font-family: sans-serif; }
body, html { overscroll-behavior: none; }
#canvas, #overlayDiv { position: absolute; top: 0px; left: 0px;
width: 100%; height: 100%;
border: 0 none; }
#canvas { background: #000; }
.visible { visibility: visible; opacity: 1.0; transition: opacity .1s linear; }
.hidden { visibility: hidden; opacity: 0; transition: visibility 0s .25s, opacity .25s linear; }
#statusDiv, #inputDiv { background: rgba(0, 0, 0, 0.75); width: 50%; margin: auto; min-width: 340px; padding: 10px;
position: absolute; top: 0; left: 0; right: 0;
border-radius: 0 0 5px 5px; }
#statusTextDiv { overflow: auto; max-height: 40vh; color: #ccc; font-size: 14px; }
#statusProgress { display: none; width: 100%; }
#inputDiv { width: 65%; padding-left: 10px; padding-right: 20px; }
#inputPrompt { color: #eee; font-size: 150%; margin-bottom: 1em; margin-top: 1em;
}
#inputText { width: 100%; font-size: 175%; padding: 5px; background: inherit; color: #eee; }
#inputText:focus { color: #ffffff; }
#ContextContainer { position: absolute; left: 0px; top: 0px; color: white; }
#ContextContainer.shown { background: rgba(0, 0, 0, 0.5); border-radius: 0px 0px 5px 0px; }
#ContextButton { text-decoration: none; color: lightgrey; font-size: xx-large; cursor: pointer; user-select: none; -moz-user-select: none; padding: 10px 10px; opacity: .75; }
#ContextButton:focus { outline: none; color: #ffffff; opacity: 1.0; }
#ContextMenu a { text-decoration: none; color: lightgrey; background: #444; height: 48px; width: 250px; border-radius: 5px; border: 1px solid lightgrey; display: flex; align-items: center; justify-content: center; margin: 5px 5px; opacity: 1.0; }
#ContextMenu a:hover { text-decoration: none; background: #666666; color: #ffffff }
#presplash { position: absolute; top: 0; left: 0; display: block; margin: auto; width: 100%; height: 100%; object-fit: contain; }
</style>
</head>
<body>
<script src="/assets/js/notifications.js"></script><script src="/assets/js/game-save-sync.js"></script>
<canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas> <div id="overlayDiv"></div>
<img id="presplash" src="web-presplash.jpg">
<div id="ContextContainer"> <a id="ContextButton">≡</a><br /> <div id="ContextMenu" style="display: none;"> <input id="ID_SavegamesImport" type="file" onchange="onSavegamesImport(this)" accept="application/zip" style=display:none></input> <a href="javascript:document.getElementById('ID_SavegamesImport').click();">Import Saves</a> <a href="javascript:onSavegamesExport();">Export Saves</a> <a href="javascript:FSDownload('/log.txt', 'text/plain');">Download Log</a> <a href="https://www.renpy.org/" target="_blank"> Powered by Ren'Py </a> </span> </div> </div>
<div id="statusDiv" class="hidden"> <div id="statusTextDiv"></div> <progress id="statusProgress" value="0" max="100"></progress> </div>
<div id="inputDiv" class="hidden"> <form id="inputForm"> <div id="inputPrompt"></div> <input id="inputText" type="text"> </form> </div>
<script> // The URL to game.zip, relative to the URL of this file. window.gameZipURL = 'game.zip';
// Register the service worker. if (navigator.serviceWorker) { if (!navigator.serviceWorker.controller) { navigator.serviceWorker.register('./service-worker.js', { updateViaCache: 'all' }); } } </script> <script src="renpy-pre.js"></script> <script async type="text/javascript" src="renpy.js"></script></body>
</html>
1{"name": "MYOSOTIS: My Life Is Not Yours To Take", "icons": [{"src": "icons/icon-72x72.png", "sizes": "72x72", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-72x72-maskable.png", "sizes": "72x72", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-96x96.png", "sizes": "96x96", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-96x96-maskable.png", "sizes": "96x96", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-128x128.png", "sizes": "128x128", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-128x128-maskable.png", "sizes": "128x128", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-144x144.png", "sizes": "144x144", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-144x144-maskable.png", "sizes": "144x144", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-152x152.png", "sizes": "152x152", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-152x152-maskable.png", "sizes": "152x152", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-192x192.png", "sizes": "192x192", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-192x192-maskable.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-384x384.png", "sizes": "384x384", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-384x384-maskable.png", "sizes": "384x384", "type": "image/png", "purpose": "maskable"}, {"src": "icons/icon-512x512.png", "sizes": "512x512", "type": "image/png", "purpose": "any"}, {"src": "icons/icon-512x512-maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable"}], "lang": "en-US", "start_url": "./index.html", "display": "standalone", "background_color": "black", "theme_color": "black", "launch_handler": {"route_to": "existing-client", "navigate_existing_client": "always"}, "orientation": "landscape-primary", "display_override": ["fullscreen", "minimal-ui"]}1{"files": ["game.zip", "index.html", "index.html.symbols", "manifest.json", "renpy-pre.js", "renpy.data", "renpy.js", "renpy.wasm", "service-worker.js", "web-presplash.jpg", "game/audio/bgm/01_unmetAndUnseen_master_v1.mp3", "game/audio/bgm/02_smilingWithSunkenEyes_master_v1.mp3", "game/audio/bgm/03_poltergeistProbability_calmVer_master_v1.mp3", "game/audio/bgm/04_poltergeistProbability_heightsVer_master_v1.mp3", "game/audio/bgm/05_rigorMortis_master_v1.mp3", "game/audio/bgm/06_soulSubSystem_master_v1.mp3", "game/audio/bgm/07_peacefulLobotomy_master_v1.mp3", "game/audio/bgm/08_goofieSpookies_master_v1.mp3", "game/audio/bgm/09_toeTag_master_v1.mp3", "game/audio/bgm/10_title_master_v1.mp3", "game/audio/bgm/11_mementoMori_master_v1.mp3", "game/audio/bgm/12_mementoMori_lightMix_master_v1.mp3", "game/audio/bgm/13_mementoMori_nightmareMix_master_v1.mp3", "game/audio/bgm/14_doe_master_v1.mp3", "game/audio/bgm/15_mementoMori_suspiciousMix_master_v1.mp3", "game/audio/sfx/bg_appartment.mp3", "game/audio/sfx/bg_fire.mp3", "game/audio/sfx/bg_ghost.mp3", "game/audio/sfx/bg_machine.mp3", "game/audio/sfx/bg_neon.mp3", "game/audio/sfx/bg_outdoors.mp3", "game/audio/sfx/bg_streets.mp3", "game/audio/sfx/bg_tinnitus.mp3", "game/audio/sfx/bg_underwater.mp3", "game/audio/sfx/bg_windchimes.mp3", "game/audio/sfx/snd_chair.mp3", "game/audio/sfx/snd_doorclamshut.mp3", "game/audio/sfx/snd_dooropen.mp3", "game/audio/sfx/snd_doorslam.mp3", "game/audio/sfx/snd_itemdrop1.mp3", "game/audio/sfx/snd_itemdrop2.mp3", "game/audio/sfx/snd_lockclick.mp3", "game/audio/sfx/snd_pulse.mp3", "game/audio/sfx/snd_ruffle1.mp3", "game/audio/sfx/snd_ruffle2.mp3", "game/audio/sfx/snd_thud.mp3", "game/audio/sfx/snd_woosh.mp3", "game/audio/sfx/stinger_rumble.mp3", "game/images/Avery/avery a.png", "game/images/Avery/avery n.png", "game/images/Avery/avery s.png", "game/images/Avery/avery x.png", "game/images/Avery/avery xs.png", "game/images/Avery/avery xx.png", "game/images/bg/bg campus.png", "game/images/bg/bg cemetery.png", "game/images/bg/bg dorm night.png", "game/images/bg/bg dorm.png", "game/images/bg/bg dormhall death.png", "game/images/bg/bg dormhall.png", "game/images/bg/bg forest.png", "game/images/bg/bg morgue death.png", "game/images/bg/bg morgue.png", "game/images/bg/bg park.png", "game/images/bg/bg street.png", "game/images/bg/fg campus sun.png", "game/images/bg/fg dorm fire.png", "game/images/cg/cg cover.png", "game/images/cg/cg end j.png", "game/images/cg/cg end r.png", "game/images/cg/cg ending1.png", "game/images/cg/cg ending2.png", "game/images/cg/cg justice.png", "game/images/cg/cg murder.png", "game/images/cg/cg revenge.png", "game/images/Ethan/ethan a.png", "game/images/Ethan/ethan ax.png", "game/images/Ethan/ethan b.png", "game/images/Ethan/ethan c.png", "game/images/Ethan/ethan cx.png", "game/images/Ethan/ethan f.png", "game/images/Ethan/ethan h.png", "game/images/Ethan/ethan hx.png", "game/images/Ethan/ethan l.png", "game/images/Ethan/ethan n.png", "game/images/Ethan/ethan nx.png", "game/images/Ethan/ethan t.png", "game/images/fx/fx door.png", "game/images/fx/fx ethanShade.png", "game/images/fx/fx flash1.png", "game/images/fx/fx flash2.png", "game/images/fx/fx flash3.png", "game/images/fx/fx flicker morgue.png", "game/images/fx/fx judeattack red.png", "game/images/fx/fx judemurder cyan.png", "game/images/fx/fx judemurder red.png", "game/images/fx/fx rage.png", "game/images/fx/fx rage2.png", "game/images/fx/fx rage3.png", "game/images/fx/fx rage4.png", "game/images/fx/fx rage5.png", "game/images/fx/fx rage6.png", "game/images/fx/fx sleep.png", "game/images/fx/fx stun morgue.png", "game/images/fx/fx stun.png", "game/images/fx/fx trickofthelight1.png", "game/images/fx/fx trickofthelight2.png", "game/images/fx/fx trickofthelight2b.png", "game/images/fx/fx trickofthelight3.png", "game/images/icons/eye.png", "game/images/icons/eye_w.png", "game/images/icons/flower.png", "game/images/icons/logo.png", "game/images/icons/logoback.png", "game/images/icons/logoback_lite.png", "game/images/icons/logo_og.png", "game/images/icons/skull.png", "game/images/id/id e.png", "game/images/id/id ex.png", "game/images/id/id j.png", "game/images/id/id jx.png", "game/images/Jude/jude a.png", "game/images/Jude/jude ac.png", "game/images/Jude/jude af.png", "game/images/Jude/jude h.png", "game/images/Jude/jude hc.png", "game/images/Jude/jude n.png", "game/images/Jude/jude nc.png", "game/images/Jude/jude ns.png", "game/images/Jude/jude s.png", "game/images/Jude/jude sc.png", "game/images/Jude/jude sf.png", "game/images/Jude/jude u.png", "game/images/Jude/jude uc.png", "game/images/Jude/jude x.png", "game/images/Jude/jude xs.png", "game/images/placeholder/ethan n.png", "game/images/placeholder/jude n.png", "game/images/placeholder/npc.png", "game/images/template_unused/bg shrine .png", "game/images/template_unused/martha n.png", "game/images/template_unused/martha smile.png", "icons/icon-128x128-maskable.png", "icons/icon-128x128.png", "icons/icon-144x144-maskable.png", "icons/icon-144x144.png", "icons/icon-152x152-maskable.png", "icons/icon-152x152.png", "icons/icon-192x192-maskable.png", "icons/icon-192x192.png", "icons/icon-384x384-maskable.png", "icons/icon-384x384.png", "icons/icon-512x512-maskable.png", "icons/icon-512x512.png", "icons/icon-72x72-maskable.png", "icons/icon-72x72.png", "icons/icon-96x96-maskable.png", "icons/icon-96x96.png"], "version": 1743526967}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976/*
Copyright 2019-2021 Sylvain BeuclerCopyright 2022 Teyut <teyut@free.fr>Copyright 2019-2022 Tom Rothamel <pytom@bishoujo.us>
Permission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,including without limitation the rights to use, copy, modify, merge,publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
Module = window.Module || { };Module.preRun = Module.preRun || [ ];
(function () {
/*************************************************************************** * Report messages, errors, and progress. **************************************************************************/
// The div containing the status and progress bar. let statusDiv = document.getElementById("statusDiv"); let statusTextDiv = document.getElementById("statusTextDiv"); let statusProgress = document.getElementById("statusProgress");
// Presplash block let presplash = document.getElementById('presplash');
// The timeout before the status div hides itself. let statusTimeout = null;
// The status message. let statusText = "";
// How long before the status div starts hiding, in seconds. const STATUS_TIMEOUT = 5000;
// The last time the progress was updated. let lastProgressTime = 0;
// Has an error been reported? let errorReported = false;
// Should output only go to the console? let printConsoleOnly = false;
/** * Hide the status div. Once it's hidden, clears the status text. */ function hideStatus() { if (errorReported) { return; }
statusDiv.classList.remove("visible"); statusDiv.classList.add("hidden");
statusTimeout = setTimeout(() => { statusText = ""; }, 250); }
/** * Show the status div. */ function showStatus() { statusDiv.classList.remove("hidden"); statusDiv.classList.add("visible"); statusTextDiv.scrollTop = statusTextDiv.scrollHeight; statusProgress.style.display = "none"; }
/** * Cancels the timeout that hides the status div. */ function cancelStatusTimeout() { if (statusTimeout) { clearTimeout(statusTimeout); statusTimeout = null; } }
/** * Start the timeout that hides the status div. */ function startStatusTimeout() { cancelStatusTimeout(); statusTimeout = setTimeout(hideStatus, STATUS_TIMEOUT); }
function printCommon(s) {
cancelStatusTimeout(); lastProgressTime = 0;
if (statusText) { statusText += "<br>"; }
if (s == "" && !errorReported) { statusText = ""; return; }
for (let i of s.split("\n")) { if (i.length > 0) { console.log(i); } }
if (printConsoleOnly) { return; }
s = String(s); s = s.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/>/g, ">"); s = s.replace('\n', '<br />', 'g');
statusText += s; statusTextDiv.innerHTML = statusText;
showStatus(); }
/** * Reports a message that will eventually be hidden. */ function printMessage(s) {
if (s.startsWith("warning: ") || s.startsWith("wasm streaming compile failed") || s.startsWith("falling back to ArrayBuffer") ) { console.log(s); return; }
printCommon(s); startStatusTimeout(); }
function reportError(s, e) { if (e) { console.error(e, e.stack); s += ": " + e.message; }
s += "\nMore information may be available in the browser console or contained in the log.";
printCommon(s);
errorReported = true;
try { Module.addRunDependency("error"); } catch (e) { window.stop(); } }
/** * Updates the progress bar. */ function progress(done, total) {
if (errorReported) { return; }
let now = +Date.now();
if ((now < lastProgressTime + 32) && (done < total) && (done > 1)) { return }
lastProgressTime = now;
cancelStatusTimeout(); showStatus();
if (total) { statusProgress.value = done; statusProgress.max = total; statusProgress.style.display = "block"; }
startStatusTimeout();
}
window.progress = progress;
Module.print = printMessage; Module.printErr = printMessage;
/*************************************************************************** * Browser capability checks. **************************************************************************/
// Report the lack of WebAssembly support. if (typeof WebAssembly !== 'object') { reportError("This browser does not support WebAssembly."); }
// Report the lack of the fetch function. if (typeof fetch !== 'function') { reportError("This browser does not support fetch."); }
// Clear error when running without a server. if (location.href.startsWith('file://')) { reportError("This browser requires the game to be run from a web server (i.e. double-clicking on index.html won't work)."); }
/*************************************************************************** * Emscripten initialization and termination. **************************************************************************/
/** Set up the canvas. */ let canvas = document.getElementById('canvas');
/** Set when the webGlContext is lost. */ window.webglContextLost = false;
/** Set when the webGlContext is restored. Cleared by Ren'Py in core.py. */ window.webglContextRestored = false;
canvas.addEventListener("webglcontextlost", (e) => { window.webglContextRestored = false; window.webglContextLost = true; e.preventDefault(); }, false);
canvas.addEventListener("webglcontextrestored", (e) => { window.webglContextLost = false; window.webglContextRestored = true; }, false);
canvas.addEventListener('mouseenter', function (e) { window.focus() });
canvas.addEventListener('click', function (e) { window.focus() });
Module.canvas = canvas;
window.presplashEnd = () => { presplash.remove(); cancelStatusTimeout(); hideStatus(); };
window.atExit = () => { canvas.remove(); reportError("The game exited unexpectedly."); };
Module.onAbort = () => { canvas.remove(); reportError("The game aborted unexpectedly."); };
/** * Initialize the filesystem. */ function initFs() { // Create the save directory, and mount the IDBFS filesystem. try { Module.addRunDependency('initFs'); FS.mkdir('/home/web_user/.renpy'); FS.mount(IDBFS, {}, '/home/web_user/.renpy'); FS.syncfs(true, (err) => { if (err) { printMessage("Error syncing IDBFS: " + err); printMessage("The game may not be able to save properly."); }
Module.removeRunDependency('initFs'); }); } catch (e) { reportError("Could not create ~/.renpy/", e); } }
Module.preRun.push(initFs);
// The size of the data and gamezip files. let dataSize = 0; let gameZipSize = 0;
// The number of bytes downloaded. let dataDownloaded = 0; let gameZipDownloaded = 0;
// Have we issued the data and gameZip prompts? let dataPrompt = false; let gameZipPrompt = false;
function updateDownloadProgress() { if (dataSize == 0) { return; }
if (dataDownloaded < dataSize || gameZipSize == 0) { if (!dataPrompt) { printMessage(""); printMessage("Downloading engine..."); dataPrompt = true; }
progress(dataDownloaded, dataSize); return; }
if (!gameZipPrompt) { printMessage(""); printMessage("Downloading game data..."); gameZipPrompt = true; }
progress(gameZipDownloaded, gameZipSize);
}
Module.setStatus = function (s) {
var m = s.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
if (m) { dataDownloaded = parseInt(m[2]); dataSize = parseInt(m[4]); updateDownloadProgress(); return; }
console.log(s); }
async function loadGameZip() {
try { let response = await fetch(window.gameZipURL);
if (!response.ok) { reportError("Could not load game.zip: " + response.status + " " + response.statusText); }
gameZipSize = parseInt(response.headers.get('Content-Length'), 10); if(Number.isNaN(gameZipSize)) gameZipSize = 0;
let reader = await response.body.getReader();
let f = FS.open('/game.zip', 'w');
while (true) {
let { done, value } = await reader.read();
if (done) { break; }
FS.write(f, value, 0, value.length); gameZipDownloaded += value.length;
updateDownloadProgress(); }
FS.close(f);
} catch (e) { reportError("Could not download game.zip", e); } }
function runLoadGameZip() { Module.addRunDependency('loadGameZip');
loadGameZip().then(() => { Module.removeRunDependency('loadGameZip'); });
}
Module['preRun'].push(runLoadGameZip);
/*************************************************************************** * **************************************************************************/
let cmd_queue = []; let cur_cmd = undefined; let cmd_debug = false;
function cmd_log(...args) { if (cmd_debug) console.debug(...args); }
/** This functions is called by the wrapper script at the end of script execution. */ function cmd_callback(result) { cmd_log('cmd_callback', result);
if (cur_cmd === undefined) { console.error('Unexpected command result', result); return; }
try { if (result.error !== undefined) { cmd_log('ERROR', result.name, result.error, result.traceback); const e = new Error(result.error); e.name = result.name; e.traceback = result.traceback; cur_cmd.reject(e); } else { cmd_log('SUCCESS', result.data); cur_cmd.resolve(result.data); } } finally { cur_cmd = undefined; send_next_cmd(); } }
window._renpy_cmd_callback = cmd_callback;
/** Prepare and send the next command to be executed if any. */ function send_next_cmd() { if (cmd_queue.length == 0) return
cur_cmd = cmd_queue.shift(); cmd_log('send_next_cmd', cur_cmd);
// Convert script to base64 to prevent having to escape // the script content as a Python string const script_b64 = btoa(cur_cmd.py_script); const wrapper = 'import base64, emscripten, json, traceback;\n' + 'try:' + "result = None;" + "exec(base64.b64decode('" + script_b64 + "').decode('utf-8'));" + "result = json.dumps(dict(data=result));" + "\n" + "except Exception as e:" + "result = json.dumps(dict(error=str(e), name=e.__class__.__name__, traceback=traceback.format_exc()));" + "\n" + "emscripten.run_script('_renpy_cmd_callback(%s)' % (result,));";
cmd_log(wrapper);
// Write script to the global variable Ren'Py is monitoring window._renpy_cmd = wrapper; }
/** Add a command to the queue and execute it if the queue was empty. */ function add_cmd(py_script, resolve, reject) { const cmd = { py_script: py_script, resolve: resolve, reject: reject }; cmd_log('add_cmd', cmd); cmd_queue.push(cmd);
if (cur_cmd === undefined) send_next_cmd(); }
/* Global definitions */
/** Execute Python statements in Ren'Py Python's thread. The statements are executed * using the renpy.python.py_exec() function, and the value of the "result" variable * is passed to the resolve callback. In case of error, an Error instance is passed * to the reject callback, with an extra "traceback" property. * @param py_script The Python script to execute. * @return A promise which resolves with the statements result. */ renpy_exec = function (py_script) { return new Promise((resolve, reject) => { add_cmd(py_script, resolve, reject); }); };
window.renpy_exec = renpy_exec;
/** Helper function to get the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @return A promise which resolves with the variable value. */ renpy_get = function (name) { return new Promise((resolve, reject) => { renpy_exec('result = ' + name) .then(resolve).catch(reject); }); };
window.renpy_get = renpy_get;
/** Helper function to set the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @param value The value to set. It should either be a basic JS type that * will be converted to JSON, or a Python expression. The raw * parameter must be set to true for the latter case. * @param raw (optional) If true, value is a valid Python expression. * Otherwise, it must be a basic JS type. * @return A promise which resolves with true in case of success * and fails otherwise. */ renpy_set = function (name, value, raw) { let script; if (raw) { script = name + " = " + value + "; result = True"; } else { // Using base64 as it is unclear if we can use the output // of JSON.stringify() directly as a Python string script = 'import base64, json; ' + name + " = json.loads(base64.b64decode('" + btoa(JSON.stringify(value)) + "').decode('utf-8')); result = True"; } return new Promise((resolve, reject) => { renpy_exec(script) .then(resolve).catch(reject); }); };
window.renpy_set = renpy_set;
/*************************************************************************** * Context menu. **************************************************************************/
const menu = document.getElementById('ContextMenu');
const contextContainer = document.getElementById('ContextContainer');
document.getElementById('ContextButton').addEventListener('click', function (e) { if (menu.style.display == 'none') { menu.style.display = 'block'; contextContainer.classList.add("shown"); } else { menu.style.display = 'none'; contextContainer.classList.remove("shown"); } e.preventDefault(); });
menu.addEventListener('click', function (e) { if (e.target.tagName == 'A') { // Close context menu when a menu item is selected menu.style.display = 'none'; } });
async function onSavegamesImport(input) { reader = new FileReader(); reader.onload = function (e) { FS.writeFile('savegames.zip', new Uint8Array(e.target.result));
renpy_exec('result = renpy.savelocation.unzip_saves()').then((result) => { FS.syncfs(false, function (err) { if (err) { console.trace(); console.log(err, err.message); printMessage("Warning: cannot import savegames: write error: " + err.message ); } else { renpy_exec('renpy.loadsave.location.scan()').then(result => { printMessage("Saves imported successfully."); }).catch(error => { console.error('Cannot rescan saves folder:', error); printMessage("Saves imported - restart game to apply."); }); } }); }).catch(error => { console.error('Cannot import savegames', error); printMessage("Couldn't import the savegames: " + error.message); }) } reader.readAsArrayBuffer(input.files[0]) input.type = ''; input.type = 'file'; // reset field }
window.onSavegamesImport = onSavegamesImport;
function onSavegamesExport() { renpy_exec('result = renpy.savelocation.zip_saves()').then((ret) => { if (ret) { FSDownload('savegames.zip', 'application/zip'); printMessage("Saves exported successfully.\n"); } }); }
window.onSavegamesExport = onSavegamesExport;
function FSDownload(filename, mimetype) { console.log('download', filename); var a = document.createElement('a'); a.download = filename.replace(/.*\//, ''); try { a.href = window.URL.createObjectURL(new Blob([FS.readFile(filename)], { type: mimetype || '' })); } catch (e) { Module.print("Error opening " + filename + "\n"); return; } document.body.appendChild(a); a.click();
// delay clean-up to avoid iOS issue: // The operation couldn’t be completed. (WebKitBlobResource error 1.) setTimeout(function () { window.URL.revokeObjectURL(a.href); document.body.removeChild(a); }, 1000); }
window.FSDownload = FSDownload;
/*************************************************************************** * Precaching. **************************************************************************/
function loadCache() {
try { navigator.serviceWorker.controller.postMessage(["loadCache"]); } catch (e) { // pass }
async function loadCacheWorker() {
let response = await fetch("pwa_catalog.json"); let catalog = await response.json();
let cachedCatalog;
try { let cachedCatalogResponse = await fetch("pwa_catalog.json?cached") cachedCatalog = await cachedCatalogResponse.json(); } catch (e) { console.log("No cached catalog found."); cachedCatalog = { version: -1 }; }
if (cachedCatalog.version == catalog.version) { return; }
printMessage(""); printMessage("Preloading game files into browser cache...") progress(0, catalog.files.length);
for (let i = 0; i < catalog.files.length; i++) { let response = await fetch(catalog.files[i]); await response.blob();
progress(i + 1, catalog.files.length); }
cancelStatusTimeout(); hideStatus();
// This will add the catalog to the cache, such that // fetch("pwa_catalog.json?cached") will return it. fetch("pwa_catalog.json?uncached"); }
loadCacheWorker(); }
window.loadCache = loadCache;
function clearCache() { try { navigator.serviceWorker.controller.postMessage(["clearCache"]); } catch (e) { // pass }
localStorage.cacheVersion = -1; }
window.clearCache = clearCache;
/*************************************************************************** * Text input. **************************************************************************/
const inputDiv = document.getElementById("inputDiv"); const inputForm = document.getElementById("inputForm"); const inputPrompt = document.getElementById("inputPrompt"); const inputText = document.getElementById("inputText");
// This stores the input after enter is pressed. window.inputResult = null;
function submitInput(e) { e.preventDefault(); window.inputResult = inputText.value; }
inputForm.addEventListener("submit", submitInput);
inputDiv.addEventListener("keydown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keyup", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keypress", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("mousemove", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mousedown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mouseup", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("touchstart", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchend", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchcancel", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchmove", function (e) { e.stopPropagation(); });
let inputAllow = null; let inputExclude = null;
inputText.addEventListener("input", (e) => { let newValue = "";
for (let c of inputText.value) { if (inputAllow && !inputAllow.includes(c)) { continue; }
if (inputExclude && inputExclude.includes(c)) { continue; }
newValue += c; }
if (newValue != inputText.value) { let end = inputText.selectionEnd; inputText.value = newValue; inputText.setSelectionRange(end-1, end-1); } });
function startInput(prompt, value, allow, exclude, mask) { window.inputResult = null;
inputDiv.classList.remove("hidden"); inputDiv.classList.add("visible");
while (inputPrompt.firstChild) { inputPrompt.removeChild(inputPrompt.firstChild); }
let promptText = document.createTextNode(prompt); inputPrompt.appendChild(promptText);
inputText.value = value; inputText.focus();
inputAllow = allow; inputExclude = exclude;
if (mask) { inputText.type = "password"; } else { inputText.type = "text"; }
}
window.startInput = startInput;
function endInput() { inputDiv.classList.remove("visible"); inputDiv.classList.add("hidden"); inputText.blur(); }
window.endInput = endInput;
/*************************************************************************** * Fetch. ***************************************************************************/
let fetchId = 1; let fetchResult = { };
/** * Fetch a file from the server. * * @param method The HTTP method to use. * @param url The URL to fetch. * @param inFile The file to send to the server. A string giving the file name, or null for no file. * @param outFile The file to write the response to. A string giving the file name, or null for no file. * @param inContentType The content type of the file to send to the server. A string giving the content type. Ignored if inFile is null. * @param headers A string containing a JSON object that contains the headers to send to the server. * * @return A string giving the result of the fetch. The first word is the status, which is one of "OK", "ERROR", or "PENDING", followed by the HTTP status code and status text. */ function fetchFile(method, url, inFile, outFile, inContentType, headers) {
let id = fetchId++; fetchResult[id] = "PENDING Fetch in progress.";
// Ensure headers exists and is not a copy. if (headers) { headers = JSON.parse(headers) } else { headers = { }; }
headers = { ...headers };
async function fetchFileWork() { try {
let content = ''
if (inFile) { headers["Content-Type"] = inContentType || 'application/octet-stream'; }
let options = { method: method, headers: headers};
if (inFile) { options.body = FS.readFile(inFile, { encoding: 'binary' }); }
let response = await fetch(url, options);
if (response.ok) { if (outFile) { let ab = await response.arrayBuffer(); FS.writeFile(outFile, new Uint8Array(ab)); }
fetchResult[id] = "OK " + response.status + " " + response.statusText; } else{ fetchResult[id] = "ERROR " + response.status + " " + response.statusText; }
} catch (err) { fetchResult[id] = "ERROR " + err; console.error(err); }
}
fetchFileWork();
return id; }
function fetchFileResult(id) { let result = fetchResult[id];
if (! result.startsWith("PENDING")) { delete fetchResult[id]; }
return result || "ERROR Fetch ID not found."; }
window.fetchFile = fetchFile; window.fetchFileResult = fetchFileResult;
/** * Fullscreen support. */
let lastFullscreenTime = 0;
function isFullscreen() { let now = +new Date(); return document.fullscreenElement ? 1 : 0; }
window.isFullscreen = isFullscreen;
function setFullscreen(enable) {
let current = document.fullscreenElement !== null;
if (enable == current) { return; }
let now = +new Date();
if (lastFullscreenTime + 250 > +new Date()) { return; }
lastFullscreenTime = now;
setTimeout(function () { if (enable) { let e = document.getElementsByTagName("html")[0]; e.requestFullscreen().catch(function (error) { lastFullscreenTime = now + 15000; }); } else { document.exitFullscreen(); } }, 0); }
window.setFullscreen = setFullscreen;
/*************************************************************************** * "Hidden" developer functions. **************************************************************************/
function downloadBytecode() { FSDownload('/game/cache/bytecode-311.rpyb', 'application/octet-stream'); }
window.downloadBytecode = downloadBytecode;
function traceSleep() { printConsoleOnly = true; renpy_exec('import emscripten; emscripten.TRACE = True') }
window.traceSleep = traceSleep;
function loseContext() { let e = canvas.getContext("webgl2").getExtension("WEBGL_lose_context"); e.loseContext();
setTimeout(function () { e.restoreContext(); }, 1000); }
window.loseContext = loseContext;
/*************************************************************************** * Overlay div handling. **************************************************************************/
let overlayDiv = document.getElementById("overlayDiv");
for (let eventName of ["mousedown", "mouseup", "mousemove" ]) { overlayDiv.addEventListener(eventName, function (e) { canvas.dispatchEvent(new MouseEvent(e.type, e));
if (e.type == "mouseup") { overlayDiv.remove(); }
});
};
})();1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192var cacheName = 'myosotis-my-life-is-not-yours-to-take';
/* Start the service worker and cache all of the app's content or use the existing one */
self.addEventListener('install', function (e) {
console.log('Service worker installed.');
self.skipWaiting();
});
self.addEventListener('activate', function (e) {
return self.clients.claim();
});
/**
* True if the service worker should add the request to a persistent cache.
*/
let addToCache = false;
/**
* Serves the cached version of the request if it exists, otherwise fetches the
* request from the network and caches it. Fetch is used in the default mode,
* which will use the cache for most network requests, freshening the cache
* as required.
*/
async function fetchAndCache(request) {
const cache = await caches.open(cacheName);
const cachedResponse = await cache.match(request);
try {
if (request.url.endsWith("?cached")) {
request = new Request(request.url.replace("?cached", "?uncached"), request);
let rv = await cache.match(request);
if (rv == null) {
rv = new Response("Not found in cache.", { status: 404, statusText: "Not found in cache." });
}
return rv;
}
if (cachedResponse) {
if (cachedResponse.headers.get('Last-Modified')) {
request.headers.set('If-Modified-Since', cachedResponse.headers.get('Last-Modified'));
}
if (cachedResponse.headers.get('ETag')) {
request.headers.set('If-None-Match', cachedResponse.headers.get('ETag'));
}
}
const response = await fetch(request);
if (cachedResponse && response.status == 304) {
return cachedResponse;
}
if (addToCache && response.status == 200) {
await cache.put(request, response.clone());
}
return response;
} catch (e) {
if (cachedResponse) {
console.log('Served from cache: ' + request.url);
return cachedResponse;
}
console.log('Not found in cache: ' + request.url);
throw e;
}
}
/* Serve cached content when offline */
self.addEventListener('fetch', function (e) {
e.respondWith(fetchAndCache(e.request));
});
self.addEventListener('message', function (e) {
if (e.data[0] == "clearCache") {
caches.delete(cacheName);
console.log("Cache cleared in service worker.");
addToCache = false;
} else if (e.data[0] == "loadCache") {
addToCache = true;
}
});1234567891011121314151617181920212223242526272829303132333435<!DOCTYPE html>
<html><head><meta charset="utf-8"/><title>Mobs Inc</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport"/>
<meta content="Scirra Construct" name="generator"/><meta content="Overboy" name="author"/><meta content="Made by Overboy" name="description"/><link href="appmanifest.json" rel="manifest"/><link href="icons/icon-128.png" rel="apple-touch-icon" sizes="128x128"/><link href="icons/icon-256.png" rel="apple-touch-icon" sizes="256x256"/><link href="icons/icon-256.png" rel="icon" type="image/png"/><link href="style.css" rel="stylesheet"/></head><body><script>if (location.protocol.substr(0, 4) === "file"){ alert("Web exports won't work until you upload them. (When running on the file: protocol, browsers block many features from working for security reasons.)");}</script><noscript><div id="notSupportedWrap"><h2 id="notSupportedTitle">This content requires JavaScript</h2><p class="notSupportedMessage">JavaScript appears to be disabled. Please enable it to view this content.</p></div></noscript><script src="scripts/modernjscheck.js"></script><script src="scripts/supportcheck.js"></script><script src="scripts/main.js" type="module"></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111html, body {
padding: 0;
margin: 0;
overflow: hidden;
height: 100%;
}
body {
background: #000000;
color: white;
}
html, body, canvas {
touch-action-delay: none;
touch-action: none;
}
canvas, .c3htmlwrap {
position: absolute;
}
.c3htmlwrap {
contain: strict;
}
.c3overlay {
pointer-events: none;
}
.c3htmlwrap[interactive] > * {
pointer-events: auto;
}
/* HACK - work around elements being selectable only in iOS WKWebView for some reason */
html[ioswebview] .c3htmlwrap,
html[ioswebview] canvas {
-webkit-user-select: none;
user-select: none;
}
html[ioswebview] .c3htmlwrap > * {
-webkit-user-select: auto;
user-select: auto;
}
#notSupportedWrap {
margin: 2em auto 1em auto;
width: 75%;
max-width: 45em;
border: 2px solid #aaa;
border-radius: 1em;
padding: 2em;
background-color: #f0f0f0;
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
color: black;
}
#notSupportedTitle {
font-size: 1.8em;
}
.notSupportedMessage {
font-size: 1.2em;
}
.notSupportedMessage em {
color: #888;
}
/* bbcode styles */
.bbCodeH1 {
font-size: 2em;
font-weight: bold;
}
.bbCodeH2 {
font-size: 1.5em;
font-weight: bold;
}
.bbCodeH3 {
font-size: 1.25em;
font-weight: bold;
}
.bbCodeH4 {
font-size: 1.1em;
font-weight: bold;
}
.bbCodeItem::before {
content: " • ";
}
/* For text icons converted to HTML: size the height to the line height
preserving the aspect ratio. Also add position: relative as that allows
just adding a 'top' style for the iconoffsety style. */
.c3-text-icon {
height: 1em;
width: auto;
position: relative;
}
/* screen reader text */
.c3-screen-reader-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
}1let hasInitialised=!1,runtime=null;function HandleInitRuntimeMessage(t){const e=t.data;e&&"init-runtime"===e["type"]&&(InitRuntime(e),self.removeEventListener("message",HandleInitRuntimeMessage))}function IsAbsoluteURL(t){return/^(?:[a-z\-]+:)?\/\//.test(t)||"data:"===t.substr(0,5)||"blob:"===t.substr(0,5)}function IsRelativeURL(t){return!IsAbsoluteURL(t)}async function LoadScripts(t){if(1===t.length){const e=t[0];await import((IsRelativeURL(e)?"./":"")+e)}else{const e=t.map((t=>`import "${IsRelativeURL(t)?"./":""}${t}";`)).join("\n"),n=URL.createObjectURL(new Blob([e],{type:"application/javascript"}));try{await import(n)}catch(e){console.warn("[Construct] Unable to import script from blob: URL. Falling back to loading scripts sequentially, which could significantly increase loading time. Make sure blob: URLs are allowed for best performance.",e);for(const e of t)await import((IsRelativeURL(e)?"./":"")+e)}}}async function InitRuntime(t){if(hasInitialised)throw new Error("already initialised");hasInitialised=!0;const e=t["messagePort"],n=t["exportType"];self.devicePixelRatio=t["devicePixelRatio"];const i=[];self.runOnStartup=function(t){if("function"!=typeof t)throw new Error("runOnStartup called without a function");i.push(t)};const r=t["runtimeScriptList"].map((t=>new URL(t,location.href).toString()));try{await LoadScripts([...r])}catch(t){return void console.error("[C3 runtime] Failed to load all engine scripts in worker: ",t)}const o=t["projectMainScriptPath"],a=t["scriptsInEventsPath"],s=new URL(o,location.href).toString(),c=new URL(a,location.href).toString();if(o)try{if(await LoadScripts([s]),"preview"===n&&!globalThis.C3_ProjectMainScriptOK)throw new Error("main script did not run to completion")}catch(t){console.error("Error loading project main script: ",t);const n=`Failed to load the project main script (${o}). Check all your JavaScript code has valid syntax, all imports are written correctly, and that an exception was not thrown running the script. Press F12 and check the console for error details.`;e.postMessage({"type":"alert-error","message":n})}if(a)try{if(await LoadScripts([c]),"preview"===n&&!globalThis.C3.ScriptsInEvents)throw new Error("scripts in events did not run to completion")}catch(t){console.error("Error loading scripts in events: ",t);const n="Failed to load scripts in events. Check all your JavaScript code has valid syntax, all imports are written correctly, and that an exception was not thrown running the 'Imports for events' script. Press F12 and check the console for error details.";e.postMessage({"type":"alert-error","message":n})}t["runOnStartupFunctions"]=i,e.postMessage({"type":"creating-runtime"}),runtime=self["C3_CreateRuntime"](t),await self["C3_InitRuntime"](runtime,t)}self.addEventListener("message",HandleInitRuntimeMessage);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747<html><head><title>PICO-8 Cartridge</title><meta content="width=device-width" name="viewport"/><script type="text/javascript">
// Default shell for PICO-8 0.1.12d
// options
// p8_autoplay true to boot the cartridge automatically after page load when possible // if the browser can not create an audio context outside of a user gesture (e.g. on iOS), p8_autoplay has no effect var p8_autoplay = false;
// When pico8_state is defined, PICO-8 will set .is_paused, .sound_volume and .frame_number each frame // (used for determining button icons) var pico8_state = [];
// When pico8_buttons is defined, PICO-8 reads each int as a bitfield holding that player's button states // 0x1 left, 0x2 right, 0x4 up, 0x8 right, 0x10 O, 0x20 X, 0x40 menu // (used by p8_update_gamepads) var pico8_buttons = [0, 0, 0, 0, 0, 0, 0, 0]; // max 8 players
// When pico8_mouse is defined and .length > 0, PICO-8 reads the 3 integers as X, Y and a bitfield for buttons: 0x1 LMB, 0x2 RMB var pico8_mouse = [];
// used to display number of detected joysticks var pico8_gamepads = {}; pico8_gamepads.count = 0;
// When pico8_mouse is defined, PICO-8 reads the 3 integers as X, Y and a bitfield for buttons: 0x1 LMB, 0x2 RMB // var pico8_mouse = [0,0,0];
// When pico8_gpio is defined, reading and writing to gpio pins will read and write to these values var pico8_gpio = new Array(128);
// When pico8_audio_context context is defined, the html shell (this file) is responsible for creating and managing it. // This makes satisfying browser requirements easier -- e.g. initialising audio from a short script in response to a user action. // Otherwise PICO-8 will try to create and use its own context.
var pico8_audio_context;
// menu button and controller graphics p8_gfx_dat={ "p8b_pause1": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOUlEQVRIx2NgGPbg/8cX/0F46FtAM4vobgHVLRowC6hm0YBbQLFFoxaM4FQ0dHPy0C1Nh26NNugBAAnizNiMfvbGAAAAAElFTkSuQmCC","p8b_controls":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQ0lEQVRIx2NgGAXEgP8fX/ynBaap4XBLhqcF1IyfYWQBrZLz0LEAlzqqxQFVLcAmT3MLqJqTaW7B4CqLaF4fjIIBBwBL/B2vqtPVIwAAAABJRU5ErkJggg==","p8b_full":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIx2NgGPLg/8cX/2mJ6WcBrUJm4CwgOSgGrQVEB8WoBaMWDGMLhm5OHnql6dCt0YY8AAA9oZm+9Z9xQAAAAABJRU5ErkJggg==","p8b_pause0":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAKUlEQVRIx2NgGHbg/8cX/7FhctWNWjBqwagFoxaMWjBqwagF5Fkw5AAAPaGZvsIUtXUAAAAASUVORK5CYII=","p8b_sound0":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAANklEQVRIx2NgGDHg/8cX/5Hx0LEA3cChYwEugwavBcRG4qgFoxYMZwuGfk4efqXp8KnRBj0AAMz7cLDnG4FeAAAAAElFTkSuQmCC","p8b_sound1":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAPUlEQVRIx2NgGDHg/8cX/5Hx0LEA3cChYwEugwhZQLQDqG4BsZFIKMhGLRi1YChbMPRz8vArTYdPjTboAQCSVgpXUWQAMAAAAABJRU5ErkJggg==","p8b_close":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAU0lEQVRIx2NkoDFgpJsF/z+++I8iwS9BkuW49A+cBcRaREgf/Swg1SJi1dHfAkIG4EyOOIJy4Cwg1iJCiWDUAvItGLqpaOjm5KFfmg79Gm3ItioAl+mAGVYIZUUAAAAASUVORK5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uZl9kztBpOeEOT8IhUvGW2p+I54qcv0KH9bluKJZmz51V9E5rtP6dMkJgzbsOv1+OElZBQ+vy8HwAEUeRo2/fOIgOK8lYGOFKobU7LeMgvFgwwwt8f+Suotb+/Fr3YdONn0YIWKxRR6Aa+2UcxEi4fCxsSxRo7TEwyng4Wm/jIER7pfedPt0VOqwUXVamW3GV6LR0VxD0FT9rJ7Hlfuuu0GGt12X1axZmls6qVKc1Wl/dFazxyr/G2+x76SLWPI7Rx0h0V7BCQbVrfS5rT0W5YmDdP3flcjKgqI7xYgBMjC0+gW1NQTegawU2KjKhZR0h1RijM/hep2oUhMKhpeCsHSg8awasWYC9AlwUVs5bgdASVoDQElYgtIQVUK9AvV0/HVY+/gEJQqs/6Br0wgpydheH6baOetyg09BZArULeW9dx9BVGQFhx0WdPrj2eEzAfLeVthvZy3EACws+encydFSCCgRX3LFqYvQTVCC4PqjWdc10U4IK+LSbuYdXu/G225mQcjKdwzhbguUBMvyxm/jn8d9dz+fzz1dC8fbbZeax/vq72+O+eSYQWLzceY1CpttgE92S8AOBxZIu7PUnRvcEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwwL/cvBIh09+hJAAAAABJRU5ErkJggg==",
};
var p8_buttons_hash = -1; function p8_update_button_icons() { // buttons only appear when running if (!p8_is_running) { requestAnimationFrame(p8_update_button_icons); return; } var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement); // hash based on: pico8_state.sound_volume pico8_state.is_paused bottom_margin left is_fullscreen p8_touch_detected var hash = 0; hash = pico8_state.sound_volume; if (pico8_state.is_paused) hash += 0x100; if (p8_touch_detected) hash += 0x200; if (is_fullscreen) hash += 0x400;
if (p8_buttons_hash == hash) { requestAnimationFrame(p8_update_button_icons); return; } p8_buttons_hash = hash; // console.log("@@ updating button icons");
els = document.getElementsByClassName('p8_menu_button'); for (i = 0; i < els.length; i++) { el = els[i]; index = el.id; if (index == 'p8b_sound') index += (pico8_state.sound_volume == 0 ? "0" : "1"); // 1 if undefined if (index == 'p8b_pause') index += (pico8_state.is_paused > 0 ? "1" : "0"); // 0 if undefined
new_str = '<img width=24 height=24 style="pointer-events:none" src="'+p8_gfx_dat[index]+'">'; if (el.innerHTML != new_str) el.innerHTML = new_str;
// hide all buttons for touch mode (can pause with menu buttons) var is_visible = p8_is_running;
if (!p8_touch_detected && el.parentElement.id == "p8_menu_buttons_touch") is_visible = false; if (p8_touch_detected && el.parentElement.id == "p8_menu_buttons") is_visible = false;
if (is_fullscreen) is_visible = false;
if (is_visible) el.style.display=""; else el.style.display="none"; } requestAnimationFrame(p8_update_button_icons); }
function abs(x) { return x < 0 ? -x : x; } // step 0 down 1 drag 2 up (not used) function pico8_buttons_event(e, step) { if (!p8_is_running) return; pico8_buttons[0] = 0;
if (step == 2 && typeof(pico8_mouse) !== 'undefined') { pico8_mouse[2] = 0; } var num = 0; if (e.touches) num = e.touches.length;
if (num == 0 && typeof(pico8_mouse) !== 'undefined') { // no active touches: release mouse button from anywhere on page. (maybe redundant? but just in case) pico8_mouse[2] = 0; }
for (var i = 0; i < num; i++) { var touch = e.touches[i]; var x = touch.clientX; var y = touch.clientY; var w = window.innerWidth; var h = window.innerHeight;
var r = Math.min(w,h) / 12; if (r > 40) r = 40;
// mouse (0.1.12d)
let canvas = document.getElementById("canvas"); if (p8_touch_detected) if (typeof(pico8_mouse) !== 'undefined') if (canvas) { var rect = canvas.getBoundingClientRect(); //console.log(rect.top, rect.right, rect.bottom, rect.left, x, y);
if (x >= rect.left && x < rect.right && y >= rect.top && y < rect.bottom) { pico8_mouse = [ Math.floor((x - rect.left) * 128 / (rect.right - rect.left)), Math.floor((y - rect.top) * 128 / (rect.bottom - rect.top)), step < 2 ? 1 : 0 ]; return; }else { pico8_mouse[2] = 0; } }
// buttons b = 0;
if (y < h - r*8) { // no controller buttons up here; includes canvas and menu buttons at top in touch mode } else { e.preventDefault();
if ((y < h - r*6) && y > (h - r*8)) { // menu button: half as high as X O button // stretch across right-hand half above X O buttons if (x > w - r*3) b |= 0x40; } else if (x < w/2 && x < r*6) { // stick
mask = 0xf; // dpad var cx = 0 + r*3; var cy = h - r*3;
deadzone = r/3; var dx = x - cx; var dy = y - cy;
if (abs(dx) > abs(dy) * 0.6) // horizontal { if (dx < -deadzone) b |= 0x1; if (dx > deadzone) b |= 0x2; } if (abs(dy) > abs(dx) * 0.6) // vertical { if (dy < -deadzone) b |= 0x4; if (dy > deadzone) b |= 0x8; } } else if (x > w - r*6) { // button; diagonal split from bottom right corner mask = 0x30; // one or both of [X], [O] if ( (h-y) > (w-x) * 0.8) b |= 0x10; if ( (w-x) > (h-y) * 0.8) b |= 0x20; } }
pico8_buttons[0] |= b; } }
// p8_update_layout_hash is used to decide when to update layout (expensive especially when part of a heavy page) var p8_update_layout_hash = -1; var last_windowed_container_height = 512; var p8_layout_frames = 0;
function p8_update_layout() { var canvas = document.getElementById("canvas"); var p8_playarea = document.getElementById("p8_playarea"); var p8_container = document.getElementById("p8_container"); var p8_frame = document.getElementById("p8_frame"); var csize = 512; var margin_top = 0; var margin_left = 0;
// page didn't load yet? first call should be after p8_frame is created so that layout doesn't jump around. if (!canvas || !p8_playarea || !p8_container || !p8_frame) { p8_update_layout_hash = -1; requestAnimationFrame(p8_update_layout); return; }
p8_layout_frames ++;
// assumes frame doesn't have padding var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement); var frame_width = p8_frame.offsetWidth; var frame_height = p8_frame.offsetHeight;
if (is_fullscreen) { // same as window frame_width = window.innerWidth; frame_height = window.innerHeight; } else{ // never larger than window // (happens when address bar is down in portraight mode on phone) frame_width = Math.min(frame_width, window.innerWidth); frame_height = Math.min(frame_height, window.innerHeight); }
// as big as will fit in a frame.. csize = Math.min(frame_width,frame_height);
// .. but never more than 2/3 of longest side for touch (e.g. leave space for controls on iPad) if (p8_touch_detected && p8_is_running) { var longest_side = Math.max(window.innerWidth,window.innerHeight); csize = Math.min(csize, longest_side * 2/3); }
// pixel perfect: quantize to closest multiple of 128 // only when large display (desktop) if (frame_width >= 512 && frame_height >= 512) { csize = (csize+1) & ~0x7f; }
// csize should never be higher than parent frame // (otherwise stretched large when fullscreen and then return) if (!is_fullscreen && p8_frame) csize = Math.min(csize, last_windowed_container_height); // p8_frame_0 parent
if (is_fullscreen) { // always center horizontally margin_left = (frame_width - csize)/2;
if (p8_touch_detected) { if (window.innerWidth < window.innerHeight) { // portrait: keep at y=40 (avoid rounded top corners / camer num thing etc.) margin_top = Math.min(40, frame_height - csize); } else { // landscape: put a little above vertical center margin_top = (frame_height - csize)/4; } } else{ // non-touch: center vertically margin_top = (frame_height - csize)/2; } }
// skip if relevant state has not changed
var update_hash = csize + margin_top * 1000.3 + margin_left * 0.001 + frame_width * 333.33 + frame_height * 772.15134; if (is_fullscreen) update_hash += 0.1237;
// unexpected things can happen in the first few seconds, so just keep re-calculating layout. wasm version breaks layout otherwise. // also: bonus refresh at 5, 8 seconds just in case ._. if (p8_layout_frames < 180 || p8_layout_frames == 60*5 || p8_layout_frames == 60*8 ) update_hash = p8_layout_frames;
if (!is_fullscreen) // fullscreen: update every frame for safety. should be cheap! if (!p8_touch_detected) // mobile: update every frame because nothing can be trusted if (p8_update_layout_hash == update_hash) { //console.log("p8_update_layout(): skipping"); requestAnimationFrame(p8_update_layout); return; } p8_update_layout_hash = update_hash;
// record this for returning to original size after fullscreen pushes out container height (argh) if (!is_fullscreen && p8_frame) last_windowed_container_height = p8_frame.parentNode.parentNode.offsetHeight;
// mobile in portrait mode: put screen at top (w / a little space for fullscreen button) // (don't cart about buttons overlapping screen) if (p8_touch_detected && p8_is_running && document.body.clientWidth < document.body.clientHeight) p8_playarea.style.marginTop = 32; else if (p8_touch_detected && p8_is_running) // landscape: slightly above vertical center (only relevant for iPad / highres devices) p8_playarea.style.marginTop = (document.body.clientHeight - csize) / 4; else p8_playarea.style.marginTop = "";
canvas.style.width = csize; canvas.style.height = csize;
// to do: this should just happen from css layout canvas.style.marginLeft = margin_left; canvas.style.marginTop = margin_top;
p8_container.style.width = csize; p8_container.style.height = csize;
// set menu buttons position to bottom right el = document.getElementById("p8_menu_buttons"); el.style.marginTop = csize - el.offsetHeight;
if (p8_touch_detected && p8_is_running) { // turn off pointer events to prevent double-tap zoom etc (works on Android) // don't want this for desktop because breaks mouse input & click-to-focus when using codo_textarea canvas.style.pointerEvents = "none";
p8_container.style.marginTop = "0px";
// buttons // same as touch event handling var w = window.innerWidth; var h = window.innerHeight; var r = Math.min(w,h) / 12;
if (r > 40) r = 40;
el = document.getElementById("controls_right_panel"); el.style.left = w-r*6; el.style.top = h-r*7; el.style.width = r*6; el.style.height = r*7; if (el.getAttribute("src") != p8_gfx_dat["controls_right_panel"]) // optimisation: avoid reload? (browser should handle though) el.setAttribute("src", p8_gfx_dat["controls_right_panel"]);
el = document.getElementById("controls_left_panel"); el.style.left = 0; el.style.top = h-r*6; el.style.width = r*6; el.style.height = r*6; if (el.getAttribute("src") != p8_gfx_dat["controls_left_panel"]) // optimisation: avoid reload? (browser should handle though) el.setAttribute("src", p8_gfx_dat["controls_left_panel"]); // scroll to cart (need to stop running with X) p8_frame.scrollIntoView(true);
document.getElementById("touch_controls_gfx").style.display="table"; document.getElementById("touch_controls_background").style.display="table";
} else{ document.getElementById("touch_controls_gfx").style.display="none"; document.getElementById("touch_controls_background").style.display="none"; }
if (!p8_is_running) { p8_playarea.style.display="none"; p8_container.style.display="flex"; p8_container.style.marginTop="auto";
el = document.getElementById("p8_start_button"); if (el) el.style.display="flex"; } requestAnimationFrame(p8_update_layout); }
var p8_touch_detected = false; addEventListener("touchstart", function(event) { p8_touch_detected = true;
// hide codo_textarea -- clipboard support on mobile is not feasible el = document.getElementById("codo_textarea"); if (el && el.style.display != "none"){ el.style.display="none"; }
}, {passive: true});
function p8_create_audio_context() { if (pico8_audio_context) { try { pico8_audio_context.resume(); } catch(err) { console.log("** pico8_audio_context.resume() failed"); } return; }
var webAudioAPI = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext; if (webAudioAPI) { pico8_audio_context = new webAudioAPI;
// wake up iOS if (pico8_audio_context) { try { var dummy_source_sfx = pico8_audio_context.createBufferSource(); dummy_source_sfx.buffer = pico8_audio_context.createBuffer(1, 1, 22050); // dummy dummy_source_sfx.connect(pico8_audio_context.destination); dummy_source_sfx.start(1, 0.25); // gives InvalidStateError -- why? hasn't been played before //dummy_source_sfx.noteOn(0); // deleteme } catch(err) { console.log("** dummy_source_sfx.start(1, 0.25) failed"); } } } }
function p8_close_cart() { // just reload page! used for touch buttons -- hard to roll back state window.location.hash = ""; // triggers reload }
var p8_is_running = false; var p8_script = null; var Module = null; function p8_run_cart() { if (p8_is_running) return; p8_is_running = true;
// touch: hide everything except p8_frame_0 if (p8_touch_detected) { el = document.getElementById("body_0"); el2 = document.getElementById("p8_frame_0"); if (el && el2) { el.style.display="none"; el.parentNode.appendChild(el2); } }
// create audio context and wake it up (for iOS -- needs happen inside touch event) p8_create_audio_context();
// show touch elements els = document.getElementsByClassName('p8_controller_area'); for (i = 0; i < els.length; i++) els[i].style.display="";
// install touch events. These also serve to block scrolling / pinching / zooming on phones when p8_is_running // moved event.preventDefault(); calls into pico8_buttons_event() (want to let top buttons pass through) addEventListener("touchstart", function(event){ pico8_buttons_event(event, 0); }, {passive: false}); addEventListener("touchmove", function(event){ pico8_buttons_event(event, 1); }, {passive: false}); addEventListener("touchend", function(event){ pico8_buttons_event(event, 2); }, {passive: false});
// load and run script e = document.createElement("script"); p8_script = e; e.onload = function(){ // show canvas / menu buttons only after loading el = document.getElementById("p8_playarea"); if (el) el.style.display="table";
if (typeof(p8_update_layout_hash) !== 'undefined') p8_update_layout_hash = -77; if (typeof(p8_buttons_hash) !== 'undefined') p8_buttons_hash = -33;
} e.type = "application/javascript"; e.src = "coffeemaker_v2.js"; e.id = "e_script"; document.body.appendChild(e); // load and run
// hide start button and show canvas / menu buttons. hide start button el = document.getElementById("p8_start_button"); if (el) el.style.display="none";
// add #playing for touchscreen devices (allows back button to close) // X button can also be used to trigger this if (p8_touch_detected) { window.location.hash = "#playing"; window.onhashchange = function() { if (window.location.hash.search("playing") < 0) window.location.reload(); } } }
// gamepad https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API // (sets bits in pico8_buttons[]) function p8_update_gamepads() { var threshold = 0.3; var max_players = 8; var gps = navigator.getGamepads() || navigator.webkitGetGamepads();
if (!gps) return;
pico8_gamepads.count = gps.length;
for (var i = 0; i < gps.length && i < max_players; i++) { var gp = gps[i]; if (gp && gp.axes && gp.buttons) { pico8_buttons[i] = 0;
if (gp.axes[0] && gp.axes[0] < -threshold) pico8_buttons[i] |= 0x1; if (gp.axes[0] && gp.axes[0] > threshold) pico8_buttons[i] |= 0x2; if (gp.axes[1] && gp.axes[1] < -threshold) pico8_buttons[i] |= 0x4; if (gp.axes[1] && gp.axes[1] > threshold) pico8_buttons[i] |= 0x8;
// buttons: first 4 are O/X; (almost) everything else taken to be menu button // ref: https://w3c.github.io/gamepad/#remapping (er.. that mapping doesn't agree with xbox, buffalo snes) for (j = 0; j < gp.buttons.length; j++) if (gp.buttons[j].value > 0 || gp.buttons[j].pressed) { if (j < 4) pico8_buttons[i] |= (0x10 << (((j+1)/2)&1)); // 0 1 1 0 0 1 -- A,X are O,X on xbox controller else { if (j >= 6 && j <= 8) // PICO-8 0.2.0g: seems usually 6,7,8 are menu buttons (?) // others might be easy to accidentally bump pico8_buttons[0] |= 0x40; // menu button } } } }
requestAnimationFrame(p8_update_gamepads); } requestAnimationFrame(p8_update_gamepads);
// key blocker. prevent cursor keys from scrolling page while playing cart. // also don't act on M, R so that can mute / reset cart document.addEventListener('keydown', function (event) { event = event || window.event; if (!p8_is_running) return; if (pico8_state.has_focus == 1) if ([32, 37, 38, 39, 40, 77, 82, 80, 9].indexOf(event.keyCode) > -1) // block cursors, M R P, tab if (event.preventDefault) event.preventDefault(); },{passive: false});
// when using codo_textarea to determine focus, need to explicitly hand focus back when clicking a p8_menu_button function p8_give_focus() { el = (typeof codo_textarea === 'undefined') ? document.getElementById("codo_textarea") : codo_textarea; if (el) { el.focus(); el.select(); } }
function p8_request_fullscreen() {
var is_fullscreen=(document.fullscreenElement || document.mozFullScreenElement || document.webkitIsFullScreen || document.msFullscreenElement);
if (is_fullscreen) { if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.webkitExitFullscreen) { document.webkitExitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.msExitFullscreen) { document.msExitFullscreen(); } return; } var el = document.getElementById("p8_playarea");
if ( el.requestFullscreen ) { el.requestFullscreen(); } else if ( el.mozRequestFullScreen ) { el.mozRequestFullScreen(); } else if ( el.webkitRequestFullScreen ) { el.webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT ); } }
</script><style type="text/css">
</style></head><body style="padding:0px; margin:0px; background-color:#7e2553; color:#ccc"><div id="body_0">
<div id="p8_desktop" style="display:block; position:absolute; top:10px; left:10px"></div> <div id="p8_frame_0" style="max-width:800px; max-height:800px; margin:auto;"> <div id="p8_frame" style="display:flex; width:100%; max-width:95vw; height:100vw; max-height:95vh; margin:auto;"><div id="p8_menu_buttons_touch" style="position:absolute; width:100%; z-index:10; left:0px;"><div class="p8_menu_button" id="p8b_full" onclick="p8_give_focus(); p8_request_fullscreen();" style="float:left;margin-left:10px"></div><div class="p8_menu_button" id="p8b_sound" onclick="p8_give_focus(); p8_create_audio_context(); Module.pico8ToggleSound();" style="float:left;margin-left:10px"></div><div class="p8_menu_button" id="p8b_close" onclick="p8_close_cart();" style="float:right; margin-right:10px"></div></div><div id="p8_container" onclick="p8_create_audio_context(); p8_run_cart();" style="margin:auto; display:table;"><div class="p8_start_button" id="p8_start_button" style="width:100%; height:100%; display:flex;"><img height="80" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAABpklEQVR42u3au23DQBCEYUXOXIGKcujQXUgFuA0XIKgW90Q9oEAg+Ljd27vd2RsCf058gEDqhofPj+OB6SMCAQlIQAIyAhKQgARkBAQDnM6XSRsB7/2e/tSA0//12fCAKsQX3ntDA4oRFwBRIc0AixE38BAhTQGLEAsBUSDNAXcRhYDRIZsAPlp99VECRoXsDpgN0g0wC6Q7IDpkGEBUyG6A0+vKBtkdMBukG2AWSHdAdMgwgKiQ4QDRIMMCokCGB4wOCQPYFVKw2cABNocUjl6wgE0gFashPKAZpHJ2TQNYBVmxW6cDFENWDv9pAUshCVgJScBKSAISkD9hPkT4GkNAMdzepyj8Kye852EBLe51CZHHWQK4JcThD1SlcHPEYY/0a+A0n6SkGZV6w6WZNb3g4Id1b7hwgGhwYQBR4dwB0eHcALPAdQfMBhcOEA0uDCAqnDsgOpwbYBa4poA/31+rZYFrBriFpwGMCtcEcA9PAhgdzhywBK8EEQXOFFCCtwaIBmcGKMWbI6LCmQBq8R6hw5kAMgISkIAEJCAjIAEJSEBGQI9ukV7lRn9nD+gAAAAASUVORK5CYII=" style="margin:auto;" width="80"/></div><div id="p8_playarea" style="display:none; margin:auto;"><div id="touch_controls_background" style=" pointer-events:none; display:none; background-color:#000; position:fixed; top:0px; left:0px; border:0; width:100vw; height:100vh"> </div><div style="display:flex; position:relative">
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault();" style=" -webkit-user-select: none; -moz-user-select: none; user-select: none; "></canvas><div class="p8_menu_buttons" id="p8_menu_buttons" style="margin-left:10px;"><div class="p8_menu_button" id="p8b_controls" onclick="p8_give_focus(); Module.pico8ToggleControlMenu();" style="position:absolute; bottom:125px"></div><div class="p8_menu_button" id="p8b_pause" onclick="p8_give_focus(); Module.pico8TogglePaused();" style="position:absolute; bottom:90px"></div><div class="p8_menu_button" id="p8b_sound" onclick="p8_give_focus(); p8_create_audio_context(); Module.pico8ToggleSound();" style="position:absolute; bottom:55px"></div><div class="p8_menu_button" id="p8b_full" onclick="p8_give_focus(); p8_request_fullscreen();" style="position:absolute; bottom:20px"></div></div></div>
<div id="touch_controls_gfx" style=" pointer-events:none; display:table; position:fixed; top:0px; left:0px; border:0; width:100vw; height:100vh"><img id="controls_right_panel" src="" style="position:absolute; opacity:0.5;"/><img id="controls_left_panel" src="" style="position:absolute; opacity:0.5;"/></div>
<textarea class="emscripten" id="codo_textarea" style="display:none; position:absolute; left:-9999px; height:0px; overflow:hidden"></textarea></div> </div> </div> </div> <script type="text/javascript">
p8_update_layout(); p8_update_button_icons();
var canvas = document.getElementById("canvas"); Module = {}; Module.canvas = canvas;
// from @ultrabrite's shell: test if an AudioContext can be created outside of an event callback. // If it can't be created, then require pressing the start button to run the cartridge
if (p8_autoplay) { var temp_context = new AudioContext(); temp_context.onstatechange = function () { if (temp_context.state=='running') { p8_run_cart(); temp_context.close(); } }; } </script>
</div> </body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8"/><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>MYOSOTIS: My Life Is Not Yours To Take</title><meta content="width=device-width, initial-scale=1.0" name="viewport"/><link crossorigin="use-credentials" href="manifest.json" rel="manifest"/><link href="icons/icon-72x72.png" rel="icon" sizes="72x72" type="image/png"/><link href="icons/icon-96x96.png" rel="icon" sizes="96x96" type="image/png"/><link href="icons/icon-128x128.png" rel="icon" sizes="128x128" type="image/png"/><link href="icons/icon-144x144.png" rel="icon" sizes="144x144" type="image/png"/><link href="icons/icon-152x152.png" rel="icon" sizes="152x152" type="image/png"/><link href="icons/icon-192x192.png" rel="icon" sizes="192x192" type="image/png"/><link href="icons/icon-384x384.png" rel="icon" sizes="384x384" type="image/png"/><link href="icons/icon-512x512.png" rel="icon" sizes="512x512" type="image/png"/>
<link href="icons/icon-72x72.png" rel="apple-touch-icon" sizes="72x72" type="image/png"/><link href="icons/icon-96x96.png" rel="apple-touch-icon" sizes="96x96" type="image/png"/><link href="icons/icon-128x128.png" rel="apple-touch-icon" sizes="128x128" type="image/png"/><link href="icons/icon-144x144.png" rel="apple-touch-icon" sizes="144x144" type="image/png"/><link href="icons/icon-152x152.png" rel="apple-touch-icon" sizes="152x152" type="image/png"/><link href="icons/icon-192x192.png" rel="apple-touch-icon" sizes="192x192" type="image/png"/><link href="icons/icon-384x384.png" rel="apple-touch-icon" sizes="384x384" type="image/png"/><link href="icons/icon-512x512.png" rel="apple-touch-icon" sizes="512x512" type="image/png"/><meta content="#000" name="theme-color"><style> html { background: #444; font-family: sans-serif; }
body, html { overscroll-behavior: none; }
#canvas, #overlayDiv { position: absolute; top: 0px; left: 0px;
width: 100%; height: 100%;
border: 0 none; }
#canvas { background: #000; }
.visible { visibility: visible; opacity: 1.0; transition: opacity .1s linear; }
.hidden { visibility: hidden; opacity: 0; transition: visibility 0s .25s, opacity .25s linear; }
#statusDiv, #inputDiv { background: rgba(0, 0, 0, 0.75); width: 50%; margin: auto; min-width: 340px; padding: 10px;
position: absolute; top: 0; left: 0; right: 0;
border-radius: 0 0 5px 5px; }
#statusTextDiv { overflow: auto; max-height: 40vh; color: #ccc; font-size: 14px; }
#statusProgress { display: none; width: 100%; }
#inputDiv { width: 65%; padding-left: 10px; padding-right: 20px; }
#inputPrompt { color: #eee; font-size: 150%; margin-bottom: 1em; margin-top: 1em;
}
#inputText { width: 100%; font-size: 175%; padding: 5px; background: inherit; color: #eee; }
#inputText:focus { color: #ffffff; }
#ContextContainer { position: absolute; left: 0px; top: 0px; color: white; }
#ContextContainer.shown { background: rgba(0, 0, 0, 0.5); border-radius: 0px 0px 5px 0px; }
#ContextButton { text-decoration: none; color: lightgrey; font-size: xx-large; cursor: pointer; user-select: none; -moz-user-select: none; padding: 10px 10px; opacity: .75; }
#ContextButton:focus { outline: none; color: #ffffff; opacity: 1.0; }
#ContextMenu a { text-decoration: none; color: lightgrey; background: #444; height: 48px; width: 250px; border-radius: 5px; border: 1px solid lightgrey; display: flex; align-items: center; justify-content: center; margin: 5px 5px; opacity: 1.0; }
#ContextMenu a:hover { text-decoration: none; background: #666666; color: #ffffff }
#presplash { position: absolute; top: 0; left: 0; display: block; margin: auto; width: 100%; height: 100%; object-fit: contain; }
</style></meta></head><body><canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas><div id="overlayDiv"></div><img id="presplash" src="web-presplash.jpg"/><div id="ContextContainer"><a id="ContextButton">≡</a><br/><div id="ContextMenu" style="display: none;"><input accept="application/zip" id="ID_SavegamesImport" onchange="onSavegamesImport(this)" style="display:none" type="file"/><a href="javascript:document.getElementById('ID_SavegamesImport').click();">Import Saves</a><a href="javascript:onSavegamesExport();">Export Saves</a><a href="javascript:FSDownload('/log.txt', 'text/plain');">Download Log</a><a href="https://www.renpy.org/" target="_blank"> Powered by Ren'Py </a>
</div></div><div class="hidden" id="statusDiv"><div id="statusTextDiv"></div><progress id="statusProgress" max="100" value="0"></progress></div><div class="hidden" id="inputDiv"><form id="inputForm"><div id="inputPrompt"></div><input id="inputText" type="text"/></form></div><script> // The URL to game.zip, relative to the URL of this file. window.gameZipURL = 'game.zip';
// Register the service worker. if (navigator.serviceWorker) { if (!navigator.serviceWorker.controller) { navigator.serviceWorker.register('./service-worker.js', { updateViaCache: 'all' }); } } </script><script src="renpy-pre.js"></script><script async="" src="renpy.js" type="text/javascript"></script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976/*
Copyright 2019-2021 Sylvain BeuclerCopyright 2022 Teyut <teyut@free.fr>Copyright 2019-2022 Tom Rothamel <pytom@bishoujo.us>
Permission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,including without limitation the rights to use, copy, modify, merge,publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/
Module = window.Module || { };Module.preRun = Module.preRun || [ ];
(function () {
/*************************************************************************** * Report messages, errors, and progress. **************************************************************************/
// The div containing the status and progress bar. let statusDiv = document.getElementById("statusDiv"); let statusTextDiv = document.getElementById("statusTextDiv"); let statusProgress = document.getElementById("statusProgress");
// Presplash block let presplash = document.getElementById('presplash');
// The timeout before the status div hides itself. let statusTimeout = null;
// The status message. let statusText = "";
// How long before the status div starts hiding, in seconds. const STATUS_TIMEOUT = 5000;
// The last time the progress was updated. let lastProgressTime = 0;
// Has an error been reported? let errorReported = false;
// Should output only go to the console? let printConsoleOnly = false;
/** * Hide the status div. Once it's hidden, clears the status text. */ function hideStatus() { if (errorReported) { return; }
statusDiv.classList.remove("visible"); statusDiv.classList.add("hidden");
statusTimeout = setTimeout(() => { statusText = ""; }, 250); }
/** * Show the status div. */ function showStatus() { statusDiv.classList.remove("hidden"); statusDiv.classList.add("visible"); statusTextDiv.scrollTop = statusTextDiv.scrollHeight; statusProgress.style.display = "none"; }
/** * Cancels the timeout that hides the status div. */ function cancelStatusTimeout() { if (statusTimeout) { clearTimeout(statusTimeout); statusTimeout = null; } }
/** * Start the timeout that hides the status div. */ function startStatusTimeout() { cancelStatusTimeout(); statusTimeout = setTimeout(hideStatus, STATUS_TIMEOUT); }
function printCommon(s) {
cancelStatusTimeout(); lastProgressTime = 0;
if (statusText) { statusText += "<br>"; }
if (s == "" && !errorReported) { statusText = ""; return; }
for (let i of s.split("\n")) { if (i.length > 0) { console.log(i); } }
if (printConsoleOnly) { return; }
s = String(s); s = s.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/>/g, ">"); s = s.replace('\n', '<br />', 'g');
statusText += s; statusTextDiv.innerHTML = statusText;
showStatus(); }
/** * Reports a message that will eventually be hidden. */ function printMessage(s) {
if (s.startsWith("warning: ") || s.startsWith("wasm streaming compile failed") || s.startsWith("falling back to ArrayBuffer") ) { console.log(s); return; }
printCommon(s); startStatusTimeout(); }
function reportError(s, e) { if (e) { console.error(e, e.stack); s += ": " + e.message; }
s += "\nMore information may be available in the browser console or contained in the log.";
printCommon(s);
errorReported = true;
try { Module.addRunDependency("error"); } catch (e) { window.stop(); } }
/** * Updates the progress bar. */ function progress(done, total) {
if (errorReported) { return; }
let now = +Date.now();
if ((now < lastProgressTime + 32) && (done < total) && (done > 1)) { return }
lastProgressTime = now;
cancelStatusTimeout(); showStatus();
if (total) { statusProgress.value = done; statusProgress.max = total; statusProgress.style.display = "block"; }
startStatusTimeout();
}
window.progress = progress;
Module.print = printMessage; Module.printErr = printMessage;
/*************************************************************************** * Browser capability checks. **************************************************************************/
// Report the lack of WebAssembly support. if (typeof WebAssembly !== 'object') { reportError("This browser does not support WebAssembly."); }
// Report the lack of the fetch function. if (typeof fetch !== 'function') { reportError("This browser does not support fetch."); }
// Clear error when running without a server. if (location.href.startsWith('file://')) { reportError("This browser requires the game to be run from a web server (i.e. double-clicking on index.html won't work)."); }
/*************************************************************************** * Emscripten initialization and termination. **************************************************************************/
/** Set up the canvas. */ let canvas = document.getElementById('canvas');
/** Set when the webGlContext is lost. */ window.webglContextLost = false;
/** Set when the webGlContext is restored. Cleared by Ren'Py in core.py. */ window.webglContextRestored = false;
canvas.addEventListener("webglcontextlost", (e) => { window.webglContextRestored = false; window.webglContextLost = true; e.preventDefault(); }, false);
canvas.addEventListener("webglcontextrestored", (e) => { window.webglContextLost = false; window.webglContextRestored = true; }, false);
canvas.addEventListener('mouseenter', function (e) { window.focus() });
canvas.addEventListener('click', function (e) { window.focus() });
Module.canvas = canvas;
window.presplashEnd = () => { presplash.remove(); cancelStatusTimeout(); hideStatus(); };
window.atExit = () => { canvas.remove(); reportError("The game exited unexpectedly."); };
Module.onAbort = () => { canvas.remove(); reportError("The game aborted unexpectedly."); };
/** * Initialize the filesystem. */ function initFs() { // Create the save directory, and mount the IDBFS filesystem. try { Module.addRunDependency('initFs'); FS.mkdir('/home/web_user/.renpy'); FS.mount(IDBFS, {}, '/home/web_user/.renpy'); FS.syncfs(true, (err) => { if (err) { printMessage("Error syncing IDBFS: " + err); printMessage("The game may not be able to save properly."); }
Module.removeRunDependency('initFs'); }); } catch (e) { reportError("Could not create ~/.renpy/", e); } }
Module.preRun.push(initFs);
// The size of the data and gamezip files. let dataSize = 0; let gameZipSize = 0;
// The number of bytes downloaded. let dataDownloaded = 0; let gameZipDownloaded = 0;
// Have we issued the data and gameZip prompts? let dataPrompt = false; let gameZipPrompt = false;
function updateDownloadProgress() { if (dataSize == 0) { return; }
if (dataDownloaded < dataSize || gameZipSize == 0) { if (!dataPrompt) { printMessage(""); printMessage("Downloading engine..."); dataPrompt = true; }
progress(dataDownloaded, dataSize); return; }
if (!gameZipPrompt) { printMessage(""); printMessage("Downloading game data..."); gameZipPrompt = true; }
progress(gameZipDownloaded, gameZipSize);
}
Module.setStatus = function (s) {
var m = s.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
if (m) { dataDownloaded = parseInt(m[2]); dataSize = parseInt(m[4]); updateDownloadProgress(); return; }
console.log(s); }
async function loadGameZip() {
try { let response = await fetch(window.gameZipURL);
if (!response.ok) { reportError("Could not load game.zip: " + response.status + " " + response.statusText); }
gameZipSize = parseInt(response.headers.get('Content-Length'), 10); if(Number.isNaN(gameZipSize)) gameZipSize = 0;
let reader = await response.body.getReader();
let f = FS.open('/game.zip', 'w');
while (true) {
let { done, value } = await reader.read();
if (done) { break; }
FS.write(f, value, 0, value.length); gameZipDownloaded += value.length;
updateDownloadProgress(); }
FS.close(f);
} catch (e) { reportError("Could not download game.zip", e); } }
function runLoadGameZip() { Module.addRunDependency('loadGameZip');
loadGameZip().then(() => { Module.removeRunDependency('loadGameZip'); });
}
Module['preRun'].push(runLoadGameZip);
/*************************************************************************** * **************************************************************************/
let cmd_queue = []; let cur_cmd = undefined; let cmd_debug = false;
function cmd_log(...args) { if (cmd_debug) console.debug(...args); }
/** This functions is called by the wrapper script at the end of script execution. */ function cmd_callback(result) { cmd_log('cmd_callback', result);
if (cur_cmd === undefined) { console.error('Unexpected command result', result); return; }
try { if (result.error !== undefined) { cmd_log('ERROR', result.name, result.error, result.traceback); const e = new Error(result.error); e.name = result.name; e.traceback = result.traceback; cur_cmd.reject(e); } else { cmd_log('SUCCESS', result.data); cur_cmd.resolve(result.data); } } finally { cur_cmd = undefined; send_next_cmd(); } }
window._renpy_cmd_callback = cmd_callback;
/** Prepare and send the next command to be executed if any. */ function send_next_cmd() { if (cmd_queue.length == 0) return
cur_cmd = cmd_queue.shift(); cmd_log('send_next_cmd', cur_cmd);
// Convert script to base64 to prevent having to escape // the script content as a Python string const script_b64 = btoa(cur_cmd.py_script); const wrapper = 'import base64, emscripten, json, traceback;\n' + 'try:' + "result = None;" + "exec(base64.b64decode('" + script_b64 + "').decode('utf-8'));" + "result = json.dumps(dict(data=result));" + "\n" + "except Exception as e:" + "result = json.dumps(dict(error=str(e), name=e.__class__.__name__, traceback=traceback.format_exc()));" + "\n" + "emscripten.run_script('_renpy_cmd_callback(%s)' % (result,));";
cmd_log(wrapper);
// Write script to the global variable Ren'Py is monitoring window._renpy_cmd = wrapper; }
/** Add a command to the queue and execute it if the queue was empty. */ function add_cmd(py_script, resolve, reject) { const cmd = { py_script: py_script, resolve: resolve, reject: reject }; cmd_log('add_cmd', cmd); cmd_queue.push(cmd);
if (cur_cmd === undefined) send_next_cmd(); }
/* Global definitions */
/** Execute Python statements in Ren'Py Python's thread. The statements are executed * using the renpy.python.py_exec() function, and the value of the "result" variable * is passed to the resolve callback. In case of error, an Error instance is passed * to the reject callback, with an extra "traceback" property. * @param py_script The Python script to execute. * @return A promise which resolves with the statements result. */ renpy_exec = function (py_script) { return new Promise((resolve, reject) => { add_cmd(py_script, resolve, reject); }); };
window.renpy_exec = renpy_exec;
/** Helper function to get the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @return A promise which resolves with the variable value. */ renpy_get = function (name) { return new Promise((resolve, reject) => { renpy_exec('result = ' + name) .then(resolve).catch(reject); }); };
window.renpy_get = renpy_get;
/** Helper function to set the value of a Ren'Py variable. * @param name The variable name (e.g., "build.name"). * @param value The value to set. It should either be a basic JS type that * will be converted to JSON, or a Python expression. The raw * parameter must be set to true for the latter case. * @param raw (optional) If true, value is a valid Python expression. * Otherwise, it must be a basic JS type. * @return A promise which resolves with true in case of success * and fails otherwise. */ renpy_set = function (name, value, raw) { let script; if (raw) { script = name + " = " + value + "; result = True"; } else { // Using base64 as it is unclear if we can use the output // of JSON.stringify() directly as a Python string script = 'import base64, json; ' + name + " = json.loads(base64.b64decode('" + btoa(JSON.stringify(value)) + "').decode('utf-8')); result = True"; } return new Promise((resolve, reject) => { renpy_exec(script) .then(resolve).catch(reject); }); };
window.renpy_set = renpy_set;
/*************************************************************************** * Context menu. **************************************************************************/
const menu = document.getElementById('ContextMenu');
const contextContainer = document.getElementById('ContextContainer');
document.getElementById('ContextButton').addEventListener('click', function (e) { if (menu.style.display == 'none') { menu.style.display = 'block'; contextContainer.classList.add("shown"); } else { menu.style.display = 'none'; contextContainer.classList.remove("shown"); } e.preventDefault(); });
menu.addEventListener('click', function (e) { if (e.target.tagName == 'A') { // Close context menu when a menu item is selected menu.style.display = 'none'; } });
async function onSavegamesImport(input) { reader = new FileReader(); reader.onload = function (e) { FS.writeFile('savegames.zip', new Uint8Array(e.target.result));
renpy_exec('result = renpy.savelocation.unzip_saves()').then((result) => { FS.syncfs(false, function (err) { if (err) { console.trace(); console.log(err, err.message); printMessage("Warning: cannot import savegames: write error: " + err.message ); } else { renpy_exec('renpy.loadsave.location.scan()').then(result => { printMessage("Saves imported successfully."); }).catch(error => { console.error('Cannot rescan saves folder:', error); printMessage("Saves imported - restart game to apply."); }); } }); }).catch(error => { console.error('Cannot import savegames', error); printMessage("Couldn't import the savegames: " + error.message); }) } reader.readAsArrayBuffer(input.files[0]) input.type = ''; input.type = 'file'; // reset field }
window.onSavegamesImport = onSavegamesImport;
function onSavegamesExport() { renpy_exec('result = renpy.savelocation.zip_saves()').then((ret) => { if (ret) { FSDownload('savegames.zip', 'application/zip'); printMessage("Saves exported successfully.\n"); } }); }
window.onSavegamesExport = onSavegamesExport;
function FSDownload(filename, mimetype) { console.log('download', filename); var a = document.createElement('a'); a.download = filename.replace(/.*\//, ''); try { a.href = window.URL.createObjectURL(new Blob([FS.readFile(filename)], { type: mimetype || '' })); } catch (e) { Module.print("Error opening " + filename + "\n"); return; } document.body.appendChild(a); a.click();
// delay clean-up to avoid iOS issue: // The operation couldn’t be completed. (WebKitBlobResource error 1.) setTimeout(function () { window.URL.revokeObjectURL(a.href); document.body.removeChild(a); }, 1000); }
window.FSDownload = FSDownload;
/*************************************************************************** * Precaching. **************************************************************************/
function loadCache() {
try { navigator.serviceWorker.controller.postMessage(["loadCache"]); } catch (e) { // pass }
async function loadCacheWorker() {
let response = await fetch("pwa_catalog.json"); let catalog = await response.json();
let cachedCatalog;
try { let cachedCatalogResponse = await fetch("pwa_catalog.json?cached") cachedCatalog = await cachedCatalogResponse.json(); } catch (e) { console.log("No cached catalog found."); cachedCatalog = { version: -1 }; }
if (cachedCatalog.version == catalog.version) { return; }
printMessage(""); printMessage("Preloading game files into browser cache...") progress(0, catalog.files.length);
for (let i = 0; i < catalog.files.length; i++) { let response = await fetch(catalog.files[i]); await response.blob();
progress(i + 1, catalog.files.length); }
cancelStatusTimeout(); hideStatus();
// This will add the catalog to the cache, such that // fetch("pwa_catalog.json?cached") will return it. fetch("pwa_catalog.json?uncached"); }
loadCacheWorker(); }
window.loadCache = loadCache;
function clearCache() { try { navigator.serviceWorker.controller.postMessage(["clearCache"]); } catch (e) { // pass }
localStorage.cacheVersion = -1; }
window.clearCache = clearCache;
/*************************************************************************** * Text input. **************************************************************************/
const inputDiv = document.getElementById("inputDiv"); const inputForm = document.getElementById("inputForm"); const inputPrompt = document.getElementById("inputPrompt"); const inputText = document.getElementById("inputText");
// This stores the input after enter is pressed. window.inputResult = null;
function submitInput(e) { e.preventDefault(); window.inputResult = inputText.value; }
inputForm.addEventListener("submit", submitInput);
inputDiv.addEventListener("keydown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keyup", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("keypress", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("mousemove", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mousedown", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("mouseup", function (e) { e.stopPropagation(); });
inputDiv.addEventListener("touchstart", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchend", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchcancel", function (e) { e.stopPropagation(); }); inputDiv.addEventListener("touchmove", function (e) { e.stopPropagation(); });
let inputAllow = null; let inputExclude = null;
inputText.addEventListener("input", (e) => { let newValue = "";
for (let c of inputText.value) { if (inputAllow && !inputAllow.includes(c)) { continue; }
if (inputExclude && inputExclude.includes(c)) { continue; }
newValue += c; }
if (newValue != inputText.value) { let end = inputText.selectionEnd; inputText.value = newValue; inputText.setSelectionRange(end-1, end-1); } });
function startInput(prompt, value, allow, exclude, mask) { window.inputResult = null;
inputDiv.classList.remove("hidden"); inputDiv.classList.add("visible");
while (inputPrompt.firstChild) { inputPrompt.removeChild(inputPrompt.firstChild); }
let promptText = document.createTextNode(prompt); inputPrompt.appendChild(promptText);
inputText.value = value; inputText.focus();
inputAllow = allow; inputExclude = exclude;
if (mask) { inputText.type = "password"; } else { inputText.type = "text"; }
}
window.startInput = startInput;
function endInput() { inputDiv.classList.remove("visible"); inputDiv.classList.add("hidden"); inputText.blur(); }
window.endInput = endInput;
/*************************************************************************** * Fetch. ***************************************************************************/
let fetchId = 1; let fetchResult = { };
/** * Fetch a file from the server. * * @param method The HTTP method to use. * @param url The URL to fetch. * @param inFile The file to send to the server. A string giving the file name, or null for no file. * @param outFile The file to write the response to. A string giving the file name, or null for no file. * @param inContentType The content type of the file to send to the server. A string giving the content type. Ignored if inFile is null. * @param headers A string containing a JSON object that contains the headers to send to the server. * * @return A string giving the result of the fetch. The first word is the status, which is one of "OK", "ERROR", or "PENDING", followed by the HTTP status code and status text. */ function fetchFile(method, url, inFile, outFile, inContentType, headers) {
let id = fetchId++; fetchResult[id] = "PENDING Fetch in progress.";
// Ensure headers exists and is not a copy. if (headers) { headers = JSON.parse(headers) } else { headers = { }; }
headers = { ...headers };
async function fetchFileWork() { try {
let content = ''
if (inFile) { headers["Content-Type"] = inContentType || 'application/octet-stream'; }
let options = { method: method, headers: headers};
if (inFile) { options.body = FS.readFile(inFile, { encoding: 'binary' }); }
let response = await fetch(url, options);
if (response.ok) { if (outFile) { let ab = await response.arrayBuffer(); FS.writeFile(outFile, new Uint8Array(ab)); }
fetchResult[id] = "OK " + response.status + " " + response.statusText; } else{ fetchResult[id] = "ERROR " + response.status + " " + response.statusText; }
} catch (err) { fetchResult[id] = "ERROR " + err; console.error(err); }
}
fetchFileWork();
return id; }
function fetchFileResult(id) { let result = fetchResult[id];
if (! result.startsWith("PENDING")) { delete fetchResult[id]; }
return result || "ERROR Fetch ID not found."; }
window.fetchFile = fetchFile; window.fetchFileResult = fetchFileResult;
/** * Fullscreen support. */
let lastFullscreenTime = 0;
function isFullscreen() { let now = +new Date(); return document.fullscreenElement ? 1 : 0; }
window.isFullscreen = isFullscreen;
function setFullscreen(enable) {
let current = document.fullscreenElement !== null;
if (enable == current) { return; }
let now = +new Date();
if (lastFullscreenTime + 250 > +new Date()) { return; }
lastFullscreenTime = now;
setTimeout(function () { if (enable) { let e = document.getElementsByTagName("html")[0]; e.requestFullscreen().catch(function (error) { lastFullscreenTime = now + 15000; }); } else { document.exitFullscreen(); } }, 0); }
window.setFullscreen = setFullscreen;
/*************************************************************************** * "Hidden" developer functions. **************************************************************************/
function downloadBytecode() { FSDownload('/game/cache/bytecode-311.rpyb', 'application/octet-stream'); }
window.downloadBytecode = downloadBytecode;
function traceSleep() { printConsoleOnly = true; renpy_exec('import emscripten; emscripten.TRACE = True') }
window.traceSleep = traceSleep;
function loseContext() { let e = canvas.getContext("webgl2").getExtension("WEBGL_lose_context"); e.loseContext();
setTimeout(function () { e.restoreContext(); }, 1000); }
window.loseContext = loseContext;
/*************************************************************************** * Overlay div handling. **************************************************************************/
let overlayDiv = document.getElementById("overlayDiv");
for (let eventName of ["mousedown", "mouseup", "mousemove" ]) { overlayDiv.addEventListener(eventName, function (e) { canvas.dispatchEvent(new MouseEvent(e.type, e));
if (e.type == "mouseup") { overlayDiv.remove(); }
});
};
})();filestorage/gd/freds72-poom/index.htmlAdded+1964
filestorage/gd/funnyshooter/favicon.icoAdded
filestorage/gd/funnyshooter/index.htmlAdded+99
filestorage/gd/funnyshooter/style.cssAdded+105
filestorage/gd/myosotis-web/index.htmlAdded+239
filestorage/gd/myosotis-web/index.html.symbolsAdded
filestorage/gd/myosotis-web/manifest.jsonAdded+1
filestorage/gd/myosotis-web/pwa_catalog.jsonAdded+1
filestorage/gd/myosotis-web/renpy-pre.jsAdded+976
filestorage/gd/myosotis-web/renpy.jsAdded
filestorage/gd/myosotis-web/service-worker.jsAdded+92
filestorage/gd/overboy-mobs-inc/box2d.wasm.jsAdded
filestorage/gd/overboy-mobs-inc/data.jsonAdded
filestorage/gd/overboy-mobs-inc/index.htmlAdded+35
filestorage/gd/overboy-mobs-inc/style.cssAdded+111
filestorage/gd/overboy-mobs-inc/workermain.jsAdded+1
filestorage/gd/shinpansen-coffee-maker/index.htmlAdded+747
filestorage/gd/try-froggery-myosotis/index.htmlAdded+222
filestorage/gd/try-froggery-myosotis/renpy-pre.jsAdded+976
filestorage/gd/try-froggery-myosotis/renpy.jsAdded