Skip to content

Commit

Permalink
new Sensor Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
danielferro69 committed Sep 28, 2023
1 parent 4973f16 commit 56923ef
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,16 @@ export default Service.extend({
funcionSensor: 'tocandoFlechaDerecha()',
});

this.crearBloqueSensor('TocandoArriba', 'canMoveUp', {
icono: 'icono.arriba.png',
funcionSensor: 'tocandoFlechaArriba()',
});

this.crearBloqueSensor('TocandoIzquierda', 'canMoveLeft', {
icono: 'icono.izquierda.png',
funcionSensor: 'tocandoFlechaIzquierda()',
});

this.crearBloqueSensor('TocandoFinCamino', 'reachedGoal', {
icono: 'icono.finCamino.png',
funcionSensor: 'alFinalDelCamino()',
Expand Down Expand Up @@ -1325,6 +1335,16 @@ export default Service.extend({
funcionSensor: 'puedeMoverseDerecha()',
});

this.crearBloqueSensor('PuedeMoverArriba', 'canMoveUp', {
icono: 'icono.arriba.png',
funcionSensor: 'puedeMoverseArriba()',
});

this.crearBloqueSensor('PuedeMoverIzquierda', 'canMoveLeft', {
icono: 'icono.izquierda.png',
funcionSensor: 'puedeMoverseIzquierda()',
});

this.crearBloqueSensor('HayCharco', 'puddleHere', {
icono: 'icono.charco.png',
funcionSensor: 'hayEnEscena("Charco")',
Expand Down
2 changes: 2 additions & 0 deletions translations/blocks/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ atColumnEnd: Am I at the end of the column?
currentColumnLength: Current column length
canMoveDown: Can I move down?
canMoveRight: Can I move to the right?
canMoveUp: Can I move up?
canMoveLeft: Can I move to the left?
reachedGoal: Did I reach the finish line?
cheeseHere: Is there cheese here?
lampHere: Is there a spotlight here?
Expand Down
2 changes: 2 additions & 0 deletions translations/blocks/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ atColumnEnd: ¿Estoy al final de la columna?
currentColumnLength: Largo de la columna actual
canMoveDown: ¿Puedo mover abajo?
canMoveRight: ¿Puedo mover a la derecha?
canMoveUp: ¿Puedo mover arriba?
canMoveLeft: ¿Puedo mover a la izquierda?
reachedGoal: ¿Llegó a la meta?
cheeseHere: ¿Hay queso acá?
lampHere: ¿Hay lamparita acá?
Expand Down
2 changes: 2 additions & 0 deletions translations/blocks/pt-br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ atColumnEnd: Estou no final da coluna?
currentColumnLength: Comprimento da coluna atual
canMoveDown: Posso mover para baixo?
canMoveRight: Posso mover para direita?
canMoveUp: Posso mover para acima?
canMoveLeft: Posso mover para esquerda?
reachedGoal: Alcançou a meta?
cheeseHere: Há queijo aqui?
lampHere: Há uma lâmpada aqui?
Expand Down

0 comments on commit 56923ef

Please sign in to comment.