asda
This commit is contained in:
parent
33e48cb2c3
commit
a3d1d1bc5b
@ -4,4 +4,24 @@ function fillArray(name, number, playerAnim)
|
||||
for (let i = 1 ; i <= number ; i++) {
|
||||
playerAnim[i-1] = "pics/" + name + i + ".png";
|
||||
}
|
||||
}
|
||||
function addToScore(currentScore,zahl,rechenOperator){
|
||||
let ergebnis;
|
||||
if(rechenOperator == "Plus"){
|
||||
ergebnis = currentScore + zahl;
|
||||
}
|
||||
if(rechenOperator == "Minus"){
|
||||
ergebnis = currentScore - zahl;
|
||||
}
|
||||
if(rechenOperator == "Mal"){
|
||||
ergebnis = currentScore * zahl;
|
||||
}
|
||||
if(rechenOperator == "geteilt"){
|
||||
ergebnis = currentScore / zahl;
|
||||
}
|
||||
return ergebnis;
|
||||
}
|
||||
function addOneToStreak(win){
|
||||
win++;
|
||||
return win;
|
||||
}
|
Loading…
Reference in New Issue
Block a user