Skip to content

Commit

Permalink
Merge pull request #119 from raspberrypilearning/draft
Browse files Browse the repository at this point in the history
Fix translation
  • Loading branch information
sashamishcheriakova authored Jun 20, 2024
2 parents 249f430 + 182a345 commit f489a3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pt-BR/code/dont_collide_clean_car_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def desenhar_obstaculos():

seed(123456789)

if frame_count % width == width - 1 e nivel < 10:
if frame_count % width == width - 1 and nivel < 10:
nivel += 1
print('Você atingiu o nível', nivel)

for i in range (6 + nível):
for i in range (6 + nivel):
ob_x = randint(0, width) - (frame_count * nivel)
ob_x = randint(0, height)
ob_y = randint(0, height)
ob_x %= width # Envolve toda a largura
text('💩', ob_x, ob_y)

Expand Down
10 changes: 5 additions & 5 deletions pt-BR/code/dont_collide_dodge_asteroids_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def desenhar_obstaculos():
nivel += 1
print('Você atingiu o nível', nivel)

for i in range (6 + nível):
for i in range(6 + nivel):
ob_x = randint(0, width)
ob_y = randint(0, height) + (frame_count * nivel)
ob_x %= height # Envolve toda a altura
ob_y %= height # Envolve toda a altura
push_matrix()
translate(ob_x, ob_y)
rotate(degrees(randint(1, 359)+frame_count / 1000))
Expand All @@ -37,7 +37,7 @@ def desenhar_jogador():
jogador_y = int(height * 0.8)
jogador_x = mouse_x

colide = get(jogador_x +, jogador_y).hex
colide = get(jogador_x, jogador_y).hex
colide2 = get(jogador_x - 18, jogador_y + 17).hex
colide3 = get(jogador_x + 18, jogador_y + 17).hex
colide4 = get(jogador_x, jogador_y + 25).hex
Expand Down Expand Up @@ -106,8 +106,8 @@ def setup():
text_size(40)
text_align(CENTER, TOP) # posição em torno do centro, topo

rocket = load_image('rocket.png')
rock = load_image('moon.png')
foguete = load_image('rocket.png')
rocha = load_image('moon.png')
random_seed = randint(0, 1000000)

def draw():
Expand Down
2 changes: 1 addition & 1 deletion pt-BR/code/dont_collide_dont_pop_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def desenhar_obstaculos():
nivel += 1
print('Você atingiu o nível', nivel)

for i in range (6 + nível):
for i in range (6 + nivel):
ob_x = randint(0, height)
ob_y = randint(0, height) + (frame_count * nivel)
ob_y %= height # Envolve toda a altura
Expand Down

0 comments on commit f489a3e

Please sign in to comment.