add byte beasties escape webtoy

This commit is contained in:
2024-04-29 23:42:44 -04:00
parent c4d3da4dc2
commit 4914e72a3e
21 changed files with 889 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
// @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0
/****************************************************************************
* Planar Vagabond's Guide to the Multiverse (planarvagabond.com)
*
* Copyright 2023-2024 Eric Woodward
* Source released under CC0 Public Domain License v1.0
* https://www.planarvagabond.com/licenses/cc0/
* http://creativecommons.org/publicdomain/zero/1.0/
****************************************************************************/
import { startGame } from "./bbe.js";
export default (() => {
// we load this library as a module to guarantee baseline ES6 functionality
// Indicate JS is loaded
document.documentElement.className =
document.documentElement.className.replace("no-js", "js");
setTimeout(() => {
const canvas = document.createElement("canvas"),
contentDiv = document.getElementById("game");
canvas.setAttribute("width", "375");
canvas.setAttribute("height", "667");
canvas.setAttribute("id", "game");
contentDiv.appendChild(canvas);
startGame(canvas);
}, 1);
})();
// @license-end