Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlucena authored Jan 30, 2017
1 parent 28b5284 commit 1dfe120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exemplo/CataEstrela.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object CataEstrela extends App {

def desenhe() = {
val imagem = imagens((Relogio.milisegundos / 100 + i) % imagens.tamanho)
imagem.desenhe_centralizado(x, y, 1, 0)
imagem.desenhe_centralizado(x, y, 1)
}
}

Expand All @@ -81,7 +81,7 @@ object CataEstrela extends App {
estado match {
case "INICIO" => desenhe_inicio
case "JOGANDO" => desenhe_jogando
case "FIM" | _ => desenhe_fim
case _ => desenhe_fim
}
}

Expand Down Expand Up @@ -125,7 +125,7 @@ object CataEstrela extends App {

// Estado: fim do jogo
def desenhe_fim() = {
val msg = s"FIM DE JOGO, VOCÊ FEZ ${nave.placar} PONTOS"
val msg = s"FIM DE JOGO, VOCE FEZ ${nave.placar} PONTOS"
fonte.desenhe_centralizado(msg, jogo.largura / 2, jogo.altura / 2, 3, Cor.AMARELO)
}

Expand Down

0 comments on commit 1dfe120

Please sign in to comment.