Compare commits

..

2 Commits

Author SHA1 Message Date
Luna 94da8b0870 Merge branch 'main' of lavender.software:luna/p5-breakout 2021-08-04 17:20:47 -07:00
Luna 10962c4da0 Simplified some code. 2021-08-04 17:20:21 -07:00
1 changed files with 2 additions and 12 deletions

View File

@ -85,18 +85,8 @@ function draw() {
//ADDING SCORE WHEN BALL HITS TILES
if (j === 5) {
score += 1
} else if (j === 4) {
score += 2
} else if (j === 3) {
score += 3
} else if (j === 2) {
score += 4
} else if (j === 1) {
score += 5
} else if (j === 0) {
score += 6
if (j >= 0 && j <= 6) {
score += 6 - j
}
}