updated app.js again

idk what's going on. why are my changes being reverted.
pull/2676/head
eleanor 2023-04-04 11:39:17 -05:00 committed by GitHub
parent 8d14562be3
commit 1d095bc205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
//230404
require("FontHaxorNarrow7x17").add(Graphics);
require("FontDylex7x13").add(Graphics);
@ -24,13 +26,13 @@ var bgimg = {
//TAP ALL THE THINGS
Bangle.on('touch', (n, e) => {
// <88, top
if (e.x > offset && e.y < height) { //bar
clearText();
if (e.x < width && e.y > offset) {
g.setColor(0,0,0);
g.setFont("Dylex7x13",2).setFontAlign(0,0).drawString(getEncour(), width/2, height/2);
setInterval(loader,3000);
setInterval(draw,3000);
}
});
//getters
function getRandomInt(max) {
return Math.floor(Math.random() * max);
@ -39,7 +41,7 @@ function getEncour(){ //return string
let rando = getRandomInt(encourage.length);
return encourage[rando];
}
//everymine
function queueDraw() {
if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = setTimeout(function() {