This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "js13kbuild", | |
"scripts": { | |
"start": "rollup -c -w", | |
"build": "rollup -c && cd build && html-minifier --collapse-whitespace --remove-tag-whitespace --minify-css true dev.html > index.html && advzip -a4 build.zip index.html", | |
}, | |
"devDependencies": { | |
"@rollup/plugin-image": "^2.0.5", | |
"@rollup/plugin-typescript": "^5.0.2", | |
"@types/node": "^14.0.27", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData(id, count, flip) { | |
var data = ""; | |
switch (flip) { | |
case 1: data = "|"; break; | |
case 2: data = "-"; break; | |
case 3: data = "+"; break; | |
} | |
if (id && count === 1) { | |
return data + id.toString(36).toUpperCase(); | |
} |