Skip to content

Commit

Permalink
Merge pull request #1477 from Program-AR/keepie-uppie
Browse files Browse the repository at this point in the history
Chuy haciendo jueguito
  • Loading branch information
danielferro69 authored Oct 20, 2023
2 parents 89f7adb + 4ce809d commit fcb427b
Show file tree
Hide file tree
Showing 14 changed files with 139 additions and 5 deletions.
30 changes: 30 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,30 @@ export default Service.extend({
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"rebotarPulpito", animacionInteractuadoMientras: "desaparecer", "mensajeError": "Acá no hay una pelota"}',
})

this.crearBloqueAccion('RevolearPulpito', 'volleyRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"revolearPulpito", "mensajeError": "Acá no hay una pelota", idTransicion: "revolearPulpito"}',
})

this.crearBloqueAccion('RebotarPiePulpito', 'bounceFootRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"rebotarPulpito", "mensajeError": "Acá no hay una pelota", idTransicion: "rebotarPiePulpito"}',
})

this.crearBloqueAccion('RecogerPulpito', 'pickRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion: "recoger", animacionInteractuadoMientras: "desaparecer", "mensajeError": "Acá no hay una pelota", idTransicion: "recoger"}',
})

this.crearBloqueAccion('RebotarUnaVezPingPong', 'bouncePingPong', {
icono: 'icono.paleta.png',
comportamiento: 'PingPongAnimado',
argumentos: '{mensaje: "Rebotando...", etiqueta: "PingPong", nombreAnimacion:"usarPaletaUnaVez", animacionInteractuadoMientras: "desaparecer" }',
});

