Skip to content

Commit

Permalink
Correct spelling mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias.lapierre committed Sep 24, 2020
1 parent 34f740f commit a3b7810
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ object Constants {
const val INITIAL_DELAY_BEFORE_ADDING_ENEMY_SHIP_IN_SECONDS = 5L

/**
* Draw change to win the "Space ship upgrate" bonus.
* Draw change to win the "Space ship upgrade" bonus.
*/
const val DRAW_CHANCE_BOLT = 20

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Drawables(
fun getExplosionFrame(frame: Int): Drawable = get("explode_$frame".hashCode())

/**
* Power-up. Space ship upgrate.
* Power-up. Space ship upgrade.
*/
fun getPowerUpBolt() = get(R.drawable.powerup_bolt)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class GameProcessor(
&& !powerUp.isConsumed) {
powerUp.isConsumed = true
when (powerUp.type) {
PowerUpSprite.TYPE_BOLT -> player.upgrate()
PowerUpSprite.TYPE_BOLT -> player.upgrade()
PowerUpSprite.TYPE_SHIELD -> player.life += (Constants.PLAYER_MAX_LIFE * 0.2f).toInt()
PowerUpSprite.TYPE_STAR -> points += BONUS_POINTS
else -> points += BONUS_POINTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ class PlayerSprite(
}

/**
* Upgrate the space ship.
* Upgrade the space ship.
*/
fun upgrate() {
fun upgrade() {
type++
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PowerUpSprite(

companion object {
/**
* Space ship upgrate.
* Space ship upgrade.
*/
const val TYPE_BOLT = 0

Expand Down

0 comments on commit a3b7810

Please sign in to comment.