Skip to content

Commit

Permalink
adding sensor blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Oct 2, 2024
1 parent c182528 commit 8c67f9c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
20 changes: 20 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,26 @@ export default Service.extend({
funcionSensor: 'tocando("Trofeo")',
});

this.crearBloqueSensor('BordeDerecho', 'rightBorder', {
icono: 'icono.derecha.png',
funcionSensor: 'enBordeDerecho()',
});

this.crearBloqueSensor('BordeIzquiero', 'leftBorder', {
icono: 'icono.izquierda.png',
funcionSensor: 'enBordeIzquierdo()',
});

this.crearBloqueSensor('BordeArriba', 'topBorder', {
icono: 'icono.arriba.png',
funcionSensor: 'enBordeArriba()',
});

this.crearBloqueSensor('BordeAbajo', 'bottomBorder', {
icono: 'icono.abajo.png',
funcionSensor: 'enBordeAbajo()',
});

},

_definirBloquesQueRepresentanValores() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"creador-de-desafios-pilasbloques": "^1.0.1",
"mulang": "^6.0.5",
"pilas-bloques-ember-intl": "^1.1.2",
"pilas-bloques-exercises": "1.4.30",
"pilas-bloques-exercises": "1.4.34",
"pilasweb": "^0.5.0",
"proceds-blockly": "^1.1.0",
"ramda": "^0.28.0",
Expand Down
4 changes: 4 additions & 0 deletions translations/blocks/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ footBallHere: Is there a soccer ball here?
paddleHere: Is there a paddle here?
chargerHere: Is there a charger here?
trophyHere: Is there a trophy here?
leftBorder: Am I on the left edge?
rightBorder: Am I on the right edge?
bottomBorder: Am I on the bottom edge?
topBorder: Am I on the top edge?
saladBowlHere: Is there a salad bowl here?
pickTrophy: Pick trophy
pickPaddle: Pick paddle
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 @@ -153,6 +153,10 @@ footBallHere: ¿Hay una pelota de fútbol acá?
paddleHere: ¿Hay una paleta acá?
chargerHere: ¿Hay un cargador acá?
trophyHere: ¿Hay un trofeo acá?
leftBorder: ¿Estoy en el borde de la izquierda?
rightBorder: ¿Estoy en el borde de la derecha?
bottomBorder: ¿Estoy en el borde de abajo?
topBorder: ¿Estoy en el borde de arriba?
saladBowlHere: ¿Hay una ensaladera acá?
pickTrophy: Recoger trofeo
pickPaddle: Recoger paleta
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 @@ -159,6 +159,10 @@ holdPaper: Segurar papel
fillBin: Encher taco
chargerHere: Há um cargador aqui?
trophyHere: Há um trofeo aqui?
leftBorder: Estou na borda esquerda?
rightBorder: Estou na borda direita?
bottomBorder: Estou na borda inferior?
topBorder: Estou na borda superior?
saladBowlHere: Há uma tigela de salada aqui?
categories:
primitives: Primitivas
Expand Down

0 comments on commit 8c67f9c

Please sign in to comment.