Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5b3ede

Browse files
author
renzon
committed
1 parent c65ace8 commit c5b3ede

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

atores.py

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def colidir_com_chao(self):
103103
"""
104104
if self.y <= 0:
105105
self.status = DESTRUIDO
106-
self.caracter = self._caracter_destruido
107106

108107
def _calcular_posicao_horizontal(self, delta_t):
109108
self.x = self._x_inicial + self.velocidade_escalar * delta_t * math.cos(self._angulo_de_lancamento)

placa_grafica_tkinter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from os import path
77
import atores
88

9-
from fase import Fase, EM_ANDAMENTO
9+
from fase import Fase, EM_ANDAMENTO, VITORIA
1010
from atores import PassaroVermelho, PassaroAmarelo, Porco, Obstaculo
1111

1212
ALTURA_DA_TELA = 600 # px
@@ -57,10 +57,10 @@ def _animar():
5757
if tempo <= 0:
5858
tempo = 0
5959
delta_t /= -multiplicador_rebobinar
60-
if fase.status()!=EM_ANDAMENTO:
60+
if fase.status() != EM_ANDAMENTO:
6161
camada_de_atores.create_image(162, 55, image=PYTHONBIRDS_LOGO, anchor=NW)
6262
camada_de_atores.create_image(54, 540, image=MENU, anchor=NW)
63-
if 'ganhou' in fase.status():
63+
if fase.status() == VITORIA:
6464
img = VOCE_GANHOU
6565
else:
6666
img = VOCE_PERDEU

0 commit comments

Comments
 (0)