add byte beasties escape webtoy
This commit is contained in:
32
src/assets/_root/webtoys/bbe/scripts/main.js
Normal file
32
src/assets/_root/webtoys/bbe/scripts/main.js
Normal 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
|
||||
Reference in New Issue
Block a user