SlideShare une entreprise Scribd logo
1  sur  5
Télécharger pour lire hors ligne
VIDEOXOGO “OS ROBOTS APAGALUMES”
INSTRUCIÓNS
Con Scratch programamos este videoxogo dun labirinto.
Moverase o noso personaxe, "o lume" , por un labirinto con obstáculos, "os robots
apagalumes" que se desprazarán seguindo un patrón.
O obxectivo consiste en esquivar o lume e evitar que chegue á saída marcada como
meta (bosque verde) e provocar un incendio. Se nalgún momento tocamos un
obstáculo, volveremos ao principio do videoxogo.
Escenario: o labirinto
En primeiro lugar, engadimos o labirinto no escenario coa súa marca de saída. Dita
marca imos realizala co editor de debuxo de Scratch, eliximos unha cor verde e
debuxamos unha árbore que simboliza o bosque, xa que o utilizaremos como sensor
para detectar que se chegou á meta.
Personaxe principal
Neste videoxogo eliximos "o lume" como personaxe principal. Axustamos o tamaño
para que poida desprazarse entre as paredes do labirinto.
Sobre a personaxe programamos os movementos básicos para que se desprace
polo escenario coa axuda das frechas do teclado (arriba, abaixo, esquerda e dereita).
Detectando as paredes
O xogo do labirinto consiste en recorrer un camiño desde un punto de inicio ata un
punto de chegada. Non se poderá atravesar ningunha parede.
Para programar esto hai que detectar si estamos tocando a parede do labirinto, nese
caso volveremos ao punto de partida inicial establecendo unhas coordenadas.
Unha alternativa a esta programación podería ser evitar que se atravese a parede
sen retroceder á caixa de inicio.
Engadindo obstáculos ao videoxogo
Para facer máis complexo o noso labirinto, engadímoslle unha serie de obstáculos,
"os robots apagalumes", que a personaxe do lume terá que esquivar se non
queremos rematar a partida e volver ao principio.
Para engadir os obstáculos, en primeiro lugar, creamos un novo obxecto e
programamos o seu movemento. Este movemento será lineal e desprazarase desde
unha posición a outra durante un tempo determinado (3 segundos). Creamos tantos
robots como obstáculos queiramos.
Imos modificar o tempo de desprazamento a 2 segundos para aumentar a
dificultade.
Detectando os obxectos en movemento
Á hora de programar temos que buscar a forma máis curta. Neste caso, agrupamos
na mesma condición se estamos tocando un dos robots apagalumes.
Detectaremos se estamos tocando un dos robots apagalumes para volver ó
principio, ou en caso de tocar a saída (meta) mostrar unha mensaxe (SOS
INCENDIO) .
Reto 1: Engadir un temporizador
É fácil chegar ata a saída. Podemos engadir un temporizador de 60 segundos para
recorrer o labirinto e chegar á saída.
Si rematas o tempo perdes. Cal é o teu récord?
Manuel Miranda Rial 2ºB

Contenu connexe

Dernier

Rosalia de Castro. traballo sobre a memoria da choivapdf
Rosalia de Castro. traballo sobre a memoria da choivapdfRosalia de Castro. traballo sobre a memoria da choivapdf
Rosalia de Castro. traballo sobre a memoria da choivapdfRemoeaLinguaLinguaGa
 