this.crearBloqueAccion('DespertarLuciernaga', 'wakeUpFirefly', {
icono: 'icono.luciernaga-prendida.png',
comportamiento: 'SacarFoto',
Expand Down Expand Up @@ -554,6 +578,12 @@ export default Service.extend({
argumentos: '{direccion: [1,0], distancia: 50, idTransicion: "avanzar"}',
});

this.crearBloqueAccion('Retroceder', 'back', {
icono: 'icono.izquierda.png',
comportamiento: 'MovimientoAnimado',
argumentos: '{direccion: [-1,0], distancia: 50, idTransicion: "retroceder"}',
});

this.crearBloqueAccion('Soniar', 'dream', {
icono: 'icono.soniar.png',
comportamiento: 'Pensar',
Expand Down
18 changes: 18 additions & 0 deletions app/utils/staticData/desafios.js
Original file line number Diff line number Diff line change
Expand Up @@ -2764,6 +2764,24 @@ export const desafios = [
</xml>`
},
{
id: 'nuevo2',
nombre: 'ChuyHaciendoJueguito',
escena: 'ChuyHaciendoJueguito',
bloques: ['Avanzar', 'Retroceder', 'RecogerPulpito', 'RebotarPiePulpito', 'RevolearPulpito', 'Repetir', 'Procedimiento'],
expectations: {
simpleRepetition: false
}
},
{
id: 'nuevo3',
nombre: 'NoMeCansoDeRebotar',
escena: 'NoMeCansoDeRebotar',
bloques: ['RebotarUnaVezPingPong', 'Procedimiento', 'Repetir'],
expectations: {
decomposition: false
}
},
{
id: 'nuevo4',
nombre: 'ManicEnElCielo',
escena: `new EscenaManic("\
Expand Down
2 changes: 2 additions & 0 deletions app/utils/staticData/grupos.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ export const grupos = [
{
id: 'grupoTemporal',
desafioIds: [
'nuevo2',
'nuevo3',
'nuevo4',
'nuevo5',
'nuevo6',
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"creador-de-desafios-pilasbloques": "^1.0.1",
"mulang": "^6.0.5",
"pilas-bloques-ember-intl": "^1.1.2",
"pilas-bloques-exercises": "1.4.12",
"pilas-bloques-exercises": "1.4.13",
"pilasweb": "^0.5.0",
"proceds-blockly": "^1.1.0",
"ramda": "^0.28.0",
Expand Down
2 changes: 1 addition & 1 deletion public/pilas.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<head>
<script src="libs/pilasweb.js?v=0.5.0"></script>
<script src="libs/pilas-bloques-exercises.js?v=1.4.7"></script>
<script src="libs/pilas-bloques-exercises.js?v=1.4.13"></script>
</head>

</html>
22 changes: 22 additions & 0 deletions tests/integration/desafios/ChuyHaciendoJueguito-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions tests/integration/desafios/NoMeCansoDeRebotar-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions translations/blocks/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lie: Lie down
standUp: Stand up
return: Return
advance: Move forward
back: Move backward
dream: Dream
jump: Jump
goToLeftBorder: Go to left border
Expand Down Expand Up @@ -51,6 +52,9 @@ blowUpBallon: Pinch the balloon
kickBall: Kick the ball
kickFootballBall: Kick the football ball
bounceRubberBall: Bounce the rubber ball
volleyRubberBall: Volley the rubber ball
pickRubberBall: Pick the rubber ball
bounceFootRubberBall: Bounce with foot the rubber ball
move1Km: Move 1 Km forward
changeLightColor: Change spotlight color
moveNextLight: Move to next spotlight
Expand Down
4 changes: 4 additions & 0 deletions translations/blocks/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lie: Acostarse
standUp: Pararse
return: Volver
advance: Avanzar
back: Retroceder
dream: Soñar
jump: Saltar
goToLeftBorder: Ir al borde izquierdo
Expand Down Expand Up @@ -51,6 +52,9 @@ blowUpBallon: Explotar globo
kickBall: Patear pelota
kickFootballBall: Patear pelota de fútbol
bounceRubberBall: Rebotar pelota pulpito
volleyRubberBall: Revolear pelota pulpito
pickRubberBall: Agarrar pelota pulpito
bounceFootRubberBall: Rebotar con el pie la pelota pulpito
move1Km: Avanzar 1 Km
changeLightColor: Cambiar color del foco
moveNextLight: Pasar al siguiente foco
Expand Down
4 changes: 4 additions & 0 deletions translations/blocks/pt-br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lie: 'Deitar-se '
standUp: Levantar-se
return: Retornar
advance: Avançar
back: Votar
dream: Sonhar
jump: Saltar
goToLeftBorder: Ir para a borda esquerda
Expand Down Expand Up @@ -51,6 +52,9 @@ blowUpBallon: Explodir balão
kickBall: Chutar bola
kickFootballBall: Chutar bola de futebol
bounceRubberBall: Chutar bola pulpito
volleyRubberBall: Voleio uma bola pulpito
pickRubberBall: Pegar uma bola pulpito
bounceFootRubberBall: Chutar com ó pe uma bola pulpito
move1Km: Avançar 1 Km
changeLightColor: Mudar a cor da lâmpada
moveNextLight: Ir para a próxima lâmpada
Expand Down
9 changes: 9 additions & 0 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,15 @@ model:
Tenemos un programa ya hecho para que toto lea la provincia que está al sur de rio negro.
Fijate si funciona o qué hay que arreglar.
clue: Con el botón 'PASO' Toto puede ir realizando las instrucciones una por una
'nuevo2':
title: Chuy keepie-uppie
description: 'Make Chuy take a step forward, warm up moving back and forth, pick up the rubber ball, do keepie-uppie flipping the ball and bouncing it with the foot and finally come back to the original place.'
clue: You can create new actions in _My procedures_ by defining new blocks including other actions.
'nuevo3':
title: I love bouncing the ping pong ball
description: |
Help Chuy bounce the ping pong ball 30 times non-stop. Clue: you can solve this challenge with less than 30 blocks.
clue: The Repeat block allows you to select the number of times you want to repeat a sequence of actions. This is called "Simple repetition".
'nuevo4':
title: Mañic in sky
description: |
Expand Down
9 changes: 9 additions & 0 deletions translations/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,15 @@ model:
Tenemos un programa ya hecho para que toto lea la provincia que está al sur de rio negro.
Fijate si funciona o qué hay que arreglar.
clue: Con el botón 'PASO' Toto puede ir realizando las instrucciones una por una
'nuevo2':
title: Chuy haciendo jueguito
description: 'Hacé que Chuy avance un paso, entre en calor avanzando y retrocediendo, recoja la pelota pulpito, haga jueguito revoleando la pelota y rebotandola con el pie y por ultimo vuelva a su lugar.'
clue: Se pueden crear nuevas acciones en Procedimientos definiendo nuevos bloques que incluyan otras acciones.
'nuevo3':
title: No me canso de rebotar
description: |
Ayudá a Chuy a hacer rebotar la pelota de ping pong 30 veces seguidas. Pista: se puede resolver con menos de 30 bloques.
clue: El bloque Repetir permite elegir la cantidad de veces que se desea repetir una secuencia de acciones. Esto se llama "Repetición simple".
'nuevo4':
title: Mañic en el cielo
description: |
Expand Down
9 changes: 9 additions & 0 deletions translations/pt-br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,15 @@ model:
Já temos um programa feito para o Toto ler a província que fica ao sul do Rio Negro.
Veja se funciona ou o que precisa ser corrigido.
clue: A província é Chubut. Com o botão 'PASSO' o Toto pode executar as instruções uma a uma
'nuevo2':
title: Chuy joga uma embaixadinha
description: Faça que Chuy dê um passo à frente, aqueça-se movendo-se para frente e para trás, pegue a bola pulpito, jogue uma embaixadinha virando a bola e quicando-a com o pé e, finalmente, retorne ao seu lugar.
clue: Novas ações podem ser criadas em Procedimentos definindo novos blocos que incluem outras ações.
'nuevo3':
title: Eu adoro quicar a bola de pingue-pongue
description: |
Ajude Chuy a quicar a bola de pingue-pongue 30 vezes seguidas. Dica: pode ser resolvido com menos de 30 blocos.
clue: O bloco Repetir permite que você escolha o número de vezes que deseja repetir uma sequência de ações. Isso é chamado de "Repetição Simples".
'nuevo4':
title: Mañic en el cielo
description: |
Expand Down

0 comments on commit fcb427b

Please sign in to comment.