fix some non-conformers

master
Jason Dekarske 2022-05-06 12:58:28 -07:00
parent bcb380c970
commit 4c4cf0ddf7
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ function scrollX(){
gfx.clearRect(0,gfx.getHeight()*(1/4),gfx.getWidth(),0); gfx.clearRect(0,gfx.getHeight()*(1/4),gfx.getWidth(),0);
gfx.scroll(0,gfx.getHeight()/4); gfx.scroll(0,gfx.getHeight()/4);
score++; score++;
if(typeof(m) != undefined && score>0){ if(typeof m !== 'undefined' && score>0){
clearInterval(m); clearInterval(m);
m = setInterval(scrollY,Math.abs(100/score+15-0.1*score));} m = setInterval(scrollY,Math.abs(100/score+15-0.1*score));}
gfx.setColor(1,1,1); gfx.setColor(1,1,1);

View File

@ -368,8 +368,8 @@ class TextBox {
// x and y are the center points // x and y are the center points
this.x = x; this.x = x;
this.y = y; this.y = y;
this.text = (typeof text !== undefined) ? text : "Default"; this.text = text || "Default";
this.col = (typeof col !== undefined) ? col : red; this.col = col || red;
// console.log(`Constr TextBox ${this.text} -> Center: (${this.x}, ${this.y}) | Col ${this.col}`); // console.log(`Constr TextBox ${this.text} -> Center: (${this.x}, ${this.y}) | Col ${this.col}`);
} }