xxxxxxxxxx
36
var quescnt = 0
var lagYN = 0
var error
function preload(){
error = loadSound("error.mp3")
}
function setup() {
createCanvas(400, 400);
frameRate(1)
if (prompt("TYPE LAG (no caps)!") == "lag"){
quescnt = 1
lag()
frameRate(60)
}
}
function lag(){
if (lagYN < 600000){
error.play()
lagYN ++
lag()
}
}
function draw() {
background(220);
console.log(frameRate())
if (quescnt == 1){
lag()
}
else if (quescnt != 1){
text("restart the program u nub and type ->'lag'<- (l a g)", 50, 50)
}
}