wow
This commit is contained in:
@@ -14,17 +14,17 @@ function rechnungMoven(speed){
|
||||
if(nextTop > 800){
|
||||
rechnungen.style.top = "1px";
|
||||
rechnungenTop = 1;
|
||||
rechnungenSpawn();
|
||||
rechnungenSpawn(100);
|
||||
}else{
|
||||
rechnungenTop = nextTop;
|
||||
}
|
||||
}
|
||||
function rechnungenSpawn(){
|
||||
function rechnungenSpawn(maxzahl){
|
||||
let index = Math.floor(Math.random()*rechenzeichen.length);
|
||||
let randomZahl = Math.floor(Math.random()*20);
|
||||
let randomZahl = Math.floor(Math.random()*maxzahl);
|
||||
rechnung1Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
||||
index = Math.floor(Math.random()*rechenzeichen.length);
|
||||
randomZahl = Math.floor(Math.random()*20);
|
||||
randomZahl = Math.floor(Math.random()*maxzahl);
|
||||
rechnung2Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
||||
}
|
||||
setInterval(()=>{
|
||||
|
Reference in New Issue
Block a user