From 8c67f9c9b7456e072f42fbf23a90a01a92e6052c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diana=20L=C3=B3pez=20Alvas?= Date: Wed, 2 Oct 2024 17:26:05 -0300 Subject: [PATCH] adding sensor blocks --- app/services/blocks-gallery.js | 20 ++++++++++++++++++++ package.json | 2 +- translations/blocks/en-us.yaml | 4 ++++ translations/blocks/es-ar.yaml | 4 ++++ translations/blocks/pt-br.yaml | 4 ++++ 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/app/services/blocks-gallery.js b/app/services/blocks-gallery.js index b14f823d..3d1ccf46 100644 --- a/app/services/blocks-gallery.js +++ b/app/services/blocks-gallery.js @@ -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() { diff --git a/package.json b/package.json index 6d93fd57..09c6c279 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/translations/blocks/en-us.yaml b/translations/blocks/en-us.yaml index da1713c3..10c4e0f1 100644 --- a/translations/blocks/en-us.yaml +++ b/translations/blocks/en-us.yaml @@ -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 diff --git a/translations/blocks/es-ar.yaml b/translations/blocks/es-ar.yaml index bd4c8ec9..3ed33f9d 100644 --- a/translations/blocks/es-ar.yaml +++ b/translations/blocks/es-ar.yaml @@ -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 diff --git a/translations/blocks/pt-br.yaml b/translations/blocks/pt-br.yaml index 0d50af9a..87f1fb8a 100644 --- a/translations/blocks/pt-br.yaml +++ b/translations/blocks/pt-br.yaml @@ -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