A memoria da choiva - Uxía Iglesias (1).pdf
A memoria da choiva - Uxía Iglesias (1).pdfA memoria da choiva - Uxía Iglesias (1).pdf
A memoria da choiva - Uxía Iglesias (1).pdfRemoeaLinguaLinguaGa
 
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdf
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdfTraballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdf
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdfRemoeaLinguaLinguaGa
 
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docx
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docxGUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docx
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docxAgrela Elvixeo
 
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdf
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdfResistencia (Unha historia tenra e dramática que non te defraudará (1).pdf
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdfRemoeaLinguaLinguaGa
 
Non penses nun elefante rosa antía yáñez.pdf
Non penses nun elefante rosa antía yáñez.pdfNon penses nun elefante rosa antía yáñez.pdf
Non penses nun elefante rosa antía yáñez.pdfRemoeaLinguaLinguaGa
 
Como atopar informacion de confianza na rede
Como atopar informacion de confianza na redeComo atopar informacion de confianza na rede
Como atopar informacion de confianza na redeEduNoia1
 
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdf
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdfIZAN O DA SACA de Xabier Quiroga_traballo de análise.pdf
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdfRemoeaLinguaLinguaGa
 
O Hobbit.pdf_20240504_162323_0000.pdf recensión
O Hobbit.pdf_20240504_162323_0000.pdf recensiónO Hobbit.pdf_20240504_162323_0000.pdf recensión
O Hobbit.pdf_20240504_162323_0000.pdf recensiónRemoeaLinguaLinguaGa
 
Revista Chío Maio 2024, n-30 artigo de A G M.pdf
Revista Chío Maio 2024, n-30 artigo de A G M.pdfRevista Chío Maio 2024, n-30 artigo de A G M.pdf
Revista Chío Maio 2024, n-30 artigo de A G M.pdfAntonio Gregorio Montes
 
a cuarta onda traballo sobre o libro.pdf
a cuarta onda traballo sobre o libro.pdfa cuarta onda traballo sobre o libro.pdf
a cuarta onda traballo sobre o libro.pdfRemoeaLinguaLinguaGa
 

Dernier (12)

Rosalia de Castro. traballo sobre a memoria da choivapdf
Rosalia de Castro. traballo sobre a memoria da choivapdfRosalia de Castro. traballo sobre a memoria da choivapdf
Rosalia de Castro. traballo sobre a memoria da choivapdf
 
Mobilidade de alumnado a Polonia Erasmus+
Mobilidade de alumnado a Polonia Erasmus+Mobilidade de alumnado a Polonia Erasmus+
Mobilidade de alumnado a Polonia Erasmus+
 
A memoria da choiva - Uxía Iglesias (1).pdf
A memoria da choiva - Uxía Iglesias (1).pdfA memoria da choiva - Uxía Iglesias (1).pdf
A memoria da choiva - Uxía Iglesias (1).pdf
 
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdf
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdfTraballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdf
Traballo Ruido,Relatos de Guerra por Daniel Carcamo Avalo..pdf
 
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docx
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docxGUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docx
GUIÓN DA XIMCANA CAIÓN SOLUCIONARIO.docx
 
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdf
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdfResistencia (Unha historia tenra e dramática que non te defraudará (1).pdf
Resistencia (Unha historia tenra e dramática que non te defraudará (1).pdf
 
Non penses nun elefante rosa antía yáñez.pdf
Non penses nun elefante rosa antía yáñez.pdfNon penses nun elefante rosa antía yáñez.pdf
Non penses nun elefante rosa antía yáñez.pdf
 
Como atopar informacion de confianza na rede
Como atopar informacion de confianza na redeComo atopar informacion de confianza na rede
Como atopar informacion de confianza na rede
 
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdf
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdfIZAN O DA SACA de Xabier Quiroga_traballo de análise.pdf
IZAN O DA SACA de Xabier Quiroga_traballo de análise.pdf
 
O Hobbit.pdf_20240504_162323_0000.pdf recensión
O Hobbit.pdf_20240504_162323_0000.pdf recensiónO Hobbit.pdf_20240504_162323_0000.pdf recensión
O Hobbit.pdf_20240504_162323_0000.pdf recensión
 
Revista Chío Maio 2024, n-30 artigo de A G M.pdf
Revista Chío Maio 2024, n-30 artigo de A G M.pdfRevista Chío Maio 2024, n-30 artigo de A G M.pdf
Revista Chío Maio 2024, n-30 artigo de A G M.pdf
 
a cuarta onda traballo sobre o libro.pdf
a cuarta onda traballo sobre o libro.pdfa cuarta onda traballo sobre o libro.pdf
a cuarta onda traballo sobre o libro.pdf
 

En vedette

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

En vedette (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Os robots apagalumes.pdf

  • 1. VIDEOXOGO “OS ROBOTS APAGALUMES” INSTRUCIÓNS Con Scratch programamos este videoxogo dun labirinto. Moverase o noso personaxe, "o lume" , por un labirinto con obstáculos, "os robots apagalumes" que se desprazarán seguindo un patrón. O obxectivo consiste en esquivar o lume e evitar que chegue á saída marcada como meta (bosque verde) e provocar un incendio. Se nalgún momento tocamos un obstáculo, volveremos ao principio do videoxogo. Escenario: o labirinto En primeiro lugar, engadimos o labirinto no escenario coa súa marca de saída. Dita marca imos realizala co editor de debuxo de Scratch, eliximos unha cor verde e debuxamos unha árbore que simboliza o bosque, xa que o utilizaremos como sensor para detectar que se chegou á meta.
  • 2. Personaxe principal Neste videoxogo eliximos "o lume" como personaxe principal. Axustamos o tamaño para que poida desprazarse entre as paredes do labirinto. Sobre a personaxe programamos os movementos básicos para que se desprace polo escenario coa axuda das frechas do teclado (arriba, abaixo, esquerda e dereita).
  • 3. Detectando as paredes O xogo do labirinto consiste en recorrer un camiño desde un punto de inicio ata un punto de chegada. Non se poderá atravesar ningunha parede. Para programar esto hai que detectar si estamos tocando a parede do labirinto, nese caso volveremos ao punto de partida inicial establecendo unhas coordenadas. Unha alternativa a esta programación podería ser evitar que se atravese a parede sen retroceder á caixa de inicio. Engadindo obstáculos ao videoxogo Para facer máis complexo o noso labirinto, engadímoslle unha serie de obstáculos, "os robots apagalumes", que a personaxe do lume terá que esquivar se non queremos rematar a partida e volver ao principio. Para engadir os obstáculos, en primeiro lugar, creamos un novo obxecto e programamos o seu movemento. Este movemento será lineal e desprazarase desde unha posición a outra durante un tempo determinado (3 segundos). Creamos tantos robots como obstáculos queiramos.
  • 4. Imos modificar o tempo de desprazamento a 2 segundos para aumentar a dificultade. Detectando os obxectos en movemento Á hora de programar temos que buscar a forma máis curta. Neste caso, agrupamos na mesma condición se estamos tocando un dos robots apagalumes. Detectaremos se estamos tocando un dos robots apagalumes para volver ó principio, ou en caso de tocar a saída (meta) mostrar unha mensaxe (SOS INCENDIO) .
  • 5. Reto 1: Engadir un temporizador É fácil chegar ata a saída. Podemos engadir un temporizador de 60 segundos para recorrer o labirinto e chegar á saída. Si rematas o tempo perdes. Cal é o teu récord? Manuel Miranda Rial 2ºB