diff options
author | Christ van Willegen <cvwillegen@gmail.com> | 2015-04-08 09:46:42 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2015-04-19 12:23:22 +0200 |
commit | ea334cf650b31cda32066eef2c0541b02270ce98 (patch) | |
tree | 993a0d288d73cb380f059b791a4a5409de11a92d | |
parent | 06e76a375b1a7bb498f2c0dbfc46dc9647309a90 (diff) | |
download | rockbox-ea334cf.tar.gz rockbox-ea334cf.zip |
Rename 'expanded' to 'expended'. Was this a typo?
Change-Id: I2feaee4225f04e3b93f8ccde555090437238ee0f
-rw-r--r-- | apps/plugins/boomshine.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua index 79b28c6776..1729cbbf8c 100644 --- a/apps/plugins/boomshine.lua +++ b/apps/plugins/boomshine.lua @@ -212,7 +212,7 @@ function random_color() end function start_round(level, goal, nrBalls, total) - local player_added, score, exit, nrExpandedBalls = false, 0, false, 0 + local player_added, score, exit, nrExpendedBalls = false, 0, false, 0 local balls, explodedBalls = {}, {} local cursor = Cursor:new() @@ -257,7 +257,7 @@ function start_round(level, goal, nrBalls, total) for _, explodedBall in ipairs(explodedBalls) do if ball:checkHit(explodedBall) then score = score + 100*level - nrExpandedBalls = nrExpandedBalls + 1 + nrExpendedBalls = nrExpendedBalls + 1 table.insert(explodedBalls, ball) table.remove(balls, i) break @@ -280,7 +280,7 @@ function start_round(level, goal, nrBalls, total) rb.lcd_clear_display() set_foreground(DEFAULT_FOREGROUND_COLOR) - draw_positioned_string(0, 0, string.format("%d balls expanded", nrExpandedBalls)) + draw_positioned_string(0, 0, string.format("%d balls expended", nrExpendedBalls)) draw_positioned_string(0, 1, string.format("Level %d", level)) draw_positioned_string(1, 1, string.format("%d level points", score)) draw_positioned_string(1, 0, string.format("%d total points", total+score)) @@ -309,7 +309,7 @@ function start_round(level, goal, nrBalls, total) end end - return exit, score, nrExpandedBalls + return exit, score, nrExpendedBalls end -- Helper function to display a message @@ -361,11 +361,11 @@ while levels[idx] ~= nil do display_message(rb.HZ*2, "Level %d: get %d out of %d balls", idx, goal, nrBalls) - local exit, score, nrExpandedBalls = start_round(idx, goal, nrBalls, highscore) + local exit, score, nrExpendedBalls = start_round(idx, goal, nrBalls, highscore) if exit then break -- Exiting.. else - if nrExpandedBalls >= goal then + if nrExpendedBalls >= goal then display_message(rb.HZ*2, "You won!") idx = idx + 1 highscore = highscore + score |