Skip to content

Commit 2524911

Browse files
committed
Corrigido bug da string de pontos fora da tela
1 parent 7247167 commit 2524911

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

bouncingBall v1.0.rar

6.8 KB
Binary file not shown.

bouncingBall.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def VerifyBorderTabua(self):
124124
"NÍVEL 5", ##5
125125
"NÍVEL 6"] ##6 #List Type
126126

127-
pontosStrNivel = niveis[0] + ' --- VEL_TABUA = 2 --- VEL_BOLA = 200 --- PONTOS A PERDER: -5 '
127+
pontosStrNivel = niveis[0] + ' | VEL_TABUA = 2 | VEL_BOLA = 200 | PERDER: -5 '
128128
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
129129

130130
def verifyBorderBall():
@@ -178,43 +178,43 @@ def levelNotation():
178178
global levelNumber
179179

180180
if pontos < 20:
181-
pontosStrNivel = niveis[0] + ' --- VEL_TABUA = 2 --- VEL_BOLA = 200 --- PONTOS A PERDER: -5 '
181+
pontosStrNivel = niveis[0] + ' | VEL_TABUA = 2 | VEL_BOLA = 200 | PERDER: -5 '
182182
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
183183
velocidadeX = 2
184184
velocidadeBola = clock.tick(200)
185185
levelNumber = str(velocidadeX - 2)
186186
if pontos > 20 and pontos < 100:
187-
pontosStrNivel = niveis[1] + ' --- VEL_TABUA = 3 --- VEL_BOLA = 220 --- PONTOS A PERDER: -30 '
187+
pontosStrNivel = niveis[1] + ' | VEL_TABUA = 3 | VEL_BOLA = 220 | PERDER: -30 '
188188
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
189189
velocidadeX = 3
190190
velocidadeBola = clock.tick(220)
191191
levelNumber = str(velocidadeX - 2)
192192
if pontos > 100 and pontos < 200:
193-
pontosStrNivel = niveis[2] + ' --- VEL_TABUA = 4 --- VEL_BOLA = 240 --- PONTOS A PERDER: -70 '
193+
pontosStrNivel = niveis[2] + ' | VEL_TABUA = 4 | VEL_BOLA = 240 | PERDER: -70 '
194194
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
195195
velocidadeX = 4
196196
velocidadeBola = clock.tick(240)
197197
levelNumber = str(velocidadeX - 2)
198198
if pontos > 200 and pontos < 400:
199-
pontosStrNivel = niveis[3] + ' --- VEL_TABUA = 5 --- VEL_BOLA = 260 --- PONTOS A PERDER: -150 '
199+
pontosStrNivel = niveis[3] + ' | VEL_TABUA = 5 | VEL_BOLA = 260 | PONTOS A PERDER: -150 '
200200
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
201201
velocidadeX = 5
202202
velocidadeBola = clock.tick(260)
203203
levelNumber = str(velocidadeX - 2)
204204
if pontos > 400 and pontos < 800:
205-
pontosStrNivel = niveis[4] + ' --- VEL_TABUA = 6 --- VEL_BOLA = 280 --- PONTOS A PERDER: -350'
205+
pontosStrNivel = niveis[4] + ' | VEL_TABUA = 6 | VEL_BOLA = 280 | PONTOS A PERDER: -350'
206206
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
207207
velocidadeX = 6
208208
velocidadeBola = clock.tick(280)
209209
levelNumber = str(velocidadeX - 2)
210210
if pontos > 800 and pontos < 1000:
211-
pontosStrNivel = niveis[5] + ' --- VEL_TABUA = 7 --- VEL_BOLA = 300 --- PONTOS A PERDER: -500'
211+
pontosStrNivel = niveis[5] + ' | VEL_TABUA = 7 | VEL_BOLA = 300 | PONTOS A PERDER: -500'
212212
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
213213
velocidadeX = 7
214214
velocidadeBola = clock.tick(300)
215215
levelNumber = str(velocidadeX - 2)
216216
if pontos > 1000 and pontos < 2000:
217-
pontosStrNivel = niveis[6] + ' --- VEL_TABUA = 7 --- VEL_BOLA = 320 --- PONTOS A PERDER: -700'
217+
pontosStrNivel = niveis[6] + ' | VEL_TABUA = 7 | VEL_BOLA = 320 | PONTOS A PERDER: -700'
218218
pontosRenderObjNivel = pygame.font.Font.render(GetFontSystem, pontosStrNivel, False, white)
219219
velocidadeX = 8
220220
velocidadeBola = clock.tick(320)
@@ -253,5 +253,5 @@ def levelNotation():
253253
tabua.move(moveAct)
254254
screen.blit(pontosRenderObj, [0,0])
255255
screen.blit(ball, ballrect)
256-
screen.blit(pontosRenderObjNivel, [160, 0])
256+
screen.blit(pontosRenderObjNivel, [0, 18])
257257
tela.atualizarTela()

0 commit comments

Comments
 (0)